CN111522712A - BMC log collection system - Google Patents

BMC log collection system Download PDF

Info

Publication number
CN111522712A
CN111522712A CN202010309397.8A CN202010309397A CN111522712A CN 111522712 A CN111522712 A CN 111522712A CN 202010309397 A CN202010309397 A CN 202010309397A CN 111522712 A CN111522712 A CN 111522712A
Authority
CN
China
Prior art keywords
band
log
bmc
log file
usb link
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.)
Withdrawn
Application number
CN202010309397.8A
Other languages
Chinese (zh)
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 CN202010309397.8A priority Critical patent/CN111522712A/en
Publication of CN111522712A publication Critical patent/CN111522712A/en
Withdrawn legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3065Monitoring arrangements determined by the means or processing involved in reporting the monitored data
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4282Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus

Abstract

The application discloses a BMC log collection system, which comprises an in-band OS system, an out-of-band BMC and a USB link, wherein the in-band OS system is connected with the out-of-band BMC through the USB link; the in-band OS system is used for issuing a log collection instruction to the USB link; the USB link is used for sending the log collection instruction to the out-of-band BMC by using a preset IPMI protocol and sending a log file fed back by the out-of-band BMC to the in-band OS system; the out-of-band BMC is used for collecting logs according to the log collection instruction to obtain the log file; the BMC log collection system can effectively realize the rapid collection of the out-of-band BMC log information by the in-band OS system, and further improves the BMC log collection efficiency.

Description

