CN113391986B - Log collection management method and system - Google Patents

Log collection management method and system Download PDF

Info

Publication number
CN113391986B
CN113391986B CN202110656172.4A CN202110656172A CN113391986B CN 113391986 B CN113391986 B CN 113391986B CN 202110656172 A CN202110656172 A CN 202110656172A CN 113391986 B CN113391986 B CN 113391986B
Authority
CN
China
Prior art keywords
external storage
bmc
storage module
module
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110656172.4A
Other languages
Chinese (zh)
Other versions
CN113391986A (en
Inventor
陈佑霖
廖伟宏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202110656172.4A priority Critical patent/CN113391986B/en
Publication of CN113391986A publication Critical patent/CN113391986A/en
Application granted granted Critical
Publication of CN113391986B publication Critical patent/CN113391986B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3051Monitoring arrangements for monitoring the configuration of the computing system or of the computing system component, e.g. monitoring the presence of processing resources, peripherals, I/O links, software programs

Abstract

The invention provides a log collection management method and a system, wherein the method comprises the following steps of scanning the connection state of a BMC interface; when the BMC interface is scanned and connected with an external storage module, starting the information self-collection function of the external storage module; when a BMC interface is scanned and connected with a plurality of external storage modules, selecting one external storage module, starting an information self-collection function of the external storage module, and mounting other scanned external storage modules to a BMC temporary storage area; the BMC writes the debug information into an external storage module mounted on the temporary storage area of the BMC after encrypting the debug information. The method can adapt to different environments and conditions and acquire the internal operation condition of the BMC at any time. The external storage module which is easy to obtain is used for overcoming the defect that the resources of a tester are insufficient or the condition is not allowed at present, detailed information can be simply and effectively provided for a research and development staff to analyze, and the data safety is also ensured.

Description

Log collection management method and system
Technical Field
The invention relates to the technical field of data transmission management, in particular to a log collection management method and system.
Background
The collection of the debug information of the BMC is generally divided into two types, the most direct method is to connect a physical wire (USB to TTL), and then receive the debug information output by the BMC chip through a terminal device of the system; because the BMC has a network external function, someone may also use a remote method to introduce the BMC debug information into the network channel to receive the debug information of the BMC.
Because the environment is related to the equipment, for example, in a factory environment or a machine room, when a pressure test or a long-term operation is performed on a machine, it is inconvenient to erect an actual debugging wire for each machine to record debugging information, or sometimes the machine or the environment causes damage to a network environment, so that the debugging information cannot be completely recorded, when a problem occurs, the condition of the machine is unknown, the internal information of the current BMC cannot be obtained, the information obtained by a developer is insufficient, and analysis and countermeasures cannot be immediately given.
Disclosure of Invention
The invention provides a log collection management method and system to solve the technical problems that due to the relationship between environment and equipment, for example, in a factory environment or a machine room, when a machine is subjected to pressure test or long-term operation, a physical debugging wire is inconvenient to erect for each machine to record debugging information, or sometimes the machine or the environment causes damage to a network environment, so that the debugging information cannot be completely recorded, when a problem occurs, the condition of the machine is unknown, the internal information of the current BMC cannot be obtained, the information obtained by a developer is insufficient, and analysis and countermeasures cannot be immediately given.
The technical scheme of the invention is as follows:
on one hand, the technical scheme of the invention provides a log collection management method which comprises the following steps;
scanning the connection state of a BMC interface;
when the BMC interface is scanned and connected with an external storage module, starting the information self-collection function of the external storage module;
when a BMC interface is scanned and connected with a plurality of external storage modules, selecting one external storage module, starting an information self-collection function of the external storage module, and mounting other scanned external storage modules to a BMC temporary storage area;
and the BMC writes the debug information into an external storage module mounted in the BMC temporary storage area after encrypting the debug information.
Further, the step of starting the information self-collection function of the external storage module includes:
searching whether a specific archive file exists in the external storage module, if so, starting the information self-collection function of the external storage module, otherwise, newly building a specific archive file in the external storage module, and starting the information self-collection function of the external storage module after the creation is completed. In order to search the information conveniently, a specific archive file is set to store the information.
Further, the step of starting the information self-collection function of the external storage module includes:
after the information self-collection function of the external storage module is started, debugging information is collected, and the collected debugging information is put into a specific archive file. And the external storage module which starts the information self-collection function automatically searches and acquires the debugging information in the BMC cache region, and puts the acquired debugging information into a specific archive file.
Further, the step of writing the debug information encrypted by the BMC into the external storage module mounted to the BMC temporary storage area further includes:
monitoring the residual storage space of an external storage module for starting the information self-collection function in real time;
when the storage space of an external storage module for starting the information self-collection function is full, controlling to disconnect the connection between the BMC interface and the external storage device;
the BMC writes the debug information into an external storage module mounted on the temporary storage area of the BMC after encrypting the debug information. When more than one external storage module exists, one starting information self-searching function is selected, the other external storage module is mounted in the temporary storage area of the BMC, and in order to prevent the external storage module with the starting information self-searching function from being damaged and not being capable of capturing the debug information in real time, the BMC encrypts the debug information in real time and writes the debug information into the external storage module mounted in the temporary storage area of the BMC.
Further, before the step of writing the debug information encrypted by the BMC into the external storage module mounted to the BMC temporary storage area, the method further includes:
searching whether a specific archive file exists in an external storage module mounted to the BMC temporary storage area, if so, executing the following steps: the BMC encrypts and writes the debug information into an external storage module mounted in a BMC temporary storage area; otherwise, a specific archive file is newly built in the external storage module mounted to the BMC temporary storage area, and after the specific archive file is built, the steps are executed: the BMC writes the debug information into an external storage module mounted on the temporary storage area of the BMC after encrypting the debug information.
Further, the step that the BMC encrypts the debug information of the BMC and writes the debug information into the external storage module mounted to the BMC temporary storage area includes:
converting ASCII characters into hexadecimal data;
merging the converted hexadecimal data;
and converting the calculated hexadecimal data into ASCII characters and outputting the ASCII characters to a specific archive file of an external storage module mounted in the BMC temporary storage area.
Further, the step of performing merging operation on the converted hexadecimal data includes:
merging the two hexadecimal characters obtained by conversion;
respectively converting the hexadecimal data into binary data;
taking out high order bits of the converted binary data, performing cross combination on the high order bits, and converting the high order bits into a hexadecimal number;
taking out the low order of the converted binary data, performing cross combination on the low order data, and converting the low order data into a hexadecimal order;
and respectively outputting the data after the high-order and low-order cross combination conversion.
In order to ensure the safety of the data, the data storage data is encrypted.
Further, the method further comprises:
after the information self-collection function of the external storage module is started, the BMC detects that a new external storage module is added;
judging whether the external storage module with the information self-collection function started is disconnected with the BMC interface or not, and if so, starting the information self-collection function of the newly added external storage module; if not, mounting the newly added external storage module to the BMC temporary storage area. When a new external storage module is added, whether the external storage equipment with the information self-searching function started is normally connected or not is judged, and the newly added external storage module is supplemented in time.
On the other hand, the technical scheme of the invention also provides a log collection management system, which comprises a BMC and an external storage module connected with the BMC; the BMC comprises an interface scanning module, a starting module and a processing module; the BMC is also provided with a cache area and a temporary storage area;
the interface scanning module is used for scanning the connection state of the BMC interface; the BMC temporary storage area is used for scanning the external storage module to start the information self-collection function of the external storage module;
the starting module is used for starting the information self-collection function of the external storage module;
and the processing module is used for writing the debug information after encryption processing into an external storage module mounted in the BMC temporary storage area.
Further, the BMC also comprises a detection module and a creation module;
the detection module is used for searching whether a specific archive file exists in the external storage module;
the starting module is also used for starting the information self-collection function of the external storage module when the detection module searches that the specific archive file exists in the selected external storage module;
and the creating module is used for creating the specific archive file in the external storage module when the detection module searches that the specific archive file does not exist in the external storage module.
Furthermore, the external storage module is used for searching the debug information in the BMC cache area and putting the searched debug information into a specific archive file when the information self-searching function is started.
Further, the BMC also comprises a space monitoring module and a connection control module;
the space monitoring module is used for monitoring the residual storage space of the external storage module which starts the information self-collection function in real time;
and the connection control module is used for controlling the disconnection between the BMC interface and the external storage device when the storage space of the external storage module with the information self-collection function started is full.
Further, the processing module is also used for writing the encrypted debugging information into the external storage module mounted in the BMC temporary storage area when the detection module searches that the specific archive file exists in the external storage module mounted in the BMC temporary storage area;
furthermore, the processing module comprises a conversion unit, an arithmetic unit and an output unit;
a conversion unit for converting ASCII characters into hexadecimal data; the device is also used for converting the hexadecimal data operated by the operation unit into ASCII characters;
the arithmetic unit is used for carrying out merging operation on the converted hexadecimal data;
and the output unit is used for converting the calculated hexadecimal data into ASCII characters and outputting the ASCII characters to a specific archive file of an external storage module mounted in the BMC temporary storage area.
And the operation unit is specifically used for merging the two hexadecimal characters obtained by conversion, respectively converting the hexadecimal data into binary, respectively taking out high bits of the converted binary data, performing cross merging on the high bits of the binary data, then converting the high bits of the converted binary data into hexadecimal, respectively taking out low bits of the converted binary data, performing cross merging on the low bits of the converted binary data, then converting the low bits of the converted binary data into hexadecimal, and respectively outputting the data obtained by the cross merging and conversion of the high bits and the low bits of the converted binary data.
After the information self-collection function of the external storage module is started, the interface scanning module detects that a new external storage module is added, and firstly, when the external storage module for starting the information self-collection function is disconnected with the BMC interface, the information self-collection function of the newly added external storage module is started; and when the external storage module for starting the information self-collection function is judged not to be disconnected with the BMC interface, mounting the newly added external storage module to the BMC temporary storage area.
According to the technical scheme, the invention has the following advantages: the method can adapt to different environments and conditions and acquire the internal operation condition of the BMC at any time. The external storage module which is easy to obtain is used for overcoming the defect that the resource of a tester is insufficient or the condition is not allowed at present, so that detailed information can be simply and effectively provided for a research and development staff to analyze, and the data security is also ensured.
In addition, the invention has reliable design principle, simple structure and very wide application prospect.
Therefore, compared with the prior art, the invention has prominent substantive features and remarkable progress, and the beneficial effects of the implementation are also obvious.
Drawings
In order to more clearly illustrate the embodiments or technical solutions in the prior art of the present invention, the drawings used in the description of the embodiments or prior art will be briefly described below, and it is obvious for those skilled in the art that other drawings can be obtained based on these drawings without creative efforts.
FIG. 1 is a schematic flow diagram of a method of one embodiment of the invention.
Fig. 2 is a schematic flow diagram of a method of another embodiment of the invention.
FIG. 3 is a schematic block diagram of a system of one embodiment of the present invention.
In the figure, 11-BMC, 101-buffer area, 102-opening module, 103-creating module, 104-detecting module, 105-interface scanning module, 106-temporary storage area, 107-processing module and 201-external storage module.
Detailed Description
In order to make those skilled in the art better understand the technical solution of the present invention, the technical solution in the embodiment of the present invention will be clearly and completely described below with reference to the drawings in the embodiment of the present invention, and it is obvious that the described embodiment is only a part of the embodiment of the present invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
As shown in fig. 1, as an embodiment of the present invention, there is provided a log collection management method including the steps of;
s11: scanning the connection state of a BMC interface;
s12: judging whether the number of the scanned external storage modules is greater than 1, if not, executing the step S13; if yes, go to step S15;
s13: judging whether the number of the scanned external storage modules is greater than 0, if so, executing S14; if not, go to step S11;
s14: starting the information self-collection function of the external storage module;
s15: selecting an external storage module, starting the information self-collection function of the external storage module, and mounting other scanned external storage modules to a BMC temporary storage area; step S16 is executed;
s16: and the BMC writes the debug information into an external storage module mounted in the BMC temporary storage area after encrypting the debug information.
As an embodiment of the present invention, there is provided a log collection management method including the steps of;
s11: scanning the connection state of a BMC interface;
s12: judging whether the number of the scanned external storage modules is greater than 1, if not, executing the step S13; if yes, go to step S15;
s13: judging whether the number of the scanned external storage modules is greater than 0, if so, executing S14; if not, go to step S11;
s14: starting the information self-collection function of the external storage module;
s15: selecting an external storage module, starting the information self-collection function of the external storage module, and mounting other scanned external storage modules to a BMC temporary storage area; step S16 is executed;
s16: and the BMC writes the debug information into an external storage module mounted in the BMC temporary storage area after encrypting the debug information.
In steps S14 and S15, the step of starting the information self-collection function of the external storage module specifically includes:
searching whether a specific archive file exists in the external storage module, if so, starting the information self-collection function of the external storage module, otherwise, newly building a specific archive file in the external storage module, and starting the information self-collection function of the external storage module after the creation is completed. In order to search the information conveniently, a specific archive file is set to store the information.
In addition, the step of starting the information self-collection function of the external storage module comprises the following steps:
after the information self-collection function of the external storage module is started, debugging information is collected, and the collected debugging information is put into a specific archive file. And the external storage module which starts the information self-collection function automatically searches and acquires the debugging information in the BMC cache region, and puts the acquired debugging information into a specific archive file.
As shown in fig. 2, as an embodiment of the present invention, there is provided a log collection management method including the steps of;
s11: scanning the connection state of a BMC interface;
s12: judging whether the number of the scanned external storage modules is greater than 1, if not, executing the step S13; if yes, go to step S15;
s13: judging whether the number of the scanned external storage modules is larger than 0, if so, executing S14; if not, go to step S11;
s14: starting the information self-collection function of the external storage module;
s15: selecting an external storage module, starting the information self-collection function of the external storage module, and mounting other scanned external storage modules to a BMC temporary storage area; step S16 is executed;
s16: and the BMC writes the debug information into an external storage module mounted in the BMC temporary storage area after encrypting the debug information.
In steps S14 and S15, the step of starting the information self-collection function of the external storage module specifically includes:
searching whether a specific archive file exists in the external storage module, if so, starting the information self-collection function of the external storage module, otherwise, newly building a specific archive file in the external storage module, and starting the information self-collection function of the external storage module after the creation is completed. In order to search the information conveniently, a specific archive file is set to store the information.
In addition, the step of starting the information self-collection function of the external storage module comprises the following steps:
after the information self-collection function of the external storage module is started, debugging information is collected, and the collected debugging information is put into a specific archive file. And the external storage module which starts the information self-collection function automatically searches and acquires the debugging information in the BMC cache region, and puts the acquired debugging information into a specific archive file.
In step S16, the step of writing the debug information encrypted by the BMC into the external storage module mounted to the BMC temporary storage area further includes:
monitoring the residual storage space of an external storage module for starting the information self-collection function in real time;
when the storage space of an external storage module for starting the information self-collection function is full, controlling to disconnect the connection between the BMC interface and the external storage device;
and the BMC writes the debug information into an external storage module mounted in the BMC temporary storage area after encrypting the debug information. When more than one external storage module exists, one starting information self-searching function is selected, the other external storage module is mounted in the temporary storage area of the BMC, and in order to prevent the external storage module with the starting information self-searching function from being damaged and not being capable of capturing the debug information in real time, the BMC encrypts the debug information in real time and writes the debug information into the external storage module mounted in the temporary storage area of the BMC.
As an embodiment of the present invention, there is provided a log collection management method including the steps of;
s11: scanning the connection state of a BMC interface;
s12: judging whether the number of the scanned external storage modules is greater than 1, if not, executing the step S13; if yes, go to step S15;
s13: judging whether the number of the scanned external storage modules is greater than 0, if so, executing S14; if not, go to step S11;
s14: starting the information self-collection function of the external storage module;
s15: selecting an external storage module, starting the information self-collection function of the external storage module, and mounting other scanned external storage modules to a BMC temporary storage area; step S16 is executed;
s16: and the BMC writes the debug information into an external storage module mounted in the BMC temporary storage area after encrypting the debug information.
In steps S14 and S15, the step of starting the information self-collection function of the external storage module specifically includes:
searching whether a specific archive file exists in the external storage module, if so, starting the information self-collection function of the external storage module, otherwise, newly building a specific archive file in the external storage module, and starting the information self-collection function of the external storage module after the creation is completed. In order to search the information conveniently, a specific archive file is set to store the information.
In addition, the step of starting the information self-collection function of the external storage module comprises the following steps:
after the information self-collection function of the external storage module is started, debugging information is collected, and the collected debugging information is put into a specific archive file. And the external storage module which starts the information self-collection function automatically searches and acquires the debugging information in the BMC cache region, and puts the acquired debugging information into a specific archive file.
In step S16, since log storage is a real-time output, each character is a byte of data, we use simple 2bytes combination to achieve the complexity of data (4 bytes,8bytes, etc. can also be used), and store it in the file. The step that the BMC writes the debug information into the external storage module mounted to the BMC temporary storage area after encrypting the debug information comprises the following steps:
s611: converting ASCII characters into hexadecimal data; one character is 1 byte;
s612: merging the converted hexadecimal data;
s613: and converting the calculated hexadecimal data into ASCII characters and outputting the ASCII characters to a specific archive file of an external storage module mounted in the BMC temporary storage area.
It should be further noted that, in step S612, the step of performing a merge operation on the converted hexadecimal data includes: merging the two hexadecimal characters obtained by conversion; respectively converting the hexadecimal data into binary data; taking out high order bits of the converted binary data, performing cross combination on the high order bits, and converting the high order bits into a hexadecimal number; taking out low order bits of the converted binary data, performing cross combination on the low order bits, and converting the low order bits into a hexadecimal number; and respectively outputting the data after the high-order and low-order cross combination conversion. Specifically, (1) the 0x5b 0x64 obtained in step S611 are merged;
(2) respectively converting the 16-carry data into binary (1byte to 8 bits);
0x5b:0101 1011
0x64:0110 0100
(3) taking out the high positions for cross combination;
0101 conversion of high order bits of 0x5b (even bits 0) to 00100010
High order of 0x64 0110 to 00010100
Combined high position 00100010 + 00010100 ═ 00110110
16 carry conversion, 00110110 is 0x36
(4) Taking out the low level of each component to carry out cross combination;
low order bits of 0x5b are converted (even order bits are 0) to 1011 bits of 10001010
0100 conversion (odd number 0) of 0x64 to 00010000
Combined low order 10001010 + 00010000 ═ 10011010
16 carry conversion 10011010 ═ 0x9a
(5) High and low outputs of 3&5, 0x 360 x9a, respectively;
as another embodiment of the present application, on the basis of the above embodiment, the present application further includes:
after the information self-collection function of the external storage module is started, the BMC detects that a new external storage module is added; judging whether the external storage module with the information self-collection function started is disconnected with the BMC interface or not, and if so, starting the information self-collection function of the newly added external storage module; if not, mounting the newly added external storage module to the BMC temporary storage area. When a new external storage module is added, whether the external storage equipment with the information self-searching function is normally connected or not is judged, and the newly added external storage module is supplemented in time. After a long test, if the sudden machine is found to be unresponsive, the external storage module is removed and its specific archive (/ var/tmp/console. log) is copied to the developer for analysis.
As shown in fig. 3, an embodiment of the present invention further provides a log collection management system, which includes a BMC11 and an external storage module 201 connected to the BMC 11; the BMC11 comprises an interface scanning module 105, an opening module 102 and a processing module 107; the BMC is also provided with a buffer area 101 and a temporary storage area 106;
an interface scanning module 105, configured to scan a connection state of the BMC interface; the BMC temporary storage area is used for scanning the external storage module to start the information self-collection function of the external storage module;
the starting module 102 is used for starting the information self-collection function of the external storage module;
and the processing module 107 is configured to write the debug information after encryption processing into an external storage module mounted to the BMC temporary storage area.
Another embodiment of the present invention further provides a log collection management system, which includes a BMC11 and an external storage module 201 connected to the BMC 11; the BMC11 comprises an interface scanning module 105, an opening module 102 and a processing module 107; the BMC is also provided with a buffer area 101 and a temporary storage area 106;
an interface scanning module 105, configured to scan a connection state of the BMC interface; the BMC temporary storage area is used for scanning the external storage module to start the information self-collection function of the external storage module;
the starting module 102 is used for starting the information self-collection function of the external storage module;
and the processing module 107 is configured to write the debug information after encryption processing into an external storage module mounted to the BMC temporary storage area.
The BMC further comprises a detection module 104 and a creation module 103;
a detection module 104, configured to search whether a specific archive file exists inside the external storage module;
the starting module 102 is further configured to start an information self-gathering function of the selected external storage module when the detection module searches that a specific archive file exists inside the external storage module;
the creating module 103 is configured to create a new specific archive file inside the external storage module when the detection module finds that the specific archive file does not exist inside the external storage module.
The external storage module 201 is configured to, when the information self-collection function is activated, collect debug information in the BMC cache, and place the collected debug information into a specific archive file.
As an embodiment of the present application, on the basis of the above embodiment, the BMC further includes a space monitoring module and a connection control module;
the space monitoring module is used for monitoring the residual storage space of the external storage module which starts the information self-collection function in real time;
and the connection control module is used for controlling the disconnection between the BMC interface and the external storage device when the storage space of the external storage module with the information self-collection function started is full.
As an embodiment of the present application, on the basis of the above embodiment, the processing module is further configured to, when the detection module 104 searches that a specific archive file exists in the external storage module mounted to the BMC temporary storage area, encrypt the debug information and write the debug information into the external storage module mounted to the BMC temporary storage area;
as an embodiment of the present application, on the basis of the above embodiment, the processing module 107 includes a conversion unit, an arithmetic unit, and an output unit;
a conversion unit for converting ASCII characters into hexadecimal data; the device is also used for converting the hexadecimal data operated by the operation unit into ASCII characters;
the arithmetic unit is used for carrying out merging operation on the converted hexadecimal data;
and the output unit is used for converting the calculated hexadecimal data into ASCII characters and outputting the ASCII characters to a specific archive file of an external storage module mounted in the BMC temporary storage area.
And the operation unit is specifically used for merging the two converted hexadecimal characters, respectively converting the hexadecimal data into binary, respectively taking out high bits of the converted binary data, performing cross merging on the high bits of the binary data, then converting the high bits of the binary data into hexadecimal, respectively taking out low bits of the converted binary data, performing cross merging on the low bits of the converted binary data, then converting the low bits of the converted binary data into hexadecimal, and respectively outputting the data obtained by the cross merging and conversion of the high bits and the low bits.
After the information self-collection function of the external storage module 201 is started, the interface scanning module detects that a new external storage module is added, and firstly, when the external storage module for starting the information self-collection function is disconnected with the BMC interface, the information self-collection function of the newly added external storage module is started; and when the external storage module for starting the information self-collection function is judged not to be disconnected with the BMC interface, mounting the newly added external storage module to the BMC temporary storage area.
As an embodiment of the present invention, there is provided a log collection management system including a BMC11 and an external storage module 201 connected to the BMC 11; the BMC11 comprises an interface scanning module 105, a starting module 102 and a processing module 107; the BMC is also provided with a buffer area 101 and a temporary storage area 106;
the interface scanning module is used for scanning the connection state of the BMC interface; the BMC temporary storage area is used for scanning the external storage module to start the information self-collection function of the external storage module;
the starting module 102 is used for starting the information self-collection function of the external storage module;
and the processing module 107 is configured to write the debug information after encryption processing into an external storage module mounted to the BMC temporary storage area.
The BMC further comprises a detection module 104 and a creation module 103;
a detection module 104, configured to search whether a specific archive file exists inside the external storage module;
the starting module 102 is further configured to start an information self-gathering function of the selected external storage module when the detection module searches that a specific archive file exists inside the external storage module;
the creating module 103 is configured to create a new specific archive file inside the external storage module when the detection module finds that the specific archive file does not exist inside the external storage module.
And the external storage module is used for searching the debug information in the BMC cache area and putting the searched debug information into a specific archive file when the information self-searching function is started.
Although the present invention has been described in detail by referring to the drawings in connection with the preferred embodiments, the present invention is not limited thereto. Various equivalent modifications or substitutions can be made on the embodiments of the present invention by those skilled in the art without departing from the spirit and scope of the present invention, and these modifications or substitutions are within the scope of the present invention/any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.

Claims (10)

1. A log collection management method is characterized by comprising the following steps;
scanning the connection state of a BMC interface;
when the BMC interface is scanned and connected with an external storage module, starting the information self-collection function of the external storage module;
when a BMC interface is scanned and connected with a plurality of external storage modules, selecting one external storage module, starting an information self-collection function of the external storage module, and mounting other scanned external storage modules to a BMC temporary storage area;
and the BMC writes the debug information into an external storage module mounted in the BMC temporary storage area after encrypting the debug information.
2. The log collection management method as claimed in claim 1, wherein the step of starting the information self-collection function of the external storage module comprises:
searching whether a specific archive file exists in the external storage module, if so, starting the information self-collection function of the external storage module, otherwise, newly building a specific archive file in the external storage module, and starting the information self-collection function of the external storage module after the creation is completed.
3. The log collection management method as claimed in claim 2, wherein the step of starting the information self-collection function of the external storage module is followed by:
after the information self-collection function of the external storage module is started, debugging information is collected, and the collected debugging information is put into a specific archive file.
4. The log collection management method as claimed in claim 2, wherein the step of writing the debug information encrypted by the BMC into the external storage module mounted to the BMC scratch further comprises:
monitoring the residual storage space of an external storage module with an information self-collection function in real time;
when the storage space of an external storage module which starts the information self-collection function is full, controlling to disconnect the connection between the BMC interface and the external storage device;
and the BMC writes the debug information into an external storage module mounted in the BMC temporary storage area after encrypting the debug information.
5. The log collection management method as claimed in claim 1, wherein the step of the BMC writing the debug information encrypted to the external storage module mounted to the BMC scratch further comprises:
searching whether a specific archive file exists in an external storage module mounted to the BMC temporary storage area, if so, executing the following steps: the BMC encrypts and writes the debug information into an external storage module mounted in a BMC temporary storage area; otherwise, a specific archive file is newly built in the external storage module mounted to the BMC temporary storage area, and after the specific archive file is built, the steps are executed: and the BMC writes the debug information into an external storage module mounted in the BMC temporary storage area after encrypting the debug information.
6. The log collection management method as recited in claim 5, further comprising:
after the information self-collection function of the external storage module is started, the BMC detects that a new external storage module is added;
judging whether the external storage module with the information self-collection function started is disconnected with the BMC interface or not, and if so, starting the information self-collection function of the newly added external storage module; if not, mounting the newly added external storage module to the BMC temporary storage area.
7. The log collection management system is characterized by comprising a BMC and an external storage module connected with the BMC; the BMC comprises an interface scanning module, a starting module and a processing module; the BMC is also provided with a cache area and a temporary storage area;
the interface scanning module is used for scanning the connection state of the BMC interface; the BMC temporary storage area is used for scanning the external storage module to start the information self-collection function of the external storage module;
the starting module is used for starting the information self-collection function of the external storage module;
and the processing module is used for writing the debug information after encryption processing into an external storage module mounted in the BMC temporary storage area.
8. The log collection management system of claim 7, wherein the BMC further comprises a detection module, a creation module;
the detection module is used for searching whether a specific archive file exists in the external storage module;
the starting module is also used for starting the information self-collection function of the external storage module when the detection module searches that the specific archive file exists in the selected external storage module;
and the creating module is used for creating the specific archive file in the external storage module when the detection module searches that the specific archive file does not exist in the external storage module.
9. The log collection management system of claim 8, wherein the external storage module is configured to collect the debug information in the BMC cache when the self-information collection function is enabled, and to place the collected debug information in a specific archive.
10. The log collection management system of claim 9, wherein the BMC further comprises a space monitoring module and a connection control module;
the space monitoring module is used for monitoring the residual storage space of the external storage module which starts the information self-collection function in real time;
and the connection control module is used for controlling the disconnection between the BMC interface and the external storage device when the storage space of the external storage module with the information self-collection function started is full.
CN202110656172.4A 2021-06-11 2021-06-11 Log collection management method and system Active CN113391986B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110656172.4A CN113391986B (en) 2021-06-11 2021-06-11 Log collection management method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110656172.4A CN113391986B (en) 2021-06-11 2021-06-11 Log collection management method and system

Publications (2)

Publication Number Publication Date
CN113391986A CN113391986A (en) 2021-09-14
CN113391986B true CN113391986B (en) 2022-07-08

Family

ID=77620832

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110656172.4A Active CN113391986B (en) 2021-06-11 2021-06-11 Log collection management method and system

Country Status (1)

Country Link
CN (1) CN113391986B (en)

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109189628A (en) * 2018-10-11 2019-01-11 郑州云海信息技术有限公司 A kind of BMC log processing method and system applied to server test
CN111371590A (en) * 2020-02-16 2020-07-03 苏州浪潮智能科技有限公司 Method, system and storage medium for monitoring BMC log of switch
CN112463516A (en) * 2020-10-23 2021-03-09 苏州浪潮智能科技有限公司 Method and system for collecting and verifying integrity of BMC log

Also Published As

Publication number Publication date
CN113391986A (en) 2021-09-14

Similar Documents

Publication Publication Date Title
RU2601148C1 (en) System and method for detecting anomalies when connecting devices
CN103209173B (en) A kind of procotol bug excavation method
CN112181833A (en) Intelligent fuzzy test method, device and system
CN112100016B (en) SOC diagnosis method and system under system abnormal scene
CN103713998A (en) Extensible online static code defect analytical method
CN103617396B (en) The detection method of a kind of vulnerability exploit and system
CN111597089B (en) Linux system call event acquisition and caching device and method
Mohammed et al. (HIADIoT): Hardware intrinsic attack detection in Internet of Things; leveraging power profiling
CN113572760A (en) Equipment protocol vulnerability detection method and device
CN110597704A (en) Application program pressure testing method, device, server and medium
CN113391986B (en) Log collection management method and system
CN111460178A (en) Knowledge graph-based block chain visualization system
CN114036526A (en) Vulnerability testing method and device, computer equipment and storage medium
CN107861821B (en) Mining method and device for module call relation and computer readable medium
CN105207829B (en) Intrusion detection data processing method, device and system
US9396145B1 (en) In-chip bus tracer
US8234525B2 (en) Method and system for anomaly detection in software programs with reduced false negatives
CN109586788B (en) Monitoring system fault diagnosis method and device, computer equipment and storage medium
CN108228448B (en) Code tracking method and device
Zhang et al. Genlog: Accurate log template discovery for stripped x86 binaries
US8479184B2 (en) General purpose emit for use in value profiling
CN116028266A (en) Log abnormality detection system based on flow invariance
CN114756416A (en) Log recording system, method and device of multi-path server
CN113392079A (en) Distributed storage cluster log storage optimization method, system and terminal
CN111310188A (en) Method and device for checking sensitive information of terminal file system

Legal Events

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