Operation and maintenance log collection method and device, computing equipment and storage medium

By determining different collection modes and linkage tasks on the computing device, the problem of monitoring tasks and log collection tasks seizing each other's channels is solved, the efficiency of operation and maintenance log collection is improved, and the security of computing device components is protected.

CN118733381APending Publication Date: 2024-10-01XFUSION DIGITAL TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410814641.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-21
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

Monitoring tasks and log collection tasks compete with each other for information acquisition channels on computing devices, resulting in low log collection efficiency. A method is urgently needed to improve the efficiency of operation and maintenance log collection and avoid monitoring tasks from affecting log collection.

Method used

By determining different collection modes, adjust the priority of monitoring tasks and information types according to user needs, start linkage tasks to protect components, and ensure log collection efficiency and information channel utilization balance between monitoring tasks.

Benefits of technology

It avoids monitoring tasks from seizing information channels when users urgently need log collection, improves log collection efficiency, and prevents components from malfunctioning due to reduced monitoring intensity through linkage tasks to ensure the safe operation of computing equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118733381A_ABST
    Figure CN118733381A_ABST
Patent Text Reader

Abstract

The invention provides an operation and maintenance log collection method, an operation and maintenance log collection device, computing equipment and a computer readable storage medium. The method comprises the steps that collection modes for collecting operation and maintenance logs are determined, the operation and maintenance logs are used for recording operation indexes of parts of the computing equipment, and data and / or frequencies collected in different collection modes are not completely the same; based on the collection mode, a monitoring task for the component is determined, the monitoring task is used for monitoring the operation state of the component, and an operation index of the component is obtained; and executing the monitoring task, and determining an operation and maintenance log of the component. According to the method, the operation and maintenance log collection efficiency can be improved, and the situation that log collection is slow due to the fact that the monitoring task and the log collection task preempt the information channel is avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to an operation and maintenance log collection method, an operation and maintenance log collection device, a computing device, and a computer-readable storage medium. Background Art

[0002] In order to monitor the operation of computing devices and their various components, monitoring tasks are usually set in this field to periodically obtain the operating indicators of computing devices and their components to determine whether they are within the normal operating range. In some cases, in order to perform operation and maintenance on computing device components, users need to know the current operating status of computing devices by collecting logs. However, monitoring tasks and log collection tasks may seize each other's channels for information acquisition, resulting in low log collection efficiency. Therefore, this field is in urgent need of a technology that can improve the efficiency of operation and maintenance log collection. Summary of the invention

[0003] To this end, the present application is committed to providing an operation and maintenance log collection method, an operation and maintenance log collection device, a computing device and a computer-readable storage medium, which can improve the efficiency of operation and maintenance log collection and avoid the situation where monitoring tasks and log collection tasks occupy information channels, resulting in slow log collection.

[0004] On the one hand, the present application provides a method for collecting operation and maintenance logs, the method comprising: determining a collection mode for collecting operation and maintenance logs, the operation and maintenance logs are used to record the operating indicators of components of a computing device, and the data and / or frequency collected under different collection modes are not exactly the same; based on the collection mode, determining a monitoring task for the component, the monitoring task is used to monitor the operating status of the component and obtain the operating indicators of the component; executing the monitoring task to determine the operation and maintenance log of the component.

[0005] According to this aspect, by dividing the collection of operation and maintenance logs into different collection modes, the urgency of the current log collection can be determined according to the actual needs of the user, so that different restriction measures can be taken on the monitoring tasks to avoid the monitoring tasks from preempting the information channel for log collection when the user is in urgent need of collecting logs, thereby ensuring that the efficiency of log collection will not be excessively affected by the monitoring tasks, and being able to well balance the use of the information channels for obtaining the operating status of computing device components by both log collection tasks and monitoring tasks.

[0006] In a possible implementation, the method further includes: starting a linkage task according to the collection mode, where the linkage task is used to protect the component.

[0007] According to this implementation, in some log collection modes, the monitoring intensity and types of monitoring information of the monitoring tasks may be reduced, causing the monitored components to be exposed to risks to a certain extent. At this time, initiating linkage tasks for protecting the monitored components can prevent unexpected failures of the components due to reduced monitoring intensity, and make up for the lack of protection that may be caused by the reduction in the priority of the monitoring tasks.

[0008] In one possible implementation, the linkage task includes a failure speed regulation task, which is started when the monitoring task no longer obtains the temperature information of the component and is used to increase the speed of the cooling fan when the current temperature of the component is unknown to ensure that the temperature of the component is not too high.

