CN116204383A - BMC-based serial port information monitoring method, system, terminal and storage medium - Google Patents

BMC-based serial port information monitoring method, system, terminal and storage medium Download PDF

Info

Publication number
CN116204383A
CN116204383A CN202310228513.7A CN202310228513A CN116204383A CN 116204383 A CN116204383 A CN 116204383A CN 202310228513 A CN202310228513 A CN 202310228513A CN 116204383 A CN116204383 A CN 116204383A
Authority
CN
China
Prior art keywords
serial port
bmc
bios
baud rate
data
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.)
Pending
Application number
CN202310228513.7A
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 CN202310228513.7A priority Critical patent/CN116204383A/en
Publication of CN116204383A publication Critical patent/CN116204383A/en
Pending 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
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/3041Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is an input/output interface
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3466Performance evaluation by tracing or monitoring
    • G06F11/3476Data logging
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4411Configuring for operating with peripheral devices; Loading of device drivers
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The invention relates to the technical field of servers, and particularly provides a serial port information monitoring method, a system, a terminal and a storage medium based on BMC, wherein the method comprises the following steps: the serial port redirection is carried out on the BIOS layer by utilizing an SOL mechanism, so that the BIOS layer sends self-checking data to the BMC through the serial port; the method comprises the steps that the serial port baud rate is configured for an operating system kernel configuration file, and serial port support service is started, so that the operating system sends self-checking data to the BMC through a serial port; setting a log storage address of the BMC so that the BMC stores data received through the serial port under the log storage address. The invention can realize complete record of the server state log, realize traceability of server operation, simplify and high-efficiency acquisition of traceable data, greatly improve the maintenance efficiency of the server and reduce the maintenance cost of the server.

Description