BMC log collection system
Technical Field
The application relates to the technical field of server monitoring management, in particular to a BMC log collection system.
Background
With the continuous increase of the demand of users for computer computing, the types of devices are developed more and more, and the function of out-of-band Management BMC (Baseboard Management Controller) is also more and more complex. The BMC is a special service processor, and the entire server log monitored by the BMC is very important information, so that it is sometimes necessary to download the log information stored by the out-of-band management BMC to an in-band OS (Operating System) in a band. However, because the in-band system and the out-band system are not intercommunicated, the transmission of the log information is realized by using the removable storage medium in the prior art, and the realization method not only wastes the labor cost, but also has extremely low log collection efficiency.
Therefore, how to effectively realize the fast collection of the out-of-band BMC log information by the in-band OS system and further improve the log collection efficiency is a problem to be solved by those skilled in the art.
Disclosure of Invention
The purpose of the application is to provide a BMC log collection system, which can effectively realize the rapid collection of out-of-band BMC log information by an in-band OS system, and further improve the BMC log collection efficiency.
In order to solve the above technical problem, the present application provides a BMC log collection system, including an in-band OS system, an out-of-band BMC, and a USB link, where the in-band OS system and the out-of-band BMC are connected through the USB link;
the in-band OS system is used for issuing a log collection instruction to the USB link;
the USB link is used for sending the log collection instruction to the out-of-band BMC by using a preset IPMI protocol and sending a log file fed back by the out-of-band BMC to the in-band OS system;
and the out-of-band BMC is used for collecting logs according to the log collection instruction to obtain the log file.
Preferably, the in-band OS system is specifically configured to issue the log collection instruction to the USB link according to a preset time interval.
Preferably, the out-of-band BMC is further configured to classify the log files according to a preset log classification policy, obtain the classified log files, and feed back the classified log files to the USB link.
Preferably, the out-of-band BMC is specifically configured to classify the log file according to a device type, obtain the classified log file, and feed back the classified log file to the USB link.
Preferably, the out-of-band BMC is further configured to encrypt the log file according to a preset encryption algorithm, obtain an encrypted log file, and feed back the encrypted log file to the USB link.
Preferably, the out-of-band BMC is further configured to compress the log file to obtain a file compression packet, and feed back the file compression packet to the USB link.
Preferably, the in-band OS system is further configured to compare and analyze the log file by using a historical log file, determine whether the log file has abnormal data, and if so, output the abnormal data.
Preferably, the BMC log collection system further includes:
and the alarm device is used for receiving an alarm instruction sent by the in-band OS system when the log file has the abnormal data and responding to the alarm instruction to alarm.
Preferably, the BMC log collection system further includes:
and the visualization equipment is used for displaying the log file and the abnormal data.
Preferably, the BMC log collection system further includes:
and the storage device is used for receiving the log file sent by the in-band OS system and adding the log file to a history log file library.
The BMC log collection system comprises an in-band OS system, an out-of-band BMC and a USB link, wherein the in-band OS system is connected with the out-of-band BMC through the USB link; the in-band OS system is used for issuing a log collection instruction to the USB link; the USB link is used for sending the log collection instruction to the out-of-band BMC by using a preset IPMI protocol and sending a log file fed back by the out-of-band BMC to the in-band OS system; and the out-of-band BMC is used for collecting logs according to the log collection instruction to obtain the log file.
Therefore, the BMC log collection system provided by the application establishes the USB link between the in-band OS system and the out-of-band BMC, that is, the data communication between the in-band OS system and the out-of-band BMC can be realized through the USB (Universal Serial Bus) link and the IPMI (intelligent platform Management Interface) protocol, thereby realizing the automatic collection of the out-of-band BMC log information by the in-band OS system.
Drawings
In order to more clearly illustrate the technical solutions in the prior art and the embodiments of the present application, the drawings that are needed to be used in the description of the prior art and the embodiments of the present application will be briefly described below. Of course, the following description of the drawings related to the embodiments of the present application is only a part of the embodiments of the present application, and it will be obvious to those skilled in the art that other drawings can be obtained from the provided drawings without any creative effort, and the obtained other drawings also belong to the protection scope of the present application.
Fig. 1 is a schematic structural diagram of a BMC log collection system provided in the present application;
fig. 2 is a schematic structural diagram of another BMC log collection system provided in the present application.
Detailed Description
The core of the application is to provide a BMC log collection system, which can effectively realize the rapid collection of the out-of-band BMC log information by the in-band OS system, and further improve the BMC log collection efficiency.
In order to more clearly and completely describe the technical solutions in the embodiments of the present application, the technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application. It is to be understood that the embodiments described are only a few embodiments of the present application 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 application.
With the continuous improvement of the demand of users for computer computing, the types of devices are developed more and more abundantly, and the function of managing BMC outside the band is more and more complex. The BMC is a special service handler, and the entire server log monitored by the BMC is very important information, so that it is sometimes necessary to download log information stored by the out-of-band management BMC to the in-band OS system in band. However, because the in-band system and the out-band system are not intercommunicated, the transmission of the log information is realized by using the removable storage medium in the prior art, and the realization method not only wastes the labor cost, but also has extremely low log collection efficiency.
Therefore, in order to solve the above technical problems, the present application provides a BMC log collection system, where a USB link is established between an in-band OS system and an out-of-band BMC, that is, data communication between the in-band OS system and the out-of-band BMC can be achieved through the USB link and an IPMI protocol, so that automatic collection of out-of-band BMC log information by the in-band OS system is achieved.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a BMC log collection system provided in the present application, including an in-band OS system 1, an out-of-band BMC2 and a USB link 3, where the in-band OS system 1 is connected to the out-of-band BMC2 through the USB link 3;
the in-band OS system 1 is used for issuing a log collection instruction to the USB link 3;
the USB link 3 is used for sending the log collection instruction to the out-of-band BMC2 by using a preset IPMI protocol and sending the log file fed back by the out-of-band BMC2 to the in-band OS system 1;
and the out-of-band BMC2 is used for collecting logs according to the log collection instruction to obtain log files.
Specifically, the in-band OS system 1 is deployed in the in-band system, and the out-of-band BMC2 is deployed in the out-of-band system, and in order to collect log information monitored by the out-of-band BMC2 by the in-band OS system 1, a USB link 3 may be established between the two to implement data transmission.
Based on this, when the in-band OS system 1 needs to collect log information monitored by the out-of-band BMC2, a log collection instruction may be issued to the out-of-band BMC2 through the USB link 3, wherein transmission of the log collection instruction in the USB link 3 is implemented based on a preset IPMI protocol (IPMI Over USB); further, when receiving the log collection instruction, the out-of-band BMC2 may collect the log according to the log collection instruction, obtain a corresponding log file, and feed back the log file to the in-band OS system 1 through the USB link 3 again, and of course, the transmission of the log file in the USB link 3 may also be implemented based on the preset IPMI protocol. So far, the collection of the out-of-band BMC2 monitoring log by the in-band OS system 1 is completed.
The issuing mode of the log collection instruction does not affect the implementation of the technical scheme, and the log collection instruction may be initiated by the administrator to the in-band OS system 1 based on a corresponding terminal and then issued by the in-band OS system 1, or may be automatically triggered by the in-band OS system 1 based on a response condition preset by the administrator, which is not limited in this application.
In addition, specific content of the log file is not unique, and the log file may be log information generated by all devices monitored by the out-of-band BMC2 in an operation process, or may be selected and set by an administrator according to actual requirements, which is not limited in this application.
As a preferred embodiment, the in-band OS system 1 may be specifically configured to issue a log collection command to the USB link 3 at a preset time interval.
The preferred embodiment provides a more specific method for issuing a log collection instruction, that is, an automatic response based on a preset time interval is provided, that is, the in-band OS system 1 may issue a log collection instruction to the USB link 3 according to a preset time interval cycle, so as to realize periodic collection of log information and real-time monitoring.
It can be understood that the specific value of the preset time interval does not affect the implementation of the technical scheme, and the specific value is set by a technician according to actual requirements, for example, the preset time interval can be set to be one week or one month, and the like, which is not specifically limited in the present application.
Therefore, the BMC log collection system provided by the application establishes the USB link between the in-band OS system and the out-of-band BMC, namely, the data communication between the in-band OS system and the out-of-band BMC can be realized through the USB link and the IPMI protocol, so that the automatic collection of log information of the out-of-band BMC by the in-band OS system is realized.
On the basis of the above embodiments:
as a preferred embodiment, the out-of-band BMC2 may further be configured to classify the log files according to a preset log classification policy, obtain the classified log files, and feed back the classified log files to the USB link 3.
The preferred embodiment provides a more specific log file feedback method, that is, the readability of the user is improved by classifying the log files. Specifically, before feeding the log files back to the USB link 3, the out-of-band BMC2 calls a preset log classification policy to classify the log files, and then feeds the classified log files back to the USB link 3, and transmits the classified log files to the in-band OS system 1 through the USB link 3.
The preset log classification policy is a log classification policy preset by a technician according to actual needs, and specific contents of the preset log classification policy are not unique, for example, the log classification policy can be used for classifying log files according to acquisition dates, data formats or production equipment, and the like, and can also be used for classifying the log files according to current Running data and acquired data so as to facilitate log reading and log query by a user. In addition, the preset log classification strategy can be stored in a preset storage space, so that the direct calling is convenient.
As a preferred embodiment, the out-of-band BMC2 may be specifically configured to classify log files according to device types, obtain the classified log files, and feed back the classified log files to the USB link 3.
The preferred embodiment provides a preset log classification strategy of a specific type, namely a log classification strategy based on an equipment type, and specifically classifies log files generated by the same equipment in the operation process into one class so as to facilitate the query of a user.
As a preferred embodiment, the out-of-band BMC2 may further be configured to encrypt the log file according to a preset encryption algorithm, obtain an encrypted log file, and feed back the encrypted log file to the USB link 3.
The preferred embodiment provides another specific log file feedback method, that is, security of data information is improved by encrypting the log file. Specifically, before feeding the log files back to the USB link 3, the out-of-band BMC2 calls a preset encryption algorithm to encrypt the log files, and then feeds the encrypted log files back to the USB link 3, and transmits the encrypted log files to the in-band OS system 1 through the USB link 3.
The specific type of the encryption algorithm is not unique, and may be, for example, a symmetric encryption algorithm, or a combination of multiple encryption algorithms, and different encryption algorithms may be adopted according to the importance level of the log file to implement the encryption operation on the log file. Similarly, the encryption algorithm can be stored in a pre-established storage space, so that the direct calling is convenient. Of course, when the in-band OS system 1 receives the encrypted log file, it may decrypt the log file by using the decryption algorithm corresponding to the encryption algorithm.
As a preferred embodiment, the out-of-band BMC2 may further be configured to perform compression processing on the log file to obtain a file compression packet, and feed back the file compression packet to the USB link 3.
The preferred embodiment provides a more specific log file feedback method, that is, the transmission rate of the data information is increased by compressing the log file. Specifically, before feeding the log files back to the USB link 3, the out-of-band BMC2 compresses the log files to obtain a file compression packet, and then feeds the file compression packet back to the USB link 3, and transmits the file compression packet to the in-band OS system 1 through the USB link 3. The compression process of the log file can refer to the prior art, and is not described herein again. Further, the in-band OS system 1 may decompress the file compression packet by a corresponding decompression technique after receiving the file compression packet.
It is to be understood that, in the actual BMC log collection process, the above-mentioned classification processing, encryption processing, and compression processing for the log files may be performed alternatively, for example, the classification processing may be performed on the log files first, and then the encryption processing and compression processing may be performed on the classified log files, or one or more of them may be optionally selected and combined.
On the basis of the foregoing embodiments, please refer to fig. 2, and fig. 2 is a schematic structural diagram of another BMC log collection system provided in the present application.
As a preferred embodiment, the in-band OS system 1 may further be configured to perform a comparison analysis on the log file by using the historical log file, determine whether the log file has abnormal data, and if so, output the abnormal data.
The BMC log collection system provided in the preferred embodiment aims to implement exception analysis of log files. Specifically, in the in-band OS system 1, the BMC logs collected in the past may be stored, and therefore, when the log file collected this time is received, the log file may be compared with the historical log file for analysis, so as to determine whether abnormal data exists in the log file, and when the abnormal data is detected, the abnormal data is output in time to notify a technician of an abnormal situation. The output of the abnormal data can adopt a mail push mode, a WeChat mode or a short message reminding mode and the like.
As a preferred embodiment, the BMC log collection system may further include: and the alarm device 4 is used for receiving an alarm instruction sent by the in-band OS system 1 when the log file has abnormal data, and giving an alarm in response to the alarm instruction.
The BMC log collection system provided in the preferred embodiment aims to implement an abnormal alarm of a log file. Specifically, the alarm device 4 may be additionally connected to the in-band OS system 1, so that when the in-band OS system 1 detects that there is abnormal data in the log file, an alarm instruction may be immediately sent to the alarm device 4, thereby implementing an abnormal alarm to remind a technician to perform troubleshooting and maintenance in time. The specific implementation manner of the abnormal alarm is not exclusive, for example, a method of voice prompt or blinking of an indicator light may be adopted, and the application is not limited to this.
As a preferred embodiment, the BMC log collection system may further include: and the visualization device 5 is used for displaying the log file and the abnormal data.
The BMC log collection system provided in this preferred embodiment aims to realize visual display of log files. Specifically, the visualization device 5 can be additionally arranged to be connected with the in-band OS system 1, and therefore the in-band OS system 1 can send the received log file to the visualization device 5 for display, so that a technician can know the current operating condition of the server more intuitively and conveniently.
As a preferred embodiment, the BMC log collection system may further include: and a storage device 6 for receiving the log file transmitted by the in-band OS system 1 and adding the log file to the history log file library.
The BMC log collection system provided in this preferred embodiment aims to store log files. Specifically, the storage device 6 may be additionally provided to be connected to the in-band OS system 1, so that the in-band OS system 1 may send the received log file to the storage device 6 for storage. A database, namely the history log file library, can be established in the storage device 6, so as to store history log files, and facilitate log query and retrieval by users.
The embodiments are described in a progressive manner in the specification, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The technical solutions provided by the present application are described in detail above. The principles and embodiments of the present application are explained herein using specific examples, which are provided only to help understand the method and the core idea of the present application. It should be noted that, for those skilled in the art, without departing from the principle of the present application, several improvements and modifications can be made to the present application, and these improvements and modifications also fall into the protection scope of the present application.