[0009] According to this implementation, if the current log collection mode requires the monitoring task to no longer collect the temperature information of the target component, it means that if the temperature of the component is too high, the monitoring task cannot monitor this event. Therefore, by starting the failure speed adjustment task, the speed of the cooling fan can be increased without knowing the temperature status, thereby enhancing heat dissipation and protecting the component from failure due to over-temperature.

[0010] In one possible implementation, different collection modes correspond to different operation and maintenance log collection speeds; wherein, based on the collection mode, the monitoring task for the component is determined, including: if the user selects a collection mode with a higher collection speed, reducing the types of information that need to be monitored by the monitoring task and / or reducing the monitoring frequency of the information type.

[0011] According to the present implementation, different collection modes can be set, which correspond to different log collection speeds and thus to different monitoring strategies. In a collection mode with a higher log collection speed, since it is necessary to quickly obtain the operating status of the component, most of the information channels need to be occupied. At this time, the monitoring task gives way to the log collection task, reducing the types of monitored information or lowering the monitoring frequency. In a collection mode with a slower log collection speed, since it is not necessary to quickly obtain the operating status of the component, the degree of occupation of the information channel is small. At this time, the log collection task gives way to the monitoring task, the types of monitored information can be more, and the monitoring frequency can be higher.

[0012] In a possible implementation, the collection mode includes a fast collection mode and a general collection mode. The collection speed of operation and maintenance logs in the fast collection mode is higher than that in the general collection mode. The operation indicators include static information that will not change for a long time, semi-static information that will not change in a short time, and dynamic information that changes in real time. Wherein, based on the collection mode, the monitoring task for the component is determined, including: if the user selects the fast collection mode, the monitoring task does not obtain static information, semi-static information, and dynamic information; if the user selects the general collection mode, the monitoring task does not obtain static information, and reduces the frequency of obtaining semi-static information and dynamic information.

[0013] According to this implementation, two collection modes are set, which correspond to different collection speeds. In the faster fast collection mode, the monitoring task stops all acquisition of static information, semi-static information and dynamic information, and the monitoring task gives way to the log collection task, so that the log collection efficiency is higher and the information channel is not preempted by the monitoring task. In the slower general collection mode, the monitoring task does not acquire static information, and the frequency of acquiring semi-static information and dynamic information is low. In this way, while ensuring that the monitoring task has a certain priority, the log collection task can occupy a part of the information channel, ensuring that the collection task has a reasonable collection speed, and leaving space for the operation of the monitoring task.

[0014] In a possible implementation, the collection mode includes a custom collection mode, in which the user can select the type of information to be monitored and the corresponding monitoring frequency for the monitoring task.

[0015] According to this implementation, by setting a custom collection mode, users can choose the type of information and monitoring frequency to be monitored by the monitoring task according to their own needs, which can better meet the diverse needs of users and make the control of the monitoring task more refined.

[0016] In a possible implementation, based on the collection mode, determining the monitoring task for the component includes: establishing a monitoring strategy table according to the collection mode selected by the user, the monitoring strategy table is used to record the monitoring indicators and monitoring frequency of the monitoring task. Executing the monitoring task includes: reading the monitoring strategy table; filtering or obtaining the current monitoring information according to the monitoring strategy table.

[0017] According to this implementation method, by setting up a monitoring strategy table, the monitoring task can selectively obtain corresponding monitoring information or component operation indicators according to the records in the monitoring strategy table, thereby ensuring that the monitoring task can adjust the monitoring intensity or priority according to the user's choice of log collection mode, thereby ensuring the smooth implementation of operation and maintenance log collection.

[0018] On the other hand, the present application provides an operation and maintenance log collection device, which includes: a first determination module, used to determine a collection mode for collecting operation and maintenance logs, where the operation and maintenance logs are used to record the operating indicators of components of a computing device, and the data and / or frequency collected under different collection modes are not exactly the same; a second determination module, used to determine a monitoring task for the component based on the collection mode, where the monitoring task is used to monitor the operating status of the component and obtain the operating indicators of the component; an execution module, used to execute the monitoring task and determine the operation and maintenance log of the component.

[0019] In a possible implementation, the device is further configured to: start a linkage task according to the collection mode, where the linkage task is used to protect the component.

[0020] In one possible implementation, the linkage task includes a failure speed regulation task, which is started when the monitoring task no longer obtains the temperature information of the component and is used to increase the speed of the cooling fan when the current temperature of the component is unknown to ensure that the temperature of the component is not too high.

