Method for optimizing server log collection
By adding components such as CPLD controllers and multiplexers to the server motherboard, and using BMC log collection buttons to control log collection, the problem in the existing technology that acquisition of server log data requires professional knowledge is solved, and a fast and simplified The log export process is suitable for scenarios where the information center’s operation and maintenance capabilities are weak.
Patent Information
- Application Number
- CN202311850423.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-29
- Publication Date
- 2024-08-30
AI Technical Summary
The existing technology requires professional knowledge and is time-consuming and labor-intensive in the process of obtaining server log data, and is not suitable for use in scenarios where the information center has weak operation and maintenance capabilities.
Add a CPLD controller, baseboard management controller, BMC log collection button, type-C multiplexer and USB multiplexer to the server motherboard. Use the BMC log collection button to control log collection and determine the storage device connection status. Implement quick export of server logs.
It simplifies the operation steps, shortens the manual query time, and is suitable for non-professionals to quickly export server log information in a simple environment.
Smart Images

Figure CN118567940A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of information technology, and in particular to a method for optimizing server log collection. Background Art
[0002] The information system is deployed on the server of the information center. Nowadays, the huge amount of data and complex application software are supported by a large number of servers. The stable operation of the server is related to whether the software platform can operate normally. Once the server fails, the application cannot be used and the platform is paralyzed, which will cause serious losses. The server will generate log data during operation, and the operation and maintenance personnel can analyze the log data to perform daily inspections, status analysis, and troubleshooting of the server. Therefore, quick and convenient acquisition of server log data is crucial to server operation and maintenance.
[0003] At present, the acquisition of server log data is often done by professional network operation and maintenance personnel who enter the server platform and export the server log data manually or by software, which requires extremely high professional knowledge, is prone to errors, has a large workload, and is time-consuming and labor-intensive. A server log collection device with publication number CN114816935A and a server that exports server log data to a switch network through an RJ45 network port increase operation and maintenance equipment, add a TF memory card slot to the server, increase the burden on the server motherboard, and require remote management of the computer for operation, which still requires certain professional technical capabilities and is not suitable for use in scenarios where the operation and maintenance capabilities of the information center are weak. Summary of the invention
[0004] In order to solve the above technical problems, the purpose of the present invention is to provide a method for optimizing server log collection, and the technical solution adopted is as follows:
[0005] The server motherboard includes a CPLD controller, a baseboard management controller (BMC), a BMC log collection button, a type-C multiplexer, a USB multiplexer, a SouthBridge chip, a type-C interface, and a USB interface;
[0006] The BMC log collection button connects to the CPLD controller to control log collection;
[0007] The CPLD controller is connected to the type-C multiplexer, the CPLD controller is connected to the USB multiplexer, and the CPLD controller is connected to the baseboard management controller;
[0008] The baseboard management controller is connected to the type-C multiplexer, and the baseboard management controller is connected to the USB multiplexer;
[0009] The type-C multiplexer is connected to the south bridge chip, the type-C multiplexer is connected to the type-C interface, the USB multiplexer is connected to the south bridge chip, and the USB multiplexer is connected to the USB interface;
[0010] When the storage device is connected to the type-C interface or USB interface, press the BMC log collection button to determine the storage device connection status and export the server log to the storage device.
[0011] Preferably, the server motherboard includes a CPLD controller, a baseboard management controller (BMC), a BMC log collection button, a type-C multiplexer, a USB multiplexer, a south bridge chip (SouthBridge), a type-C interface, and a USB interface, including:
[0012] The server's original CPLD controller, baseboard management controller, USB multiplexer, SouthBridge chip (SouthBridge), and USB interface have been newly added with a BMC log collection button, type-C multiplexer, and type-C interface to expand the server's functions and enhance its log collection capabilities.
[0013] Preferably, the BMC log collection button is connected to the CPLD controller to control log collection, including:
[0014] When the BMC log collection button is pressed, the log collection signal is transmitted to the input pin of the CPLD controller, starting the server log program.
[0015] Preferably, the CPLD controller is connected to the type-C multiplexer, the CPLD controller is connected to the USB multiplexer, and the CPLD controller is connected to the baseboard management controller, including:
[0016] The CPLD controller is connected to the type-C multiplexer input pin, and the CPLD controller is connected to the USB multiplexer input pin;
[0017] The CPLD controller is connected to the baseboard management controller. When the CPLD controller receives the log collection signal transmitted by the BMC log collection button, it sends a log collection request instruction to the baseboard management controller. The baseboard management controller receives the log collection request instruction, and the baseboard management controller sends a received log collection request instruction to the CPLD controller.
[0018] Preferably, the baseboard management controller is connected to the type-C multiplexer, and the baseboard management controller is connected to the USB multiplexer, including:
[0019] The baseboard management controller is connected to the input pin of the type-C multiplexer, and the baseboard management controller is connected to the input pin of the USB multiplexer. After receiving the request log collection instruction, the baseboard management controller sends a test connection signal request to the type-C multiplexer and the USB multiplexer.
[0020] Preferably, the type-C multiplexer is connected to the south bridge chip, the type-C multiplexer is connected to the type-C interface, the USB multiplexer is connected to the south bridge chip, and the USB multiplexer is connected to the USB interface, including:
[0021] The type-C multiplexer is connected to the south bridge chip, and the USB multiplexer is connected to the south bridge chip;
[0022] The type-C multiplexer is connected to the type-C interface, and the USB multiplexer is connected to the USB interface. When the type-C multiplexer and the USB multiplexer receive a test connection signal request, the south bridge chip tests whether there is a storage device on the type-C interface through the type-C multiplexer, and the south bridge chip tests whether there is a storage device on the USB interface through the USB multiplexer, and transmits the test signal of whether there is a storage device back to the baseboard management controller through the type-C multiplexer and the USB multiplexer.
[0023] Preferably, when the storage device is connected to the type-C interface or the USB interface, the BMC log collection button is pressed to determine the connection status of the storage device, and the server log is exported to the storage device, including:
[0024] When the storage device is connected to the type-C interface or USB interface, press the BMC log collection button, the south bridge chip determines the access status of the storage device, generates a storage device signal, and the south bridge chip transmits the server log to the storage device through the type-C multiplexer and the type-C interface, or transmits the server log to the storage device through the USB multiplexer and the USB interface.
[0025] The embodiments of the present invention have at least the following beneficial effects:
[0026] The present invention relates to the field of information technology, and in particular to a method for optimizing server log collection. The method comprises a CPLD controller, a baseboard management controller (BMC), a BMC log collection button, a type-C multiplexer, a USB multiplexer, a south bridge chip (SouthBridge), a type-C interface, and a USB interface on a server; the BMC log collection button is connected to the CPLD controller to control log collection; the CPLD controller is connected to the type-C multiplexer, the CPLD controller is connected to the USB multiplexer, and the CPLD controller is connected to the baseboard management controller; the baseboard management controller is connected to the type-C multiplexer, and the baseboard management controller is connected to the USB multiplexer; the type-C multiplexer is connected to the south bridge chip, the type-C multiplexer is connected to the type-C interface, the USB multiplexer is connected to the south bridge chip, and the USB multiplexer is connected to the USB interface; when a storage device is connected to the type-C interface or the USB interface, the BMC log collection button is pressed to judge the connection status of the storage device, and the server log is exported to the storage device. The present invention adds some buttons and components on the server, and can quickly export server log information on the server site through the buttons provided by the server, thereby shortening the manual query time and simplifying the operation steps. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] In order to more clearly illustrate the technical solutions and advantages in the embodiments of the present invention or the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0028] Figure 1 A schematic diagram of a method for optimizing server log collection provided by an embodiment of the present invention;
[0029] Figure 2 A flow chart of a method for optimizing server log collection provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0030] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the following is a detailed description of the specific implementation method, structure, features and effects of an optimized server log collection method proposed by the present invention in combination with the accompanying drawings and preferred embodiments. In the following description, different "one embodiment" or "another embodiment" does not necessarily refer to the same embodiment. In addition, specific features, structures, or characteristics in one or more embodiments may be combined in any suitable form.
[0031] Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.
[0032] The embodiment of the present invention provides a method for optimizing server log collection, which is applicable to the scenario of rapid export of server data, and is particularly suitable for implementation by non-professionals in a relatively simple environment. The method includes a CPLD controller, a baseboard management controller (BMC), a BMC log collection button, a type-C multiplexer, a USB multiplexer, a south bridge chip (SouthBridge), a type-C interface, and a USB interface on the server; the BMC log collection button is connected to the CPLD controller to control log collection; the CPLD controller is connected to the type-C multiplexer, the CPLD controller is connected to the USB multiplexer, and the CPLD controller is connected to the baseboard management controller; the baseboard management controller is connected to the type-C multiplexer, and the baseboard management controller is connected to the USB multiplexer; the type-C multiplexer is connected to the south bridge chip, the type-C multiplexer is connected to the type-C interface, the USB multiplexer is connected to the south bridge chip, and the USB multiplexer is connected to the USB interface; when a storage device is connected to the type-C interface or the USB interface, the BMC log collection button is pressed to determine the connection status of the storage device, and the server log is exported to the storage device. The present invention adds some buttons and components on the server, and can quickly export server log information on the server site through the buttons provided by the server, thereby shortening the manual query time and simplifying the operation steps.
[0033] The following is a detailed description of a specific solution of a method for optimizing server log collection provided by the present invention in conjunction with the accompanying drawings.
[0034] See also Figure 1 , which shows a schematic diagram of the structure of a method for optimizing server log collection provided by an embodiment of the present invention, the method comprising the following steps:
[0035] Step 1: The server motherboard includes a CPLD controller, a baseboard management controller (BMC), a BMC log collection button, a type-C multiplexer, a USB multiplexer, a south bridge chip (SouthBridge), a type-C interface, and a USB interface; the BMC log collection button is connected to the CPLD controller to control log collection; the CPLD controller is connected to the type-C multiplexer, the CPLD controller is connected to the USB multiplexer, and the CPLD controller is connected to the baseboard management controller; the baseboard management controller is connected to the type-C multiplexer, and the baseboard management controller is connected to the USB multiplexer; the type-C multiplexer is connected to the south bridge chip, the type-C multiplexer is connected to the type-C interface, the USB multiplexer is connected to the south bridge chip, and the USB multiplexer is connected to the USB interface.
[0036] It should be noted that: when the storage device is connected to the type-C interface or USB interface, press the BMC log collection button to determine the storage device connection status and export the server log to the storage device.
[0037] It should be noted that: the BMC log collection button is connected to the CPLD controller. When the button is triggered, the CPLD controller starts the log collection operation. The CPLD controller is connected to the Type-C multiplexer and the USB multiplexer. The CPLD controller controls these two multiplexers and determines which devices can communicate with the server through the Type-C or USB interface. The baseboard management controller is connected to the Type-C multiplexer and the USB multiplexer. The BMC can communicate with external devices through these two multiplexers to update firmware or monitor status. The Type-C multiplexer is connected to the south bridge chip and the Type-C interface. The south bridge chip communicates with external Type-C devices through the Type-C multiplexer. At the same time, the Type-C multiplexer can also be directly connected to the Type-C interface. The USB multiplexer is connected to the south bridge chip and the USB interface. The south bridge chip communicates with external USB devices through the USB multiplexer. At the same time, the USB multiplexer can also be directly connected to the USB interface.
[0038] Step 2: The server motherboard includes a CPLD controller, a baseboard management controller (BMC), a BMC log collection button, a type-C multiplexer, a USB multiplexer, a south bridge chip (SouthBridge), a type-C interface, and a USB interface.
[0039] It should be noted that the original server configuration already has a CPLD controller, baseboard management controller, USB multiplexer, SouthBridge chip and USB interface. Now, in order to further expand the server's functions and enhance its log collection capabilities, a BMC log collection button, type-C multiplexer and type-C interface have been added.
[0040] The BMC log collection button allows administrators to easily trigger log collection operations, thereby better monitoring and managing the server's operating status. The addition of the type-C multiplexer and type-C interface enables the server to support more Type-C storage devices and provides a wider range of connectivity.
[0041] Step 3: The BMC log collection button connects to the CPLD controller to control log collection.
[0042] It should be noted that: when the BMC log collection button is pressed, the log collection signal is transmitted to the input pin of the CPLD controller, and the server log program is started.
[0043] For example, when the administrator presses the BMC log collection button, a log collection signal will be immediately sent to the input pin of the CPLD controller. This signal acts as a trigger to activate the pre-set server log program to start collecting key operation log data from various components and systems of the server. This data includes hardware status, system events, error reports, etc., which are important bases for comprehensive analysis and troubleshooting of the server operation status.
[0044] Step 4: Connect the CPLD controller to the type-C multiplexer, the CPLD controller to the USB multiplexer, and the CPLD controller to the baseboard management controller.
[0045] It should be noted that the CPLD controller is connected to the type-C multiplexer input pin, and the CPLD controller is connected to the USB multiplexer input pin.
[0046] The CPLD controller communicates with the Type-C multiplexer and the USB multiplexer by connecting input pins. These input pins serve as signal input interfaces and are responsible for receiving and processing signals from other components.
[0047] When the CPLD controller receives the log collection signal sent by the BMC log collection button, it passes the signal to the input pin of the Type-C multiplexer. The Type-C multiplexer performs corresponding operations based on the received signal, such as starting the log collection program of the Type-C interface.
[0048] Similarly, the CPLD controller also transmits the log collection signal to the input pin of the USB multiplexer. The USB multiplexer performs corresponding operations according to the received signal, such as starting the log collection program of the USB interface.
[0049] This connection method enables the CPLD controller to control and coordinate the operation of the Type-C multiplexer and the USB multiplexer to ensure the correct execution of the server log program. At the same time, in this way, the server can collect logs according to different interface types, improving the flexibility and efficiency of log collection.
[0050] The CPLD controller is connected to the baseboard management controller. When the CPLD controller receives the log collection signal transmitted by the BMC log collection button, it sends a log collection request instruction to the baseboard management controller. The baseboard management controller receives the log collection request instruction, and the baseboard management controller sends a received log collection request instruction to the CPLD controller.
[0051] Step 5: The baseboard management controller is connected to the type-C multiplexer, and the baseboard management controller is connected to the USB multiplexer.
[0052] It should be noted that: the baseboard management controller is connected to the type-C multiplexer input pin, and the baseboard management controller is connected to the USB multiplexer input pin. After receiving the request log collection instruction, the baseboard management controller sends a test connection signal request to the type-C multiplexer and the USB multiplexer.
[0053] The baseboard management controller communicates with the Type-C multiplexer and the USB multiplexer through the connection input pins. When the baseboard management controller receives the instruction to request log collection, it sends a test connection signal request to the Type-C multiplexer and the USB multiplexer.
[0054] This connection method enables the baseboard management controller to control and coordinate the operation of the Type-C multiplexer and the USB multiplexer to ensure the correct execution of the server logging program.
[0055] When the baseboard management controller sends a test connection signal request, the Type-C multiplexer and the USB multiplexer will perform corresponding operations based on the received signal. For example, the Type-C multiplexer may start the test connection program for the Type-C interface, while the USB multiplexer may start the test connection program for the USB interface. This mechanism of test connection signal request helps ensure that the server's log collection function works properly, and it can also test and verify different types of interfaces. Through this connection method, administrators can more easily monitor and manage the operating status of the server to ensure stable and efficient operation of the server.
[0056] Step 6. Connect the type-C multiplexer to the south bridge chip, connect the type-C multiplexer to the type-C interface, connect the USB multiplexer to the south bridge chip, and connect the USB multiplexer to the USB interface.
[0057] It should be noted that the type-C multiplexer is connected to the south bridge chip, and the USB multiplexer is connected to the south bridge chip. The type-C multiplexer is connected to the type-C interface, and the USB multiplexer is connected to the USB interface. When the type-C multiplexer and the USB multiplexer receive the test connection signal request, the south bridge chip tests whether there is a storage device on the type-C interface through the type-C multiplexer, and the south bridge chip tests whether there is a storage device on the USB interface through the USB multiplexer, and transmits the test signal of whether there is a storage device back to the baseboard management controller through the type-C multiplexer and the USB multiplexer.
[0058] Assume that two storage devices are connected to the Type-C interface and one USB interface on the server at the same time. When the baseboard management controller receives the instruction to request log collection, it sends a test connection signal request to the Type-C multiplexer and the USB multiplexer.
[0059] After receiving the signal, the Type-C multiplexer and the USB multiplexer will test whether there is a storage device on the Type-C interface and the USB interface through the south bridge chip. The south bridge chip will generate corresponding signals based on the test results and transmit them back to the baseboard management controller through the Type-C multiplexer and the USB multiplexer.
[0060] After receiving these signals, the baseboard management controller can determine that storage devices are connected to the Type-C interface and the USB interface respectively. At this time, the baseboard management controller can perform corresponding operations as needed, such as starting a log collection program, reading data on the storage device, etc.
[0061] In this way, the server can accurately determine which interfaces are connected to storage devices, improving the flexibility and scalability of the server.
[0062] Step 7, see Figure 2 A method flow chart of optimizing a server log collection method provided by an embodiment of the present invention, when a storage device is connected to a type-C interface or a USB interface, a BMC log collection button is pressed to determine the connection status of the storage device, and the server log is exported to the storage device.
[0063] It should be noted that: Assume that a storage device with a Type-C interface is connected to the server. When the administrator presses the BMC log collection button, the south bridge chip will determine that the storage device has been successfully connected and generate a "storage device available" signal.
[0064] Then, the south bridge chip will transfer the server's log data to the storage device through the Type-C multiplexer and the Type-C interface. In this process, the Type-C multiplexer will transfer the log data from the server to the storage device according to the instructions of the south bridge chip. Similarly, if a storage device with a USB interface is connected to the server, the south bridge chip will also transfer the server's log data to the storage device through the USB multiplexer and the USB interface.
[0065] In summary, the information technology field of the embodiment of the present invention specifically relates to a method for optimizing server log collection. The method includes a CPLD controller, a baseboard management controller (BMC), a BMC log collection button, a type-C multiplexer, a USB multiplexer, a south bridge chip (SouthBridge), a type-C interface, and a USB interface on the server; the BMC log collection button is connected to the CPLD controller to control log collection; the CPLD controller is connected to the type-C multiplexer, the CPLD controller is connected to the USB multiplexer, and the CPLD controller is connected to the baseboard management controller; the baseboard management controller is connected to the type-C multiplexer, and the baseboard management controller is connected to the USB multiplexer; the type-C multiplexer is connected to the south bridge chip, the type-C multiplexer is connected to the type-C interface, the USB multiplexer is connected to the south bridge chip, and the USB multiplexer is connected to the USB interface; when the storage device is connected to the type-C interface or the USB interface, the BMC log collection button is pressed to determine the connection status of the storage device, and the server log is exported to the storage device. The present invention adds some buttons and components on the server, and can quickly export server log information on the server site through the buttons provided by the server, thereby shortening the manual query time and simplifying the operation steps.
[0066] It should be noted that the sequence of the above embodiments of the present invention is for description only and does not represent the advantages and disadvantages of the embodiments. The above describes specific embodiments of this specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0067] The various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referenced to each other, and each embodiment focuses on the differences from other embodiments.
[0068] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for optimizing server log collection, characterized in that: The method comprises the following steps: The server motherboard includes a CPLD controller, a baseboard management controller (BMC), a BMC log collection button, a type-C multiplexer, a USB multiplexer, a SouthBridge chip, a type-C interface, and a USB interface; The BMC log collection button connects to the CPLD controller to control log collection; The CPLD controller is connected to the type-C multiplexer, the CPLD controller is connected to the USB multiplexer, and the CPLD controller is connected to the baseboard management controller; The baseboard management controller is connected to the type-C multiplexer, and the baseboard management controller is connected to the USB multiplexer; The type-C multiplexer is connected to the south bridge chip, the type-C multiplexer is connected to the type-C interface, the USB multiplexer is connected to the south bridge chip, and the USB multiplexer is connected to the USB interface; When the storage device is connected to the type-C interface or USB interface, press the BMC log collection button to determine the storage device connection status and export the server log to the storage device.
2. A method for optimizing server log collection according to claim 1, characterized in that: The server motherboard includes a CPLD controller, a baseboard management controller (BMC), a BMC log collection button, a type-C multiplexer, a USB multiplexer, a South Bridge chip (SouthBridge), a type-C interface, and a USB interface, including: The server's original CPLD controller, baseboard management controller, USB multiplexer, SouthBridge chip (SouthBridge), and USB interface have been newly added with a BMC log collection button, type-C multiplexer, and type-C interface to expand the server's functions and enhance its log collection capabilities.
3. The method for optimizing server log collection according to claim 1, characterized in that: The BMC log collection button is connected to the CPLD controller to control log collection, including: When the BMC log collection button is pressed, the log collection signal is transmitted to the input pin of the CPLD controller, starting the server log program.
4. The method for optimizing server log collection according to claim 1, characterized in that: The CPLD controller is connected to the type-C multiplexer, the CPLD controller is connected to the USB multiplexer, and the CPLD controller is connected to the baseboard management controller, including: The CPLD controller is connected to the type-C multiplexer input pin, and the CPLD controller is connected to the USB multiplexer input pin; The CPLD controller is connected to the baseboard management controller. When the CPLD controller receives the log collection signal transmitted by the BMC log collection button, it sends a log collection request instruction to the baseboard management controller. The baseboard management controller receives the log collection request instruction, and the baseboard management controller sends a received log collection request instruction to the CPLD controller.
5. The method for optimizing server log collection according to claim 1, characterized in that: The baseboard management controller is connected to the type-C multiplexer, and the baseboard management controller is connected to the USB multiplexer, including: The baseboard management controller is connected to the input pin of the type-C multiplexer, and the baseboard management controller is connected to the input pin of the USB multiplexer. After receiving the request log collection instruction, the baseboard management controller sends a test connection signal request to the type-C multiplexer and the USB multiplexer.
6. The method for optimizing server log collection according to claim 1, characterized in that: The type-C multiplexer is connected to the south bridge chip, the type-C multiplexer is connected to the type-C interface, the USB multiplexer is connected to the south bridge chip, and the USB multiplexer is connected to the USB interface, including: The type-C multiplexer is connected to the south bridge chip, and the USB multiplexer is connected to the south bridge chip; The type-C multiplexer is connected to the type-C interface, and the USB multiplexer is connected to the USB interface. When the type-C multiplexer and the USB multiplexer receive a test connection signal request, the south bridge chip tests whether there is a storage device on the type-C interface through the type-C multiplexer, and the south bridge chip tests whether there is a storage device on the USB interface through the USB multiplexer, and transmits the test signal of whether there is a storage device back to the baseboard management controller through the type-C multiplexer and the USB multiplexer.
7. The method for optimizing server log collection according to claim 1, characterized in that: When the storage device is connected to the type-C interface or the USB interface, the BMC log collection button is pressed to determine the storage device connection status, and the server log is exported to the storage device, including: When the storage device is connected to the type-C interface or USB interface, press the BMC log collection button, the south bridge chip determines the access status of the storage device, generates a storage device signal, and the south bridge chip transmits the server log to the storage device through the type-C multiplexer and the type-C interface, or transmits the server log to the storage device through the USB multiplexer and the USB interface.