Claims (10)

1. A BMC log collection system is characterized by comprising an in-band OS system, an out-of-band BMC and a USB link, wherein the in-band OS system is connected with the out-of-band BMC through the USB link;
the in-band OS system is used for issuing a log collection instruction to the USB link;
the USB link is used for sending the log collection instruction to the out-of-band BMC by using a preset IPMI protocol and sending a log file fed back by the out-of-band BMC to the in-band OS system;
and the out-of-band BMC is used for collecting logs according to the log collection instruction to obtain the log file.
2. The BMC log collection system of claim 1, wherein the in-band OS system is specifically configured to issue the log collection instruction to the USB link at a preset time interval.
3. The BMC log collection system of claim 1, wherein the out-of-band BMC is further configured to classify the log file according to a preset log classification policy, obtain a classified log file, and feed back the classified log file to the USB link.
4. The BMC log collection system of claim 3, wherein the out-of-band BMC is specifically configured to classify the log file according to a device type, obtain the classified log file, and feed back the classified log file to the USB link.
5. The BMC log collection system of claim 1, wherein the out-of-band BMC is further configured to encrypt the log file according to a preset encryption algorithm, obtain an encrypted log file, and feed back the encrypted log file to the USB link.
6. The BMC log collection system of claim 1, wherein the out-of-band BMC is further configured to compress the log file to obtain a file compression packet, and feed back the file compression packet to the USB link.
7. The BMC log collection system of any of claims 1 to 6, wherein the in-band OS system is further configured to perform a comparative analysis on the log file using a historical log file to determine whether the log file has abnormal data, and if so, output the abnormal data.
8. The BMC log collection system of claim 7, further comprising:
and the alarm device is used for receiving an alarm instruction sent by the in-band OS system when the log file has the abnormal data and responding to the alarm instruction to alarm.
9. The BMC log collection system of claim 7, further comprising:
and the visualization equipment is used for displaying the log file and the abnormal data.
10. The BMC log collection system of claim 7, further comprising:
and the storage equipment is used for receiving the log file sent by the in-band 0S system and adding the log file to a history log file library.
CN202010309397.8A 2020-04-17 2020-04-17 BMC log collection system Withdrawn CN111522712A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010309397.8A CN111522712A (en) 2020-04-17 2020-04-17 BMC log collection system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010309397.8A CN111522712A (en) 2020-04-17 2020-04-17 BMC log collection system