[0021] In a possible implementation, different collection modes correspond to different operation and maintenance log collection speeds. The second determination module is further configured to: if the user selects a collection mode with a higher collection speed, reduce the types of information that need to be monitored by the monitoring task and / or reduce the monitoring frequency for the information type.

[0022] In a possible implementation, the collection mode includes a fast collection mode and a general collection mode. The collection speed of operation and maintenance logs in the fast collection mode is higher than that in the general collection mode. The operation indicators include static information that will not change for a long time, semi-static information that will not change in a short time, and dynamic information that changes in real time. Among them, the second determination module is further configured as follows: if the user selects the fast collection mode, the monitoring task does not obtain static information, semi-static information, and dynamic information; if the user selects the general collection mode, the monitoring task does not obtain static information, and reduces the frequency of obtaining semi-static information and dynamic information.

[0023] In a possible implementation, the collection mode includes a custom collection mode, in which the user can select the type of information to be monitored and the corresponding monitoring frequency for the monitoring task.

[0024] In a possible implementation, the second determination module is further configured to: establish a monitoring strategy table according to the collection mode selected by the user, the monitoring strategy table is used to record the monitoring indicators and monitoring frequency of the monitoring task. The execution module is further configured to: read the monitoring strategy table; filter or obtain the current monitoring information according to the monitoring strategy table.

[0025] On the other hand, the present application provides a computing device, the computing device including a processor and a memory, the processor being used to execute a computer program stored in the memory to implement the above-mentioned operation and maintenance log collection method.

[0026] On the other hand, the present application provides a computer-readable storage medium, which stores a computer program, and the computer program is used to execute the above-mentioned operation and maintenance log collection method.

[0027] On the other hand, the present application provides a computer program product, including program code, which enables the computer to implement the above-mentioned operation and maintenance log collection method when the computer runs the computer program product.

[0028] Any of the operation and maintenance log collection devices, computing devices, computer-readable storage media or computer program products provided above are used to execute the operation and maintenance log collection method provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects of the corresponding scheme in the corresponding method provided above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] The specific implementation of the present application is described in detail below with reference to the accompanying drawings, wherein:

[0030] Figure 1 A schematic diagram showing the architecture of a method for collecting operation and maintenance logs according to an embodiment of the present application;

[0031] Figure 2 A schematic diagram showing a flow chart of a method for collecting operation and maintenance logs according to an embodiment of the present application;

[0032] Figure 3 A schematic diagram showing the structure of an operation and maintenance log collection device according to an embodiment of the present application is shown;

[0033] Figure 4 A schematic diagram of the structure of a computing device according to an embodiment of the present application is shown. DETAILED DESCRIPTION

[0034] In order to make those skilled in the art understand the concept and thought of the present application more clearly, the present application is described in detail below in conjunction with specific embodiments. It should be understood that the embodiments provided herein are only a part of all embodiments that the present application may have. After reading the specification of the present application, those skilled in the art have the ability to make improvements, transformations, or replacements to part or all of the following embodiments, and these improvements, transformations, or replacements are also included in the scope of the present application.

[0035] In this document, the terms "one", "an" and other similar words are not intended to indicate that there is only one of the things described, but rather that the relevant description is only for one of the things described, and the things described may have one or more. In this document, the terms "comprises", "includes" and other similar words are intended to indicate logical relationships, and cannot be regarded as indicating spatial structural relationships. For example, "A includes B" is intended to indicate that B logically belongs to A, but does not mean that B is spatially located inside A. In addition, the meanings of the terms "comprises", "includes" and other similar words should be regarded as open, rather than closed. For example, "A includes B" is intended to indicate that B belongs to A, but B does not necessarily constitute the whole of A, and A may also include other elements such as C, D, and E.

[0036] In this document, the terms "first", "second" and other similar words are not intended to imply any order, quantity and importance, but are only used to distinguish different elements. In this document, the terms "embodiment", "present embodiment", "one embodiment" and "an embodiment" do not mean that the relevant description is only applicable to a specific embodiment, but rather that these descriptions may also be applicable to one or more other embodiments. Those skilled in the art should understand that in this document, any description made for a certain embodiment can be replaced, combined, or otherwise combined with the relevant description in one or more other embodiments, and the new embodiment produced by the replacement, combination, or other combination is easily conceivable by those skilled in the art and belongs to the scope of protection of this application.