BMC-based serial port information monitoring method, system, terminal and storage medium
Technical Field
The invention belongs to the technical field of servers, and particularly relates to a serial port information monitoring method, system, terminal and storage medium based on BMC.
Background
With the high-speed development of the information creation server, after-sales maintenance personnel, user operation maintenance personnel and other technical posts frequently touch the host machine to stop and go down, and then check that error information is not recorded in logs like a raid card, an OS and a bmc, and especially, common users and common after-sales engineers are difficult to find out where a fault problem comes out and how to maintain the server. When such problems are encountered, research and development engineers usually require after-sales service personnel to use a CPU serial port tool to wait for the server to reappear the fault collection serial port log for re-diagnosis, the server needs to be restarted under the condition, a serial port line is connected to a notebook, the notebook uses a terminal tool to continuously monitor until the server reappears the fault, and the monitoring log is grabbed for further diagnosis, so that the system has very large 2 defects as follows:
if a plurality of servers have similar problems, a plurality of serial port cables are needed, and a plurality of notebook terminals are correspondingly needed, and in the fact that the notebook terminals are not allowed to be placed in a regular machine room for a long time by users, the research and development personnel hope to collect logs for further diagnosis, and the user machine room does not bring the notebook into the machine room for a long time due to a security mechanism.
The analysis of failure has long periods of time, causing significant trouble to server vendor engineers and end users.
Disclosure of Invention
Aiming at the defects in the prior art, the invention provides a serial port information monitoring method, a system, a terminal and a storage medium based on BMC, so as to solve the technical problems.
In a first aspect, the present invention provides a serial port information monitoring method based on BMC, including:
the serial port redirection is carried out on the BIOS layer by utilizing an SOL mechanism, so that the BIOS layer sends self-checking data to the BMC through the serial port;
the method comprises the steps that the serial port baud rate is configured for an operating system kernel configuration file, and serial port support service is started, so that the operating system sends self-checking data to the BMC through a serial port;
setting a log storage address of the BMC so that the BMC stores data received through the serial port under the log storage address.
Further, the serial port redirection is performed on the BIOS layer by using the SOL mechanism, so that the BIOS layer sends the self-checking data to the BMC through the serial port, including:
starting SOL configuration options at BIOS layers of a plurality of servers;
and distributing serial port redirection instructions to all servers in batches through the IPMI command, so that the BIOS layers of the servers all send self-checking data to the BMC through the serial ports.
Further, the method for configuring the serial port baud rate for the kernel configuration file of the operating system and starting the serial port support service to enable the operating system to send the self-checking data to the BMC through the serial port comprises the following steps:
the method comprises the steps of calling a kernel configuration file of an operating system and obtaining modification permission of the kernel configuration file;
starting a kernel item in a default state in a kernel configuration file to set a baud rate and a log grade;
and starting a serial port support service of the operating system.
Further, the default state in the kernel configuration file starts the kernel item to set the baud rate and the log level, including:
setting the baud rate to be consistent with the output baud rate of the service system;
and improving the serial port log level to 7 levels.
Further, setting a log storage address of the BMC, so that the BMC stores data received through the serial port to the log storage address, including:
the SOL baud rate of the BMC is set to be consistent with the output baud rate of the service system;
designating a special signal channel from a plurality of signal channels of the BMC connected with the host node, wherein the special signal channel is used for receiving serial data;
the dedicated signal path is activated using IPMI tools.
Further, setting a log storage address of the BMC, so that the BMC stores data received through the serial port to the log storage address, including:
the BMC encapsulates the received serial port data into a compressed file, and saves the compressed file under a log storage address after time stamping;
the BMC maintains a startup time list of the host node based on the time stamp of the compressed file, and saves the time stamp of the latest BIOS layer self-checking data as the current startup time to the startup time list;
after the BMC monitors that the host node is down, all compressed files with time stamps from the current starting time to the current moment are sent to the remote terminal through the wireless communication module.
In a second aspect, the present invention provides a serial port information monitoring system based on BMC, including:
the first configuration unit is used for redirecting the serial port of the BIOS layer by utilizing the SOL mechanism so that the BIOS layer sends the self-checking data to the BMC through the serial port;
the second configuration unit is used for configuring the serial port baud rate for the kernel configuration file of the operating system and starting serial port support service, so that the operating system sends the self-checking data to the BMC through the serial port;
and the third configuration unit is used for setting a log storage address of the BMC so that the BMC can store the data received through the serial port under the log storage address.
Further, the first configuration unit includes:
the option starting module is used for starting SOL configuration options at the BIOS layers of the servers;
and the batch setting module is used for distributing serial port redirection instructions to all servers in batches through the IPMI command so that the BIOS layers of the servers can all send the self-checking data to the BMC through the serial ports.
Further, the second configuration unit specifically performs:
the method comprises the steps of calling a kernel configuration file of an operating system and obtaining modification permission of the kernel configuration file;
starting a kernel item in a default state in a kernel configuration file to set a baud rate and a log grade;
and starting a serial port support service of the operating system.
Further, the default state in the kernel configuration file starts the kernel item to set the baud rate and the log level, including:
setting the baud rate to be consistent with the output baud rate of the service system;
and improving the serial port log level to 7 levels.
Further, the third configuration unit specifically performs:
the SOL baud rate of the BMC is set to be consistent with the output baud rate of the service system;
designating a special signal channel from a plurality of signal channels of the BMC connected with the host node, wherein the special signal channel is used for receiving serial data;
the dedicated signal path is activated using IPMI tools.
Further, the third configuration unit specifically performs:
the BMC encapsulates the received serial port data into a compressed file, and saves the compressed file under a log storage address after time stamping;
the BMC maintains a startup time list of the host node based on the time stamp of the compressed file, and saves the time stamp of the latest BIOS layer self-checking data as the current startup time to the startup time list;
after the BMC monitors that the host node is down, all compressed files with time stamps from the current starting time to the current moment are sent to the remote terminal through the wireless communication module.
In a third aspect, a terminal is provided, including:
a processor, a memory, wherein,
the memory is used for storing a computer program,
the processor is configured to call and run the computer program from the memory, so that the terminal performs the method of the terminal as described above.
In a fourth aspect, there is provided a computer storage medium having instructions stored therein which, when run on a computer, cause the computer to perform the method of the above aspects.
The serial port information monitoring method, system, terminal and storage medium based on the BMC have the advantages that the existing BIOS firmware is utilized to turn on a BIOS enabling switch, an operating system turns on serial port redirection, an open source BMC is configured, serial port logs are stored in storage of the BMC, a BMC processing storage data mechanism is developed, and automatic acquisition of serial port logs is completed. The invention can realize complete record of the server state log, realize traceability of server operation, simplify and high-efficiency acquisition of traceable data, greatly improve the maintenance efficiency of the server and reduce the maintenance cost of the server.
In addition, the invention has reliable design principle, simple structure and very wide application prospect.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are required to be used in the description of the embodiments or the prior art will be briefly described below, and it will be obvious to those skilled in the art that other drawings can be obtained from these drawings without inventive effort.
FIG. 1 is a schematic flow chart of a method of one embodiment of the invention.
FIG. 2 is a schematic block diagram of a system of one embodiment of the present invention.
Fig. 3 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
Detailed Description
In order to make the technical solution of the present invention better understood by those skilled in the art, the technical solution of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
The following explains key terms appearing in the present invention.
BMC, execution server remote management controller, english name Baseboard Management controller. The method can perform firmware upgrade, check machine equipment and other operations on the machine in a state that the machine is not started. Fully implementing IPMI functionality in a BMC requires a powerful 16-bit or 32-bit microcontroller and RAM for data storage, flash memory for non-volatile data storage, and firmware to provide basic remote manageability in terms of secure remote reboot, secure re-power-up, LAN alerting, and system health monitoring. In addition to the basic IPMI and system operation monitoring functions, the mBMC can also enable BIOS flash element selection and protection by storing the previous BIOS using one of the 2 flash memories. For example, when the system fails to boot after a remote BIOS upgrade, the remote administrator may switch back to the previously-working BIOS image to boot the system. Once BIOS is upgraded, the BIOS image can be locked, so as to effectively prevent virus from invading it.
BIOS is an acronym of English "Basic Input Output System", and the Chinese name is "basic input output System" after being translated. On IBM PC compatible systems, is a industry standard firmware interface. The computer is a set of programs solidified on a ROM chip on a main board in the computer, which stores the most important programs of basic input and output, self-checking programs after starting up and system self-starting programs, and can read and write specific information of system settings from CMOS. Its main function is to provide the lowest, most direct hardware setup and control for the computer. In addition, the BIOS provides some system parameters to the operating system. The system hardware changes are hidden by the BIOS and the program uses the BIOS functions rather than directly controlling the hardware. Modern operating systems ignore the abstraction layer provided by the BIOS and directly control the hardware components.
A CPU central processing unit (central processing unit, abbreviated as CPU) is used as an operation and control core of the computer system, and is a final execution unit for information processing and program running.
SOL (Serial Over LAN) refers to one mechanism for redirecting serial I/O in a system through an IP-based IPMI session. To assist users in accessing applications on these computers through serial ports, serial port I/O requires redirection of the network.
IPMI (Intelligent platform management interface), abbreviation for Intelligent Platform Management Interface. An industry standard is adopted for peripheral devices of an enterprise system of an Intel architecture. IPMI is also an open free standard that users can use without paying additional fees. IPMI can span different operating systems, firmware and hardware platforms, and can intelligently monitor, control and automatically report back the operation status of a large number of servers so as to reduce the cost of the server system. IPMI provides an intelligent management approach for a large number of monitoring, control and auto-reply server jobs. This standard applies to different server topologies, as well as Windows, linux, solaris, mac or hybrid operating systems. In addition, since the IPMI may operate under different attribute values, the IPMI may still operate normally even if the server itself is not operating properly or cannot provide services for any reason. The core of IPMI is a dedicated chip/controller (called a server processor or Baseboard Management Controller (BMC)) that does not rely on the server's processor, BIOS or operating system to operate, but rather is a proxy-free management subsystem that operates solely within the system, so long as there is both BMC and IPMI firmware that can start to operate, and BMC is typically a separate board card that is installed on the server motherboard, as well as the server motherboard that provides support for IPMI. The good autonomy of IPMI overcomes the limitations of the conventional os-based management methods, such as the operation system still being able to perform operations such as power on/off, information extraction, etc. without responding or loading. In operation, all IPMI functions are completed by sending commands to the BMC, which uses instructions specified in the IPMI specification, and the BMC receives and records event messages in the system event log, maintaining a record of sensor data describing the sensor conditions in the system. The Serial Over LAN (SOL) feature of IPMI new is useful when remote access to the system is required. The SOL changes the local serial port transfer direction during the IPMI session to provide remote access to emergency management services, windows specific management consoles, or Linux serial consoles. The BMC does this by redirecting information sent to the serial port over the LAN, providing a vendor independent, standard way to remotely view the boot, operating system loader, or emergency management console to diagnose and repair failures. The Serial Over LAN (SOL) function would be very useful when remote access to the system text console is required. SOL redirects local serial interfaces through IPMI sessions, allowing remote access to Windows emergency management console (EMS) special management console (SAC), or to LINUX serial consoles. The step in this process is for the IPMI firmware to intercept the data and then resend the information directed to the serial port over the LAN. This provides a standard way to remotely view the BOOT, OS loader, or emergency management console to diagnose and fix server related problems, regardless of vendor. It allows the configuration of various components during the boot phase.
The concept of serial communication (Serial Communications) is very simple, with serial ports transmitting and receiving bytes in bits (bits). Although slower than byte-wise parallel communication, a serial port may receive data using one line while data is being transmitted using another line. It is simple and enables long-range communication. For example, when IEEE488 defines a parallel traffic state, the total length of equipment lines is regulated to be not more than 20 meters, and the length between any two equipment is regulated to be not more than 2 meters; for serial ports, the length can be up to 1200 meters. Typically, serial ports are used for the transmission of ASCII code characters. Communication is accomplished using 3 wires, ground, send, receive, respectively. Because serial communication is asynchronous, a port is able to send data on one line while receiving data on another line. The other lines are used for handshaking, but are not required. The most important parameters for serial communication are baud rate, data bits, stop bits and parity. For two ports to communicate, these parameters must match.
Baud rate, a parameter that measures the symbol transmission rate. Refers to the change in unit time after the signal is modulated, i.e. the number of carrier parameter changes per unit time, for example, 240 characters are transmitted per second, and each character format includes 10 bits (1 start bit, 1 stop bit, 8 data bits), where the baud rate is 240Bd and the bit rate is 10 bits by 240 bits/second=2400 bps. Typically the modulation rate is greater than the baud rate, such as manchester encoding). Typically the baud rate of telephone lines is 14400, 28800 and 36600. The baud rate may be much greater than these values, but the baud rate is inversely proportional to the distance. High baud rates are often used for communication between closely located instruments, typically GPIB devices.
FIG. 1 is a schematic flow chart of a method of one embodiment of the invention. The execution body of fig. 1 may be a serial port information monitoring system based on a BMC.
As shown in fig. 1, the method includes:
step 110, performing serial port redirection on the BIOS layer by using the SOL mechanism, so that the BIOS layer sends the self-checking data to the BMC through the serial port;
step 120, configuring the serial port baud rate for the kernel configuration file of the operating system and starting the serial port support service, so that the operating system sends the self-checking data to the BMC through the serial port;
and 130, setting a log storage address of the BMC so that the BMC can store the data received through the serial port under the log storage address.
The method avoids the inconvenience brought by the traditional physical serial port by realizing the monitoring of the monitoring CPU serial port. And starting a BIOS enabling switch by utilizing the existing BIOS firmware, redirecting an operating system starting serial port, configuring an open source BMC, storing a serial port log into the storage of the BMC, developing a BMC processing storage data mechanism, and completing automatic acquisition of the serial port log.
In order to facilitate understanding of the present invention, the following further describes the serial port information monitoring method based on the BMC according to the principles of the serial port information monitoring method based on the BMC according to the present invention, in combination with a process of monitoring serial port information based on the BMC in the embodiment.
Specifically, the serial port information monitoring method based on the BMC comprises the following steps:
s1, performing serial port redirection on the BIOS layer by utilizing an SOL mechanism so that the BIOS layer sends self-checking data to the BMC through the serial port.
Starting SOL configuration options at BIOS layers of a plurality of servers; and distributing serial port redirection instructions to all servers in batches through the IPMI command, so that the BIOS layers of the servers all send self-checking data to the BMC through the serial ports.
Specifically, the SOL configuration option is opened at the BIOS layer. Instructions may be distributed to all hosts in a batch via IPMI commands, typically with a restart to take effect after distribution. The BIOS enters a self-checking program during the server startup phase: after the motherboard is powered on, the system first checks the internal devices by a (Power On Self Test, power-on self-test) program. When the start key (POWER switch) is pressed, the control right of the system is completed by the BIOS, and the mainboard control chipset sends and maintains a RESET signal to the CPU to initialize the CPU and wait for a POWER GOOD signal (POWER ready signal) sent by the POWER supply because the voltage is not stable. When the power supply starts to supply power stably, the chip set removes the RESET signal, the CPU immediately starts to execute instructions from the address FFFF0H, the address is in the address range of the system BIOS, whether the address is the Award BIOS or the AMI BIOS, and the CPU is only provided with a jump instruction to jump to the real starting code in the system BIOS. The first thing that the system BIOS's boot code needs to do is to perform POST (Power On Self Test, power-on self test), and since many hardware devices (including memory, interrupt, expansion card) of the computer are needed, it is necessary to detect whether the working states of these devices are normal. The previous process of detecting a graphics card is called critical component testing, and if a critical component is problematic, the computer will be in a suspended state, conventionally called a core failure. Another type of fault is called a non-critical fault, and after detecting the graphics card, the computer will detect more than 64KB of memory, I/O ports, hard and soft disk drives, keyboards, plug and play devices, CMOS settings, etc., and display various information and error reports on the screen.
By redirecting the serial port of the BIOS layer, the BIOS layer sends various information and error reports acquired in the self-checking process to the BMC in the form of serial port log.
S2, configuring the serial port baud rate for the kernel configuration file of the operating system and starting serial port support service, so that the operating system sends self-checking data to the BMC through the serial port.
The method comprises the steps of calling a kernel configuration file of an operating system and obtaining modification permission of the kernel configuration file; starting a kernel item to set the baud rate and the log level (improving the serial port log level to 7 levels) in a default state in the kernel configuration file; and starting a serial port support service of the operating system. The baud rate is set to be consistent with the output baud rate of the service system.
Specifically, modification/etc/EFI/EFI/kilin/grub. Cfg (kernel configuration file) under the system, adding a con= 115200n8 loglevel =7 at the default start kernel, i.e. setting the baud rate to 115200n8, and the log rating to 7. Setting the baud rate to 115200n8 can effectively avoid the disorder of serial port transmission data, and improving the log grade can enable the system to send the system self-checking data as high-grade logs to the BMC through the serial port based on the processing mechanism of logs of different grades.
In addition, serial port support service of the operating system needs to be started:
systemctl unmask serial-getty@ttyS0.service
systemctl enable serial-getty@ttyS0.service
s3, setting a log storage address of the BMC so that the BMC can store the data received through the serial port under the log storage address.
The SOL baud rate of the BMC is set to be consistent with the output baud rate of the service system; designating a special signal channel from a plurality of signal channels of the BMC connected with the host node, wherein the special signal channel is used for receiving serial data; the dedicated signal path is activated using IPMI tools.
Specifically, the BMC sets the SOL baud rate 115200,sol set volatile-bit-rate115.2.1 instruction, and the dedicated signal channel is required to be designated as 1. Signal path 1 is activated ipmitool sol activate so that the BMC can receive the host outgoing serial function normally. And storing the received serial port log into a BMC storage space. If the machine is abnormal, back-end engineers (such as CPU, OS and complete machine manufacturer research and development) are provided for analysis.
In a preferred embodiment of the present invention, the BMC further performs the following processing on the received serial log:
the BMC encapsulates the received serial port data into a compressed file, and saves the compressed file under a log storage address after time stamping; the BMC maintains a startup time list of the host node based on the time stamp of the compressed file, and saves the time stamp of the latest BIOS layer self-checking data as the current startup time to the startup time list; after the BMC monitors that the host node is down, all compressed files with time stamps from the current starting time to the current moment are sent to the remote terminal through the wireless communication module.
The BMC monitors the on-off state of each node, and once a certain node is abnormally shut down, all data of the current operation of the node are sent to the remote terminal. The embodiment can realize screening and remote transmission of log data, can directly transmit valuable data to engineers, and does not need personnel to go to a server in the field to collect the data.
As shown in fig. 2, the system 200 includes:
the first configuration unit 210 is configured to perform serial port redirection on the BIOS layer by using the SOL mechanism, so that the BIOS layer sends the self-checking data to the BMC through the serial port;
the second configuration unit 220 is configured to configure the serial port baud rate for the kernel configuration file of the operating system and start the serial port support service, so that the operating system sends the self-checking data to the BMC through the serial port;
the third configuration unit 230 is configured to set a log storage address of the BMC, so that the BMC stores the data received through the serial port to the log storage address.
Optionally, as an embodiment of the present invention, the first configuration unit includes:
the option starting module is used for starting SOL configuration options at the BIOS layers of the servers;
and the batch setting module is used for distributing serial port redirection instructions to all servers in batches through the IPMI command so that the BIOS layers of the servers can all send the self-checking data to the BMC through the serial ports.
Alternatively, as an embodiment of the present invention, the second configuration unit specifically performs:
the method comprises the steps of calling a kernel configuration file of an operating system and obtaining modification permission of the kernel configuration file;
starting a kernel item in a default state in a kernel configuration file to set a baud rate and a log grade;
and starting a serial port support service of the operating system.
Optionally, as an embodiment of the present invention, the default state in the kernel configuration file starts the kernel item to set the baud rate and the log level, including:
setting the baud rate to be consistent with the output baud rate of the service system;
and improving the serial port log level to 7 levels.
Optionally, as an embodiment of the present invention, the third configuration unit specifically performs:
the SOL baud rate of the BMC is set to be consistent with the output baud rate of the service system;
designating a special signal channel from a plurality of signal channels of the BMC connected with the host node, wherein the special signal channel is used for receiving serial data;
the dedicated signal path is activated using IPMI tools.
Optionally, as an embodiment of the present invention, the third configuration unit specifically performs:
the BMC encapsulates the received serial port data into a compressed file, and saves the compressed file under a log storage address after time stamping;
the BMC maintains a startup time list of the host node based on the time stamp of the compressed file, and saves the time stamp of the latest BIOS layer self-checking data as the current startup time to the startup time list;
after the BMC monitors that the host node is down, all compressed files with time stamps from the current starting time to the current moment are sent to the remote terminal through the wireless communication module.
Fig. 3 is a schematic structural diagram of a terminal 300 according to an embodiment of the present invention, where the terminal 300 may be used to execute the serial port information monitoring method based on BMC according to the embodiment of the present invention.
The terminal 300 may include: a processor 310, a memory 320 and a communication unit 330. The components may communicate via one or more buses, and it will be appreciated by those skilled in the art that the configuration of the server as shown in the drawings is not limiting of the invention, as it may be a bus-like structure, a star-like structure, or include more or fewer components than shown, or may be a combination of certain components or a different arrangement of components.
The memory 320 may be used to store instructions for execution by the processor 310, and the memory 320 may be implemented by any type of volatile or non-volatile memory terminal or combination thereof, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk, or optical disk. The execution of the instructions in memory 320, when executed by processor 310, enables terminal 300 to perform some or all of the steps in the method embodiments described below.
The processor 310 is a control center of the storage terminal, connects various parts of the entire electronic terminal using various interfaces and lines, and performs various functions of the electronic terminal and/or processes data by running or executing software programs and/or modules stored in the memory 320, and invoking data stored in the memory. The processor may be comprised of an integrated circuit (Integrated Circuit, simply referred to as an IC), for example, a single packaged IC, or may be comprised of a plurality of packaged ICs connected to the same function or different functions. For example, the processor 310 may include only a central processing unit (Central Processing Unit, simply CPU). In the embodiment of the invention, the CPU can be a single operation core or can comprise multiple operation cores.
And a communication unit 330 for establishing a communication channel so that the storage terminal can communicate with other terminals. Receiving user data sent by other terminals or sending the user data to other terminals.
The present invention also provides a computer storage medium in which a program may be stored, which program may include some or all of the steps in the embodiments provided by the present invention when executed. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), a random-access memory (random access memory, RAM), or the like.
Therefore, the invention utilizes the existing BIOS firmware to turn on the BIOS enabling switch, the operating system turns on the serial port for redirection, configures the open source BMC, saves the serial port log into the memory of the BMC, develops the BMC processing memory data mechanism, and completes the automatic acquisition of the serial port log. The invention can realize complete record of the server state log, realize traceability of the operation of the server, simplify and high-efficiency acquisition of the traceability data, greatly improve the maintenance efficiency of the server, reduce the maintenance cost of the server, and the technical effects achieved by the embodiment can be seen from the description above and are not repeated here.
It will be apparent to those skilled in the art that the techniques of embodiments of the present invention may be implemented in software plus a necessary general purpose hardware platform. Based on such understanding, the technical solution in the embodiments of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium such as a U-disc, a mobile hard disc, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk or an optical disk, etc. various media capable of storing program codes, including several instructions for causing a computer terminal (which may be a personal computer, a server, or a second terminal, a network terminal, etc.) to execute all or part of the steps of the method described in the embodiments of the present invention.
The same or similar parts between the various embodiments in this specification are referred to each other. In particular, for the terminal embodiment, since it is substantially similar to the method embodiment, the description is relatively simple, and reference should be made to the description in the method embodiment for relevant points.
In the several embodiments provided by the present invention, it should be understood that the disclosed systems and methods may be implemented in other ways. For example, the system embodiments described above are merely illustrative, e.g., the division of the elements is merely a logical functional division, and there may be additional divisions when actually implemented, e.g., multiple elements or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some interface, system or unit indirect coupling or communication connection, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit.
Although the present invention has been described in detail by way of preferred embodiments with reference to the accompanying drawings, the present invention is not limited thereto. Various equivalent modifications and substitutions may be made in the embodiments of the present invention by those skilled in the art without departing from the spirit and scope of the present invention, and it is intended that all such modifications and substitutions be within the scope of the present invention/be within the scope of the present invention as defined by the appended claims. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. The serial port information monitoring method based on the BMC is characterized by comprising the following steps of:
the serial port redirection is carried out on the BIOS layer by utilizing an SOL mechanism, so that the BIOS layer sends self-checking data to the BMC through the serial port;
the method comprises the steps that the serial port baud rate is configured for an operating system kernel configuration file, and serial port support service is started, so that the operating system sends self-checking data to the BMC through a serial port;
setting a log storage address of the BMC so that the BMC stores data received through the serial port under the log storage address.
2. The method of claim 1, wherein using the SOL mechanism to serial redirect the BIOS layer such that the BIOS layer sends the self-test data to the BMC via the serial port comprises:
starting SOL configuration options at BIOS layers of a plurality of servers;
and distributing serial port redirection instructions to all servers in batches through the IPMI command, so that the BIOS layers of the servers all send self-checking data to the BMC through the serial ports.
3. The method of claim 1, wherein the operating system sends the self-test data to the BMC via the serial port by configuring the serial port baud rate to the operating system kernel configuration file and starting the serial port support service, comprising:
the method comprises the steps of calling a kernel configuration file of an operating system and obtaining modification permission of the kernel configuration file;
starting a kernel item in a default state in a kernel configuration file to set a baud rate and a log grade;
and starting a serial port support service of the operating system.
4. A method according to claim 3, wherein the default state in the kernel configuration file initiates the kernel item to set the baud rate and log level, comprising:
setting the baud rate to be consistent with the output baud rate of the service system;
and improving the serial port log level to 7 levels.
5. The method of claim 4, wherein setting the log storage address of the BMC to cause the BMC to save data received through the serial port to the log storage address comprises:
the SOL baud rate of the BMC is set to be consistent with the output baud rate of the service system;
designating a special signal channel from a plurality of signal channels of the BMC connected with the host node, wherein the special signal channel is used for receiving serial data;
the dedicated signal path is activated using IPMI tools.
6. The method of claim 1, wherein setting the log storage address of the BMC to cause the BMC to save data received through the serial port to the log storage address comprises:
the BMC encapsulates the received serial port data into a compressed file, and saves the compressed file under a log storage address after time stamping;
the BMC maintains a startup time list of the host node based on the time stamp of the compressed file, and saves the time stamp of the latest BIOS layer self-checking data as the current startup time to the startup time list;
after the BMC monitors that the host node is down, all compressed files with time stamps from the current starting time to the current moment are sent to the remote terminal through the wireless communication module.
7. A serial port information monitoring system based on BMC, comprising:
the first configuration unit is used for redirecting the serial port of the BIOS layer by utilizing the SOL mechanism so that the BIOS layer sends the self-checking data to the BMC through the serial port;
the second configuration unit is used for configuring the serial port baud rate for the kernel configuration file of the operating system and starting serial port support service, so that the operating system sends the self-checking data to the BMC through the serial port;
and the third configuration unit is used for setting a log storage address of the BMC so that the BMC can store the data received through the serial port under the log storage address.
8. The system of claim 7, wherein the first configuration unit comprises:
the option starting module is used for starting SOL configuration options at the BIOS layers of the servers;
and the batch setting module is used for distributing serial port redirection instructions to all servers in batches through the IPMI command so that the BIOS layers of the servers can all send the self-checking data to the BMC through the serial ports.
9. A terminal, comprising:
a processor;
a memory for storing execution instructions of the processor;
wherein the processor is configured to perform the method of any of claims 1-6.
10. A computer readable storage medium storing a computer program, which when executed by a processor implements the method of any one of claims 1-6.
CN202310228513.7A 2023-03-10 2023-03-10 BMC-based serial port information monitoring method, system, terminal and storage medium Pending CN116204383A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310228513.7A CN116204383A (en) 2023-03-10 2023-03-10 BMC-based serial port information monitoring method, system, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310228513.7A CN116204383A (en) 2023-03-10 2023-03-10 BMC-based serial port information monitoring method, system, terminal and storage medium

