A method of out-of-band acquisition and recording server serial port logs that does not depend on sol

A server and log technology, which is applied in hardware monitoring and other directions, can solve problems such as dependence, inability to obtain log information, and inability to obtain log messages, and achieve the effect of avoiding log loss

Active Publication Date: 2018-06-05
LANGCHAO ELECTRONIC INFORMATION IND CO LTD
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

This method has several disadvantages to obtain serial port information: first, the SOL function needs to be enabled through the IPMI protocol, and the log information cannot be obtained if the SOL function is not enabled; second, it is too dependent on the network, that is, the SOL must be enabled only when the network is smooth Function, log messages cannot be obtained when the network is abnormal

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A method of out-of-band acquisition and recording server serial port logs that does not depend on sol
  • A method of out-of-band acquisition and recording server serial port logs that does not depend on sol

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0028] The method of the present invention is described in detail below with reference to the accompanying drawings.

[0029] In terms of hardware, the server must be equipped with a BMC monitoring and management chip, and the system serial port is connected to the BMC UART interface.

[0030] In terms of software, write the BMC FW code and start two processes for recording logs and switching various states respectively.

[0031] (1) First of all, it needs to be explained: the SOL function is also to obtain log information by reading the system serial port. If the present invention continues to read the system serial port when SOL is opened, the data in the system serial port device cache will be read once. Discarded, so two processes reading the device at the same time will inevitably cause the information obtained by each process to be incomplete. In order to solve this problem, we will detect the state of SOL. When SOL is turned on, the present invention will not directly ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The present invention provides a kind of method that does not depend on SOL out-of-band acquisition and record server serial port log, is to start the log record process, establishes BMC UART device file descriptor, is used for directly reading serial port to obtain log information; Establishes and opens for When SOL is opened, store the message queue of log information, place the message queue in the logic of SOL to obtain the system serial port log, and ensure that the system messages read by SOL can be stored in the queue in real time; detect the file descriptor allocated by the state switching process, because SOL is closed by default, so after the BMC is started, the serial port device descriptor is used as the default allocated file descriptor by default; read the allocated description in real time, and record the data to the specified file when there is data; check whether the file size has exceeded the threshold, The threshold can be set according to requirements. When the file size exceeds the threshold, log cycle storage preprocessing is performed to ensure that the file does not exceed the threshold and the latest news will not be lost.

Description

technical field [0001] The invention relates to the field of server monitoring and management, and is used for obtaining and recording log information output from a server to a system serial port outside the band, so as to facilitate fault analysis and positioning in the BIOS startup process or when a fault occurs under the system. Specifically, it is a method for obtaining and recording server serial port log out of band without relying on SOL. Background technique [0002] Server log information (including system startup log, server operation log, etc.) is a powerful tool for system fault analysis and location, and system operation log query, and server administrators pay more and more attention to obtaining server log information through out-of-band. [0003] At present, BMC is generally equipped with SOL (Serial On Lan) function. The remote host opens the SOL function through the IPMI protocol, and redirects the system serial port information to the remote host terminal ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Patents(China)
IPC IPC(8): G06F11/34
Inventor 王兴隆班华堂刘宝阳李道童
Owner LANGCHAO ELECTRONIC INFORMATION IND CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products