[0037] In the various embodiments of the present application, the operation and maintenance log may refer to a record file used to display the current operating status of the components of the computing device, which is used by the operation and maintenance personnel to analyze the problem. In the various embodiments of the present application, the operation and maintenance log collection may refer to the operation of obtaining the current operating status or state of one or some components of the computing device. The operation and maintenance log is usually obtained once, and the log collection is triggered by the user. After the log collection is completed, the log collection task ends. Collecting logs is usually used by operation and maintenance personnel to analyze and locate faults. For example, if a component of a computing device produces an abnormality and an alarm occurs, the user can trigger log collection to analyze where the fault problem lies.

[0038] In the embodiments of the present application, a computing device may refer to any electronic device with computing or information processing capabilities, such as a computer, server, workstation, smart phone, smart watch, vehicle-mounted terminal, etc. A component of a computing device may refer to various components, parts or components that constitute the entirety or a part of the computing device, such as a processor, memory, hard disk, graphics card, chassis, cooling fan, etc.

[0039] In some embodiments of the present application, the components of the computing device may specifically refer to an AI (Artificial Intelligence) module. The AI ​​module may refer to a high-performance, highly integrated system core board that supports cellular communications, which is composed of hardware and software and is used to develop embedded products. It pre-installs an operating system and supports running AI algorithms. It can also integrate many independent functions (such as computing, graphics processing, data storage, and connectivity) into a single highly compact hardware module and ensure that these functions interact correctly, thereby achieving intelligent results.

[0040] In this field, collecting log information related to AI modules is the key to improving operation and maintenance efficiency and timely troubleshooting. BMC (Baseboard Management Controller) can obtain relevant information and record logs by accessing the module HMC (HGX Management Controller). However, the task of periodically obtaining module indicators (such as temperature) (i.e., monitoring tasks) and the task of collecting operation and maintenance logs will compete with each other for access to the HMC, causing problems such as slow temperature acquisition, high heat dissipation risk, slow log collection, and poor user perception. Therefore, it is necessary to improve the efficiency of log collection and reduce the workload of the operation and maintenance team.

[0041] Figure 1 A schematic diagram of the architecture of a method for collecting operation and maintenance logs according to an embodiment of the present application is shown.

[0042] like Figure 1As shown, the user can configure the log collection mode in the out-of-band management system (such as BMC) through the operation interface (such as the web interface). Different log collection modes correspond to different monitoring strategies (including the monitored operating indicators and the frequency of monitoring these operating indicators, etc.) or monitoring priorities of the monitoring task. After the configuration is completed, the out-of-band management system notifies the monitoring task of the collection mode. The monitoring task is a resident task of the computing device, which is used to collect the operating indicators of the computing device components on a daily and periodic basis, such as temperature, power, clock frequency, etc. After the user completes the configuration of the collection mode, the monitoring task reads the log collection mode and determines the monitoring task according to the collection mode, that is, determines or adjusts the monitoring strategy of the monitoring task. For example, if the user selects the fast collection mode, the monitoring strategy may be not to obtain any monitoring information until the log collection is completed. After the collection mode is configured, the user can choose to trigger the log collection task by himself. At this time, the log collection task will collect according to the log collection mode previously selected by the user, and the monitoring task will monitor according to the monitoring strategy corresponding to the log collection mode. In some cases, when the user triggers the log collection task, the log collection task will trigger the linkage task. For example, after log collection begins, the corresponding monitoring strategy includes no longer obtaining temperature information. At this time, a failure speed regulation task can be triggered to increase the speed of the cooling fan without knowing the current temperature of the component to enhance heat dissipation and avoid component failure due to excessive temperature.

[0043] like Figure 1 As shown in the figure, the real-time monitoring task of the out-of-band management system accesses the information channel of the components of the computing device to obtain the running status information of the components. Log collection also needs to access the information channel of the components to obtain logs. According to the user's selected mode configuration, when the log collection is triggered, the monitoring task adjusts the priority according to the configuration. The collection task triggers the linkage task to compensate for the risk of reducing the monitoring priority.

[0044] like Figure 1 As shown, when the out-of-band management system receives the log collection action of the computing device component, it saves the collection status to the corresponding log configuration object. The monitoring task determines whether to read the priority information of the log configuration object by judging whether the log task is enabled. If the log task is enabled, stop obtaining the relevant information parameters of the component or increase the time interval for obtaining. In addition, the log collection module of the computing device component throws out a linkage task.

[0045] Figure 2 A flow chart of a method for collecting operation and maintenance logs according to an embodiment of the present application is shown.

[0046] According to this embodiment, the operation and maintenance log collection method includes steps S210 to S230, and each step is described in detail below.