Publications (1)

Publication Number Publication Date
CN111522712A true CN111522712A (en) 2020-08-11

Family

ID=71904311

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010309397.8A Withdrawn CN111522712A (en) 2020-04-17 2020-04-17 BMC log collection system

Country Status (1)

Country Link
CN (1) CN111522712A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114598694A (en) * 2022-02-10 2022-06-07 宝德计算机系统股份有限公司 File transmission method and BMC log collection system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114598694A (en) * 2022-02-10 2022-06-07 宝德计算机系统股份有限公司 File transmission method and BMC log collection system

Similar Documents

Publication Publication Date Title
CN110224858B (en) Log-based alarm method and related device
CN110661659A (en) Alarm method, device and system and electronic equipment
WO2019223062A1 (en) Method and system for processing system exceptions
CN113176978B (en) Monitoring method, system, equipment and readable storage medium based on log file
CN112311617A (en) Configured data monitoring and alarming method and system
CN110224865A (en) A kind of log warning system based on Stream Processing
CN112395156A (en) Fault warning method and device, storage medium and electronic equipment
CN111323646A (en) System and method for reading ammeter
CN111092759A (en) Log management method, device and medium in JBOD (just in Bunch) out-of-band management system
US20120109663A1 (en) Advanced Metering Infrastructure Event Filtering
CN106095638A (en) The method of a kind of server resource alarm, Apparatus and system
CN111800292A (en) Early warning method and device based on historical flow, computer equipment and storage medium
CN111522712A (en) BMC log collection system
CN111881093A (en) Data reporting method, device and system
CN111124859A (en) Log processing method, device, equipment and storage medium
CN109753009A (en) A kind of level monitoring online data management system
CN111741007B (en) Financial business real-time monitoring system and method based on network layer message analysis
CN106534162A (en) Server temperature monitoring system and method based on remote management communication protocol
KR100984282B1 (en) An enterprise security management system using an memory cache
CN113507691B (en) Information pushing system and method based on power distribution network cross-region service
CN108304293A (en) A kind of software systems monitoring method based on big data technology
CN115934464A (en) Information platform monitoring and collecting system
CN109598488B (en) Group red packet abnormal behavior identification method and device, medium and electronic equipment
CN109508356B (en) Data abnormality early warning method, device, computer equipment and storage medium
CN109388546B (en) Method, device and system for processing faults of application program

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
WW01 Invention patent application withdrawn after publication

Application publication date: 20200811

WW01 Invention patent application withdrawn after publication