Publications (1)

Publication Number Publication Date
CN116204383A true CN116204383A (en) 2023-06-02

Family

ID=86517177

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310228513.7A Pending CN116204383A (en) 2023-03-10 2023-03-10 BMC-based serial port information monitoring method, system, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN116204383A (en)

Similar Documents

Publication Publication Date Title
US6189109B1 (en) Method of remote access and control of environmental conditions
US10606725B2 (en) Monitor peripheral device based on imported data
US6145098A (en) System for displaying system status
US5504905A (en) Apparatus for communicating a change in system configuration in an information handling network
US7069349B2 (en) IPMI dual-domain controller
US6330690B1 (en) Method of resetting a server
US20150106660A1 (en) Controller access to host memory
US20070016827A1 (en) Systems and methods for providing remotely accessible in-system emulation and/or debugging
US6892248B2 (en) Method and apparatus for configuring a port on a legacy-free device for general I/O purposes or debugging purposes
CN114116378B (en) Method, system, terminal and storage medium for acquiring PCIe (peripheral component interconnect express) equipment temperature
US10922150B2 (en) Deep hardware access and policy engine
CN113626276B (en) Method, system, terminal and storage medium for identifying type of server HBA card
CN110769051B (en) Embedded server remote management system and method based on domestic processor
CN114003445B (en) BMC I2C monitoring function test method, system, terminal and storage medium
CN111352662A (en) Server starting sequence control method, system, terminal and storage medium
CN116112412A (en) Virtual network card binding redundancy function test method, system, device and medium
CN116204383A (en) BMC-based serial port information monitoring method, system, terminal and storage medium
CN114253573A (en) PCIe device firmware batch upgrading method, system, terminal and storage medium
US20080127229A1 (en) Multiple interface standard support for redundant array of independent disks
CN117075936A (en) Board card FRU back brushing method, system, terminal and storage medium
CN113419884B (en) Method, device, terminal and storage medium for preventing BMC image file from being damaged
CN113835762B (en) Method and system for updating default configuration of hard disk backboard
CN114253375B (en) Server heat dissipation mode control method, system, terminal and storage medium
CN215300646U (en) Bypass control device
CN116483613B (en) Processing method and device of fault memory bank, electronic equipment and storage medium

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