[0047] S210: Determine a collection mode for collecting operation and maintenance logs. The operation and maintenance logs are used to record operating indicators of components of the computing device. The data and / or frequency collected in different collection modes are not exactly the same.

[0048] In this embodiment, the user can select the collection mode of the operation and maintenance logs to obtain the current operating status of the computing device components at one time, so as to analyze and diagnose the components. For example, if a component of the computing device fails or alarms, the user can trigger the collection of logs and select the corresponding log collection mode according to the degree of urgency. After collecting the relevant indicators of the current operating status of the component, the failure and alarm are analyzed and processed, so as to ensure the safe operation of the computing device components.

[0049] As an example, different collection modes correspond to different operation and maintenance log collection speeds.

[0050] In this example, the main difference between different collection modes may be the different collection speeds. In different application scenarios, users have different urgency for log collection. In some cases, users want to collect operation and maintenance logs as quickly as possible in order to quickly diagnose and handle current faults. In other cases, users are not very urgent about log collection and can allow for a slower log collection speed. In different scenarios, users can choose collection modes with different speeds according to their own needs and fault conditions, thereby achieving flexible processing of operation and maintenance logs and making full use of the information channels of computing device components.

[0051] As an example, the collection mode includes a fast collection mode and a general collection mode. The operation and maintenance log collection speed in the fast collection mode is higher than that in the general collection mode.

[0052] In this example, the log collection mode may include a fast collection mode with a faster collection speed and a general collection mode with a normal or slower collection speed. Through the setting of these two modes, users can choose the corresponding collection mode according to their own needs to meet their different needs. For example, if the user wants to quickly collect operation and maintenance logs in order to quickly process and analyze the current failure of computing device components, the fast collection mode can be selected. If the user can wait for a while before collecting all the logs, the general collection mode can be selected, which can handle minor failures that are not very urgent or destructive. Other application scenarios of the two log collection modes are also conceivable.

[0053] In this example, a log collection mode configuration interface may be provided to the customer. The log collection mode may include a fast collection mode, a general collection mode, and a custom collection mode. The user may select which type of information may have its priority reduced to speed up log collection.

[0054] As an example, the collection mode includes a custom collection mode, in which the user can select the type of information to be monitored and the corresponding monitoring frequency for the monitoring task.

[0055] In this example, in the custom collection mode, users can perform diversified configuration operations for monitoring tasks, such as setting the monitoring target information and the corresponding monitoring frequency, so that the monitoring task can better meet the needs of users and more specifically ensure the operation safety of computing device components. In the custom collection mode, the collection speed of operation and maintenance logs can change according to the user's configuration of the monitoring task. If the user selects more types of monitoring information and a higher monitoring frequency, the collection speed of operation and maintenance logs will be slower. If the user selects fewer types of monitoring information and a lower monitoring frequency, a higher log collection speed can be obtained.

[0056] In this example, when the user selects custom mode collection, a more granular monitoring information option can be provided to the user. The user can choose which information to stop obtaining, which information to reduce the frequency of (reduced by 1 times, 2 times, etc.), and trigger linkage tasks.

[0057] S220: Based on the collection mode, determine a monitoring task for the component, where the monitoring task is used to monitor the operating status of the component and obtain an operating indicator of the component.

[0058] In this embodiment, the monitoring task is a task that is normally run in the computing device, which is used to periodically obtain the operating status or indicators of the computing device components, so as to judge or warn the computing device and its components of possible failures or damage at any time. Since the monitoring task needs to occupy a certain information channel, when the user needs to start a one-time log collection task, the monitoring task needs to give way to the log collection task to a certain extent. The monitoring task can adopt a certain monitoring strategy (including the monitored operating indicators and the frequency of monitoring these operating indicators, etc.), reduce the intensity or priority of monitoring, so that the log collection task can occupy a part of the information channel, thereby completing the log collection at an ideal speed.

[0059] As an example, in order to determine a monitoring task for a component based on a collection mode, when a user selects a collection mode with a higher collection speed, the types of information that need to be monitored by the monitoring task may be reduced and / or the monitoring frequency for the types of information may be lowered.

[0060] In this example, since both the log collection task and the monitoring task will occupy the information channel of the computing device component to a certain extent, if the log collection task needs to be accelerated, the monitoring task will be required to reduce the degree of occupation of the information channel. At this time, if the user selects a collection mode with a faster collection speed, the types of monitoring information of the monitoring task need to be reduced, or the monitoring frequency of the monitoring information needs to be reduced; if the user selects a collection mode with a slower collection speed, the monitoring task can retain more types of monitoring information, or can maintain a higher monitoring frequency.

