CN113064787A - Method and system for collecting logs based on BMC virtual media technology - Google Patents
Method and system for collecting logs based on BMC virtual media technology Download PDFInfo
- Publication number
- CN113064787A CN113064787A CN202110240097.3A CN202110240097A CN113064787A CN 113064787 A CN113064787 A CN 113064787A CN 202110240097 A CN202110240097 A CN 202110240097A CN 113064787 A CN113064787 A CN 113064787A
- Authority
- CN
- China
- Prior art keywords
- log
- bmc
- data interaction
- interaction channel
- card
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3065—Monitoring arrangements determined by the means or processing involved in reporting the monitored data
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Debugging And Monitoring (AREA)
Abstract
The application discloses a method and a system for collecting logs based on a BMC virtual media technology, wherein the method comprises the following steps: the method comprises the steps of mounting an SD card by utilizing a BMC virtual media function, forming a Vmedia SD card and establishing a first data interaction channel, accessing the Vmedia SD card through an OS to establish a second data interaction channel, copying an OS log into the SD card through the second data interaction channel at set time intervals according to an instruction sent by a BMC, and finally summarizing the BMC log and the OS log by utilizing the BMC. The system comprises: the system comprises a first data interaction channel establishing module, a second data interaction channel establishing module, an OS log copying module and a log summarizing module. By the method and the device, the server logs can be managed in a centralized mode, and the log collection efficiency is effectively improved.
Description
Technical Field
The present application relates to the technical field of server log Management, and in particular, to a method and system for collecting logs based on a BMC (Baseboard Management Controller) virtual media technology.
Background
With the rapid development of cloud computing and big data, people put higher demands on fault diagnosis and operation and maintenance of servers. In server failure diagnosis, it is generally necessary to collect a log of the BMC and a log under an OS (Operating System) for problem analysis. Therefore, how to collect BMC logs and OS logs is an important issue in server fault diagnosis and operation and maintenance.
The current method for collecting logs in a server system is generally as follows: on one hand, the BMC log is acquired out of band through the BMC, on the other hand, the OS log is acquired in band through the OS, finally, the BMC log and the OS log are collected, and then the server fault is diagnosed.
However, in the current log collection method, because BMC logs and OS logs are collected and finally summarized respectively, the log collection efficiency is not high enough, especially in the era of cloud computing and rapid development of big data, the data volume is more and more huge, and the current log collection efficiency cannot meet the requirement of rapid log collection, thereby being not beneficial to improvement of the diagnosis capability and operation and maintenance efficiency of server products.
Disclosure of Invention
The application provides a method and a system for collecting logs based on a BMC virtual media technology, which aim to solve the problem of low log collection efficiency in the prior art.
In order to solve the technical problem, the embodiment of the application discloses the following technical scheme:
a method of collecting logs based on BMC virtual media technology, the method comprising:
utilizing a BMC virtual media function to mount an SD (Secure Digital Memory Card, which is a new generation Memory device based on a semiconductor flash Memory) Card, forming a Vmedia SD Card and establishing a first data interaction channel, wherein the first data interaction channel is a data interaction channel between the BMC and the SD Card;
accessing the Vmedia SD card through the OS, and establishing a second data interaction channel, wherein the second data interaction channel is a data interaction channel between the OS and the SD card;
according to an instruction sent by the BMC, copying an OS log into the SD card through the second data interaction channel at set intervals;
and summarizing the BMC log and the OS log by utilizing BMC.
Optionally, the aggregating the BMC log and the OS log by using the BMC includes:
the BMC acquires the OS log through a first data interaction channel;
the BMC stores the OS log;
and according to the acquired log collection instruction, the BMC sends the BMC log and the OS log to the client.
Optionally, the aggregating the BMC log and the OS log by using the BMC includes:
according to the acquired log collection instruction, the BMC acquires the OS log through a first data interaction channel;
and the BMC sends the BMC log and the OS log to a client.
Optionally, the copying the OS log to the SD card every set time according to the instruction sent by the BMC specifically includes:
and saving the OS log into the SD card at set time intervals by using a BMC Driver program under the OS according to the instruction sent by the BMC.
Optionally, after the BMC log and the OS log are summarized by using the BMC, the method further includes:
and visually displaying the BMC log and the OS log.
A system for collecting logs based on BMC virtual media technology, the system comprising:
the first data interaction channel establishing module is used for mounting the SD card by utilizing the BMC virtual media function, forming a Vmedia SD card and establishing a first data interaction channel, wherein the first data interaction channel is a data interaction channel between the BMC and the SD card;
the second data interaction channel establishing module is used for accessing the Vmedia SD card through the OS and establishing a second data interaction channel, and the second data interaction channel is a data interaction channel between the OS and the SD card;
the OS log copying module is used for copying the OS log into the SD card through the second data interaction channel at set time intervals according to the instruction sent by the BMC;
and the log summarizing module is used for summarizing the BMC log and the OS log by utilizing the BMC.
Optionally, the log summarizing module includes:
the first OS log obtaining unit is used for obtaining the OS log through a first data interaction channel;
a storage unit for storing the OS log;
and the first sending unit is used for sending the BMC log and the OS log to the client according to the acquired log collection instruction.
Optionally, the log summarizing module includes:
the second OS log obtaining unit is used for obtaining the OS log through the first data interaction channel according to the obtained log collecting instruction;
and the second sending unit is used for sending the BMC log and the OS log to the client.
Optionally, the system further includes a display module, configured to visually display the BMC log and the OS log.
The technical scheme provided by the embodiment of the application can have the following beneficial effects:
the method comprises the steps of firstly mounting an SD card by using a BMC virtual media function, forming a Vmedia SD card and establishing a first data interaction channel, secondly accessing the Vmedia SD card by an OS to establish a second data interaction channel, then copying an OS log into the SD card through the second data interaction channel at set time intervals according to an instruction sent by a BMC, and finally summarizing the BMC log and the OS log by using the BMC. According to the embodiment, the SD card is mounted by utilizing the BMC virtual media function, the first data interaction channel between the BMC and the SD card and the second data interaction channel between the OS and the SD card are set up, the transfer of the in-band log of the OS by the BMC can be realized, the BMC log and the OS log are obtained in a centralized manner through the BMC out-of-band at the client, the centralized management of the server log can be realized, the log collection efficiency is greatly improved, and the diagnosis capability and the operation and maintenance efficiency of a server product are further improved.
The present application further provides a system for collecting logs based on the BMC virtual media technology, the system mainly includes: the system comprises a first data interaction channel establishing module, a second data interaction channel establishing module, an OS log copying module and a log summarizing module. Through the first data interaction channel establishing module and the second data interaction channel establishing module, the transfer of the BMC to the in-band log of the OS can be realized, then through the log summarizing module, the client can intensively obtain the BMC log and the OS log through the BMC out-of-band, finally, the centralized management of the server log is realized, and the log collecting efficiency is greatly improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application.
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic flowchart of a method for collecting logs based on a BMC virtual media technology according to an embodiment of the present disclosure;
fig. 2 is a schematic structural diagram of a system for collecting logs based on the BMC virtual media technology according to an embodiment of the present disclosure;
fig. 3 is a schematic diagram of an operating principle of a system for collecting logs based on the BMC virtual media technology according to an embodiment of the present disclosure.
Detailed Description
In order to make those skilled in the art better understand the technical solutions in the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the 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.
For a better understanding of the present application, embodiments of the present application are explained in detail below with reference to the accompanying drawings.
Example one
Referring to fig. 1, fig. 1 is a schematic flowchart of a method for collecting logs based on a BMC virtual media technology according to an embodiment of the present disclosure. As shown in fig. 1, the method for collecting logs based on the BMC virtual media technology in this embodiment mainly includes the following steps:
s1: and mounting the SD card by utilizing the BMC virtual media function to form a Vmedia SD card and establish a first data interaction channel. The first data interaction channel is a data interaction channel between the BMC and the SD card.
In this embodiment, the BMC uses an SD storage medium, and mounts an SD card through the Vmedia function, thereby implementing the external load of the BMC to the OS in-band log by using the Vmedia function.
S2: and accessing the Vmedia SD card through the OS to establish a second data interaction channel. And the second data interaction channel is a data interaction channel between the OS and the SD card.
Through steps S1 and S2, two data interaction channels are established, and data interaction between the BMC and the OS is realized through the SD card storage medium.
S3: and copying the OS log into the SD card through a second data interaction channel at set time intervals according to the instruction sent by the BMC.
The timing log replication in this embodiment may be implemented by a BMC Driver under the OS. Specifically, according to the instruction sent by the BMC, the BMC Driver under the OS is used to store the OS log into the SD card at set intervals.
With continued reference to fig. 1, after the OS log timing is copied to the SD, step S4 is executed: and summarizing the BMC log and the OS log by using the BMC.
Specifically, there are two implementations of step S4. The first way of summarizing logs by using BMC includes the following processes:
s401: the BMC acquires the OS log through a first data interaction channel;
s402: the BMC stores the OS log;
s403: and according to the acquired log collection instruction, the BMC sends the BMC log and the OS log to the client.
The first log summarizing mode is that the OS log is stored in the BMC in advance, and when a log collecting instruction from the client is obtained, the BMC directly sends the BMC log and the OS log to the client, so that the log collecting efficiency is higher.
The second way of using BMC for log summarization includes the following processes:
s411: and according to the acquired log collection instruction, the BMC acquires the OS log through the first data interaction channel.
S412: and the BMC sends the BMC log and the OS log to the client.
The second log summarizing mode is that when a log collecting instruction from a client is obtained, the BMC obtains an OS log through a first data interaction channel, and then sends the BMC log and the OS log to the client. The log collection mode occupies less resources of the BMC, and is beneficial to improving the resource utilization rate.
Further, in this embodiment, the step S4 is followed by the step S5: and visually displaying the BMC log and the OS log. The BMC log and the OS log can be displayed in a web page form of the BMC, so that the related logs can be viewed more intuitively.
Example two
Referring to fig. 2 based on the embodiment shown in fig. 1, fig. 2 is a schematic structural diagram of a system for collecting logs based on BMC virtual media technology according to an embodiment of the present disclosure. As shown in fig. 2, the system for collecting logs based on the BMC virtual media technology in this embodiment mainly includes: the system comprises a first data interaction channel establishing module, a second data interaction channel establishing module, an OS log copying module and a log summarizing module.
The system comprises a first data interaction channel establishing module, a second data interaction channel establishing module and a data interaction module, wherein the first data interaction channel establishing module is used for mounting an SD card by utilizing a BMC virtual media function, forming a Vmedia SD card and establishing a first data interaction channel, and the first data interaction channel is a data interaction channel between a BMC and the SD card; the second data interaction channel establishing module is used for accessing the Vmedia SD card through the OS and establishing a second data interaction channel, and the second data interaction channel is a data interaction channel between the OS and the SD card; the OS log copying module is used for copying the OS log into the SD card through the second data interaction channel at set time intervals according to the instruction sent by the BMC; and the log summarizing module is used for summarizing the BMC log and the OS log by utilizing the BMC. The working principle of the system for collecting logs based on the BMC virtual media technology in this embodiment can be seen in fig. 3. In fig. 3, the BMC is connected to the client via a LAN network.
Further, the log summarizing module has two structural implementation forms, wherein the first structure comprises: the device comprises a first OS log obtaining unit, a storage unit and a first sending unit. The first OS log obtaining unit is used for obtaining the OS log through a first data interaction channel; a storage unit for storing an OS log; and the first sending unit is used for sending the BMC log and the OS log to the client according to the acquired log collection instruction.
The log summarization module of the second structure comprises: a second OS log obtaining unit and a second sending unit. The second OS log obtaining unit is used for obtaining the OS log through the first data interaction channel according to the obtained log collecting instruction; and the second sending unit is used for sending the BMC log and the OS log to the client.
Further, the system for collecting the log based on the BMC virtual media technology in this embodiment further includes a display module, configured to perform visual display on the BMC log and the OS log.
In this embodiment, the working principle and the working method of the system for collecting logs based on the BMC virtual media technology have been described in detail in the embodiment shown in fig. 1, and the two embodiments may be referred to each other, which is not described herein again.
The above description is merely exemplary of the present application and is presented to enable those skilled in the art to understand and practice the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims (9)
1. A method for collecting logs based on a BMC virtual media technology is characterized by comprising the following steps:
mounting the SD card by utilizing a BMC virtual media function to form a Vmedia SD card and establishing a first data interaction channel, wherein the first data interaction channel is a data interaction channel between the BMC and the SD card;
accessing the Vmedia SD card through the OS, and establishing a second data interaction channel, wherein the second data interaction channel is a data interaction channel between the OS and the SD card;
according to an instruction sent by the BMC, copying an OS log into the SD card through the second data interaction channel at set intervals;
and summarizing the BMC log and the OS log by utilizing BMC.
2. The method of claim 1, wherein the aggregating the BMC log and the OS log using the BMC comprises:
the BMC acquires the OS log through a first data interaction channel;
the BMC stores the OS log;
and according to the acquired log collection instruction, the BMC sends the BMC log and the OS log to the client.
3. The method of claim 1, wherein the aggregating the BMC log and the OS log using the BMC comprises:
according to the acquired log collection instruction, the BMC acquires the OS log through a first data interaction channel;
and the BMC sends the BMC log and the OS log to a client.
4. The method according to claim 1, wherein the OS log is copied to the SD card at set intervals according to an instruction sent by the BMC, specifically:
and saving the OS log into the SD card at set time intervals by using a BMC Driver program under the OS according to the instruction sent by the BMC.
5. The method for collecting logs based on the BMC virtual media technology, according to any of claims 1-4, wherein after the BMC log and the OS log are summarized by the BMC, the method further comprises:
and visually displaying the BMC log and the OS log.
6. A system for collecting logs based on BMC virtual media technology, the system comprising:
the first data interaction channel establishing module is used for mounting the SD card by utilizing the BMC virtual media function, forming a Vmedia SD card and establishing a first data interaction channel, wherein the first data interaction channel is a data interaction channel between the BMC and the SD card;
the second data interaction channel establishing module is used for accessing the Vmedia SD card through the OS and establishing a second data interaction channel, and the second data interaction channel is a data interaction channel between the OS and the SD card;
the OS log copying module is used for copying the OS log into the SD card through the second data interaction channel at set time intervals according to the instruction sent by the BMC;
and the log summarizing module is used for summarizing the BMC log and the OS log by utilizing the BMC.
7. The system of claim 6, wherein the log summarization module comprises:
the first OS log obtaining unit is used for obtaining the OS log through a first data interaction channel;
a storage unit for storing the OS log;
and the first sending unit is used for sending the BMC log and the OS log to the client according to the acquired log collection instruction.
8. The system of claim 6, wherein the log summarization module comprises:
the second OS log obtaining unit is used for obtaining the OS log through the first data interaction channel according to the obtained log collecting instruction;
and the second sending unit is used for sending the BMC log and the OS log to the client.
9. The system for collecting logs based on BMC virtual media technology as claimed in any one of claims 6-8, wherein said system further comprises a display module for visually displaying said BMC log and OS log.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110240097.3A CN113064787B (en) | 2021-03-04 | 2021-03-04 | Method and system for collecting logs based on BMC virtual media technology |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110240097.3A CN113064787B (en) | 2021-03-04 | 2021-03-04 | Method and system for collecting logs based on BMC virtual media technology |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113064787A true CN113064787A (en) | 2021-07-02 |
CN113064787B CN113064787B (en) | 2022-05-31 |
Family
ID=76559823
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110240097.3A Active CN113064787B (en) | 2021-03-04 | 2021-03-04 | Method and system for collecting logs based on BMC virtual media technology |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113064787B (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104268068A (en) * | 2014-09-24 | 2015-01-07 | 浪潮电子信息产业股份有限公司 | Method for acquiring server log information |
US20150163282A1 (en) * | 2012-07-10 | 2015-06-11 | Avocent Huntsville Corp. | System and method for accessing remote disk images using a vmedia client and through a remote access appliance |
CN109639803A (en) * | 2018-12-18 | 2019-04-16 | 郑州云海信息技术有限公司 | A kind of method and system by BMC Long-range Automatic Deployment server OS |
CN109885345A (en) * | 2019-02-28 | 2019-06-14 | 苏州浪潮智能科技有限公司 | A kind of date storage method, SD storage card and electronic equipment and storage medium |
CN111506547A (en) * | 2020-04-17 | 2020-08-07 | 苏州浪潮智能科技有限公司 | Folder loading method, device, equipment and medium |
-
2021
- 2021-03-04 CN CN202110240097.3A patent/CN113064787B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20150163282A1 (en) * | 2012-07-10 | 2015-06-11 | Avocent Huntsville Corp. | System and method for accessing remote disk images using a vmedia client and through a remote access appliance |
CN104268068A (en) * | 2014-09-24 | 2015-01-07 | 浪潮电子信息产业股份有限公司 | Method for acquiring server log information |
CN109639803A (en) * | 2018-12-18 | 2019-04-16 | 郑州云海信息技术有限公司 | A kind of method and system by BMC Long-range Automatic Deployment server OS |
CN109885345A (en) * | 2019-02-28 | 2019-06-14 | 苏州浪潮智能科技有限公司 | A kind of date storage method, SD storage card and electronic equipment and storage medium |
CN111506547A (en) * | 2020-04-17 | 2020-08-07 | 苏州浪潮智能科技有限公司 | Folder loading method, device, equipment and medium |
Non-Patent Citations (2)
Title |
---|
苏振宇: "可信计算在服务器基板管理控制器中的应用", 《电子技术应用》 * |
苏振宇: "可信计算在服务器基板管理控制器中的应用", 《电子技术应用》, vol. 44, no. 5, 6 May 2018 (2018-05-06) * |
Also Published As
Publication number | Publication date |
---|---|
CN113064787B (en) | 2022-05-31 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111131379B (en) | Distributed flow acquisition system and edge calculation method | |
CN102546256B (en) | System and method used for monitoring cloud computation service | |
CN111371640B (en) | SDN controller-based traffic collection analysis method and system | |
CN103312544B (en) | A kind of control terminal reports the method, apparatus and system of journal file | |
CN107766509B (en) | Method and device for static backup of webpage | |
CN101707632A (en) | Method for dynamically monitoring performance of server cluster and alarming real-timely | |
CN103167034B (en) | Based on the construction method of the monitoring Agent of CloudStack dummy node | |
CN102624919A (en) | Distributed service integrated system for service-oriented architecture and application method thereof | |
CN108156225B (en) | Micro-application monitoring system and method based on container cloud platform | |
CN102820983B (en) | System exception information collecting method and manager | |
WO2021077746A1 (en) | Data recovery method, apparatus and device, and readable storage medium | |
CN103117874A (en) | Blade server management network rapid configuration method | |
CN105045905A (en) | Log maintenance method and system based on full-text retrieval | |
CN113938516A (en) | Method and system for synchronously realizing transaction processing of heterogeneous system | |
CN113872795A (en) | Intelligent monitoring analysis and fault processing system and method for distributed server | |
CN203301532U (en) | Cloud desktop system | |
CN213876703U (en) | Resource pool management system | |
CN113064787B (en) | Method and system for collecting logs based on BMC virtual media technology | |
CN117194156A (en) | Unified monitoring operation and maintenance management method and system for multi-cloud platform | |
CN111698109A (en) | Method and device for monitoring log | |
CN112685486B (en) | Data management method and device for database cluster, electronic equipment and storage medium | |
CN114520809A (en) | Method and device for realizing load balancing of back-end request | |
CN110401652B (en) | Digital media data processing method based on super-fusion storage | |
CN104144176A (en) | Method for connecting intelligent desktop system clients and servers | |
CN114090382A (en) | Health inspection method and device for super-converged cluster |
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 |