[0061] As an example, the operation index includes static information that does not change for a long time, semi-static information that does not change for a short time, and dynamic information that changes in real time. At this time, in order to determine the monitoring task for the component based on the collection mode, if the user selects the fast collection mode, the monitoring task does not obtain static information, semi-static information and dynamic information; if the user selects the general collection mode, the monitoring task does not obtain static information and reduces the frequency of obtaining semi-static information and dynamic information.

[0062] In this example, static information may include version number, VenderID (vendor identification), GUID (Globally Unique Identifier), serial number, etc.; semi-static information may include ECC (Error Checking and Correcting) mode status of GPU (graphics processing unit), link status of PCIE (Peripheral Component Interconnect express, high-speed serial computer expansion bus standard), reset status of PCIE, etc.; dynamic information may include temperature, UCE (Uncorrectable Memory Error) error, memory clock frequency, total power, etc. In fast collection mode, log collection is prioritized, and the acquisition of all information can be stopped at this time. In general collection mode, log collection tasks and monitoring tasks are balanced, and part of the information can be obtained at this time, and the monitoring frequency of part of the information can be controlled.

[0063] In this example, in the fast collection mode, the monitoring task does not access the module to obtain static information, semi-static information, and dynamic information, and triggers linkage tasks. Linkage tasks include but are not limited to abnormal speed adjustment, interface reminders, etc. In the general collection mode, the monitoring task does not access the module to obtain static information, and reduces the frequency of obtaining semi-static information and dynamic information, and triggers linkage tasks.

[0064] As an example, in order to determine the monitoring task for a component based on the collection mode, a monitoring strategy table can be established according to the collection mode selected by the user, and the monitoring strategy table is used to record the monitoring indicators and monitoring frequency of the monitoring task. At this time, in order to execute the monitoring task, the monitoring strategy table can be read, and then the current monitoring information can be filtered or obtained according to the monitoring strategy table.

[0065] In this example, the monitoring policy table may refer to a file used to record which information needs to be monitored and the monitoring frequency and other matters for the monitoring task. During the execution of the monitoring task, if the user triggers the log collection task and selects a certain collection mode, the monitoring policy table file will be updated and the monitoring policy will be converted into the monitoring policy corresponding to the collection mode selected by the user. When executing the monitoring task according to the monitoring policy table, the monitoring task will monitor according to the information that needs to be monitored and the corresponding monitoring frequency and other matters recorded in the policy table. If information that is not required to be monitored is obtained in the monitoring policy table, the information is filtered out; if information that is required to be monitored is obtained in the monitoring policy table, the information is obtained.

[0066] For example, the entire process of this example may include the following steps: first, the user configures the log mode; then, a monitoring policy table is established through the log collection mode selected by the user; then, the user triggers log collection; then, according to the monitoring policy table, a response linkage task is started; then, the monitoring task priority is determined, and whether to read the monitoring policy table is determined by judging whether there is a log task at present; finally, when the monitoring task polls the current information, the current information is filtered or obtained according to the monitoring policy table.

[0067] For another example, the entire process of this example may include the following steps: first, the BMC initializes the component log configuration object through the monitoring policy table file; then, the user modifies the configuration; then, the configuration object information and the policy table file are updated; then, the user triggers the collection, updates the collection status to save in the object; then, the response linkage task is started according to the monitoring policy table; then, when the monitoring task polls the current information indicator, it filters or obtains the current information according to the monitoring policy table; then, after the collection is completed, the collection status is updated to save in the object; finally, the linkage task is ended.

[0068] S230: Execute the monitoring task and determine the operation and maintenance log of the component.

[0069] In this embodiment, the monitoring task is a resident task of the computing device and is always in operation. Log collection is a one-time task, which is triggered by the user and stops after the collection is completed. After the collection mode is configured, the monitoring strategy of the monitoring task changes accordingly, and monitoring begins with the new monitoring strategy. At this time, the occupancy of the information channel of the components of the computing device by the monitoring task changes. The user can trigger the collection of operation and maintenance logs at this time, so that the operation and maintenance log collection task is carried out when the monitoring task changes, thereby utilizing the currently freed information channels to achieve higher log collection efficiency.

[0070] As an example, the operation and maintenance log collection method further includes: starting a linkage task according to the collection mode, and the linkage task is used to protect the component.

[0071] In this example, since some log collection modes require a faster collection speed, it is necessary to reduce the monitoring intensity or monitoring priority of the monitoring task, so the degree of protection of the computing device or its components by the monitoring task will be reduced. In order to compensate for this decline in the degree of protection, an embodiment of the present application provides a linkage task, which is used to start when the user triggers certain collection modes for log collection, and strengthens protection for certain aspects of the components due to the lack of protection caused by the reduced types of monitoring information or the reduced monitoring frequency of the monitoring task. For example, when the collection mode selected by the user requires the monitoring task to suspend the collection of temperature information, a failure speed regulation task can be triggered to protect the components from damage due to unknown temperature increases.

[0072] In this example, a linkage triggering task can be set for each collection mode. For example, if the collection mode requires suspending the acquisition of dynamic information temperature, a failure speed regulation task can be linked to trigger.

[0073] As an example, the linkage task includes a failure speed regulation task, which is started when the monitoring task no longer obtains the temperature information of the component, and is used to increase the speed of the cooling fan when the current temperature of the component is unknown to ensure that the temperature of the component is not too high.

[0074] In this example, failure speed regulation is a technology to prevent overheating of computing device components. It is used when the current temperature acquisition fails, the temperature update frequency is slow, the temperature value acquisition is relatively lagging, and the component temperature rise may not be responded to quickly. At this time, the speed of the cooling fan can be adjusted, for example, it can be increased when the current temperature value of the component is unknown. At this time, the fan speed may be higher than the heat dissipation intensity currently required by the component, but this helps to ensure that the component will not overheat due to the low fan speed.

[0075] Based on the above Figure 2 The method embodiment described above, the present application embodiment also provides an operation and maintenance log collection device, the structural diagram of which is as follows Figure 3 The device is used to perform the above Figure 2 The various steps in .

[0076] According to this embodiment, the operation and maintenance log collection device 300 includes a first determination module 310, a second determination module 320 and an execution module 330. The first determination module 310 is used to determine the collection mode of collecting operation and maintenance logs. The operation and maintenance logs are used to record the operating indicators of the components of the computing device. The data and / or frequency collected in different collection modes are not exactly the same. The second determination module 320 is used to determine the monitoring task for the component based on the collection mode. The monitoring task is used to monitor the operating status of the component and obtain the operating indicators of the component. The execution module 330 is used to execute the monitoring task and determine the operation and maintenance log of the component.

[0077] It should be noted that Figure 3 The operation and maintenance log collection device 300 provided in the embodiment shown in the figure only uses the division of the above-mentioned functional modules as an example when executing the operation and maintenance log collection method. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. Figure 2 The operation and maintenance log collection method embodiments shown belong to the same concept, and the specific implementation process is detailed in the method embodiments, which will not be repeated here.

[0078] Figure 4 It is a schematic diagram of the hardware structure of a computing device 400 provided in an embodiment of the present application.

[0079] See also Figure 4 The computing device 400 includes a processor 410, a memory 420, a communication interface 430, and a bus 440, wherein the processor 410, the memory 420, and the communication interface 430 are connected to each other via the bus 440. The processor 410, the memory 420, and the communication interface 430 may also be connected in other connection modes besides the bus 440.

[0080] Among them, the memory 420 can be various types of storage media, such as random access memory (RAM), read-only memory (ROM), non-volatile RAM (NVRAM), programmable ROM (PROM), erasable PROM (EPROM), electrically erasable PROM (EEPROM), flash memory, optical storage, hard disk, etc.

[0081] The processor 410 may be a general-purpose processor, which may be a processor that performs specific steps and / or operations by reading and executing the contents stored in a memory (e.g., the memory 420). For example, the general-purpose processor may be a central processing unit (CPU). The processor 410 may include at least one circuit to execute Figure 2 The illustrated embodiment provides all or part of the steps of the operation and maintenance log collection method.

[0082] Among them, the communication interface 430 includes input / output (I / O) interfaces, physical interfaces, and logical interfaces for interconnecting devices within the computing device 400, as well as interfaces for interconnecting the computing device 400 with other devices (such as other computing devices or user devices). The physical interface can be an Ethernet interface, an optical fiber interface, an ATM interface, etc. The communication interface 430 can be connected to an external input device and an output device. For example, the input device can be a microphone or a microphone array for capturing voice input signals; it can be a communication network connector for receiving collected input signals from the cloud or other devices; it can also include, for example, a keyboard, a mouse, etc. The output device can output various information to the outside, including determined distance information, direction information, etc. The output device can include, for example, a display, a speaker, a printer, a communication network and a remote output device connected thereto, etc.

[0083] The bus 440 may be any type of communication bus for interconnecting the processor 410 , the memory 420 , and the communication interface 430 , such as a system bus.

[0084] The above devices may be arranged on independent chips, or at least partially or completely on the same chip. Whether to arrange each device independently on different chips or to integrate them on one or more chips often depends on the needs of product design. The embodiments of the present application do not limit the specific implementation form of the above devices.

[0085] Figure 4 The computing device 400 shown is merely exemplary. During implementation, the computing device 400 may further include other components, which are not listed one by one herein.

[0086] An embodiment of the present application may also be a computer-readable storage medium having computer program instructions stored thereon, which, when executed by a processor, causes the processor to execute the steps of the operation and maintenance log collection method according to various embodiments of the present application described above in this specification.

[0087] The computer readable storage medium can adopt any combination of one or more readable media. The readable medium can be a readable signal medium or a readable storage medium. The readable storage medium can include, for example, but is not limited to, a system, device or device of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination of the above. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.

[0088] The concepts, principles and ideas of the present application are described in detail above in conjunction with specific implementation methods (including embodiments and examples). Those skilled in the art should understand that the implementation methods of the present application are more than the several forms given above. After reading the application documents, those skilled in the art can make any possible improvements, replacements and equivalent forms to the steps, methods, devices and components in the above-mentioned implementation methods, and these improvements, replacements and equivalent forms should be deemed to fall within the scope of the present application. The scope of protection of the present application shall be subject only to the claims.

Claims

1. A method for collecting operation and maintenance logs, characterized in that: The method comprises: Determine a collection mode for collecting operation and maintenance logs, where the operation and maintenance logs are used to record operating indicators of components of a computing device, and the data and / or frequency collected under different collection modes are not completely the same; Based on the collection mode, determining a monitoring task for the component, wherein the monitoring task is used to monitor the operating state of the component and obtain an operating indicator of the component; Execute the monitoring task and determine the operation and maintenance log of the component.

2. The method according to claim 1, characterized in that The method further comprises: According to the collection mode, a linkage task is started, and the linkage task is used to protect the component.

3. The method according to claim 2, characterized in that The linkage task includes a failure speed regulation task, which is started when the monitoring task no longer obtains the temperature information of the component, and is used to increase the speed of the cooling fan when the current temperature of the component is unknown to ensure that the temperature of the component is not too high.

4. The method according to claim 1, characterized in that Different collection modes correspond to different operation and maintenance log collection speeds; wherein, determining the monitoring task for the component based on the collection mode includes: If the user selects a collection mode with a higher collection speed, the types of information that need to be monitored by the monitoring task are reduced and / or the monitoring frequency for the types of information is reduced.

5. The method according to claim 4, characterized in that The collection mode includes a fast collection mode and a general collection mode. The operation and maintenance log collection speed in the fast collection mode is higher than that in the general collection mode. The operation indicators include static information that will not change for a long time, semi-static information that will not change in a short time, and dynamic information that changes in real time. Wherein, determining the monitoring task for the component based on the collection mode includes: If the user selects the fast collection mode, the monitoring task does not obtain the static information, the semi-static information and the dynamic information; If the user selects the general collection mode, the monitoring task does not acquire the static information and reduces the frequency of acquiring the semi-static information and the dynamic information.

6. The method according to claim 1, characterized in that The collection mode includes a custom collection mode, and the user can select the type of information to be monitored and the corresponding monitoring frequency for the monitoring task in the custom collection mode.

7. The method according to claim 1, characterized in that The determining, based on the collection mode, a monitoring task for the component comprises: According to the collection mode selected by the user, a monitoring strategy table is established, wherein the monitoring strategy table is used to record the monitoring indicators and monitoring frequency of the monitoring task; Wherein, executing the monitoring task includes: Reading the monitoring strategy table; Filter or obtain current monitoring information according to the monitoring strategy table.

8. An operation and maintenance log collection device, characterized in that: The device comprises: A first determination module is used to determine a collection mode for collecting operation and maintenance logs, where the operation and maintenance logs are used to record operating indicators of components of a computing device, and the data and / or frequency collected under different collection modes are not completely the same; A second determination module, configured to determine a monitoring task for the component based on the collection mode, wherein the monitoring task is configured to monitor the operating state of the component and obtain an operating index of the component; An execution module is used to execute the monitoring task and determine the operation and maintenance log of the component.

9. A computing device, characterized in that The computing device includes a processor and a memory, and the processor is used to execute a computer program stored in the memory to implement the operation and maintenance log collection method described in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and the computer program is used to execute the operation and maintenance log collection method according to any one of claims 1 to 7.