CN112015600A - Log information processing system, log information processing method and device and switch - Google Patents

Log information processing system, log information processing method and device and switch Download PDF

Info

Publication number
CN112015600A
CN112015600A CN201910451502.9A CN201910451502A CN112015600A CN 112015600 A CN112015600 A CN 112015600A CN 201910451502 A CN201910451502 A CN 201910451502A CN 112015600 A CN112015600 A CN 112015600A
Authority
CN
China
Prior art keywords
log
serial port
mirror image
image information
log file
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
CN201910451502.9A
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.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201910451502.9A priority Critical patent/CN112015600A/en
Priority to PCT/CN2020/091521 priority patent/WO2020238746A1/en
Publication of CN112015600A publication Critical patent/CN112015600A/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/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/16Error detection or correction of the data by redundancy in hardware
    • G06F11/20Error detection or correction of the data by redundancy in hardware using active fault-masking, e.g. by switching out faulty elements or by switching in spare elements
    • G06F11/2053Error detection or correction of the data by redundancy in hardware using active fault-masking, e.g. by switching out faulty elements or by switching in spare elements where persistent mass storage functionality or persistent mass storage control functionality is redundant
    • G06F11/2056Error detection or correction of the data by redundancy in hardware using active fault-masking, e.g. by switching out faulty elements or by switching in spare elements where persistent mass storage functionality or persistent mass storage control functionality is redundant by mirroring
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/04Generating or distributing clock signals or signals derived directly therefrom
    • G06F1/12Synchronisation of different clock signals provided by a plurality of clock generators
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/16Error detection or correction of the data by redundancy in hardware
    • G06F11/20Error detection or correction of the data by redundancy in hardware using active fault-masking, e.g. by switching out faulty elements or by switching in spare elements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/40Bus structure
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/40Bus structure
    • G06F13/4063Device-to-bus coupling
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F15/00Digital computers in general; Data processing equipment in general
    • G06F15/76Architectures of general purpose stored program computers
    • G06F15/78Architectures of general purpose stored program computers comprising a single central processing unit
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F15/00Digital computers in general; Data processing equipment in general
    • G06F15/76Architectures of general purpose stored program computers
    • G06F15/78Architectures of general purpose stored program computers comprising a single central processing unit
    • G06F15/7839Architectures of general purpose stored program computers comprising a single central processing unit with memory
    • G06F15/7842Architectures of general purpose stored program computers comprising a single central processing unit with memory on one IC chip (single chip microcontrollers)
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/069Management of faults, events, alarms or notifications using logs of notifications; Post-processing of notifications

Abstract

The application discloses a log information processing system, includes: the system comprises a programmable logic device, a management processor and a main processor; the main processor is used for sending serial port data of the main processor to the programmable logic device; the programmable logic device is used for mirroring the serial port data of the main processor to obtain serial port mirror image information; and the management processor is used for acquiring the serial port mirror image information of the main processor output by the programmable logic device and recording the serial port mirror image information into a log file. By adopting the method, the problem that the serial port log information of the main processor cannot be stored or the flexibility is lacked when the log information is stored in the prior art is solved.

Description

Log information processing system, log information processing method and device and switch
Technical Field
The application relates to the technical field of computers, in particular to a log information processing system, a log information processing method and a log information processing device, and a switch.
Background
The data center switch is a core component of the data center network, and the reliability and the availability of the data center switch determine whether the network is stable or not. The exchange chip processes the forwarding of the data flow of the whole exchanger, a Host CPU (main processor) of the exchanger controls and configures the exchange chip, the serial port output of the Host CPU is an important information source of the exchanger, and operation and maintenance personnel can check the historical printing information of the Host CPU and diagnose the faults and the abnormity of the exchanger through the information. Particularly, when the Host CPU is hung dead, the information before the CPU is hung dead can be obtained through the previous serial port printing, and the positioning of the reasons of faults or abnormal conditions is facilitated. Therefore, it is very important to store the complete serial log of the CPU.
In the prior art, some data center switch systems do not have a log saving function of a built-in Host CPU (main processor) serial port, and once the Host CPU is hung up, the problems of printout and occurrence of the Host CPU serial port before the Host CPU is hung up are difficult to find.
In addition, switches customized by some data centers support the storage of serial logs, but because only one processor of the system is responsible for both control and management, the serial logs are extracted and stored completely by means of programmable logic, and when log contents need to be checked or historical logs need to be backed up, log storage tasks need to be suspended, so that the integrity of the logs cannot be guaranteed; therefore, the log file cannot be checked at any time, and the flexibility is lacked.
In summary, the prior art has a problem that the serial port log information of the main processor cannot be saved or the flexibility is not available when the log information is saved.
Disclosure of Invention
The application provides a log information processing system, which aims to solve the problem that the prior art cannot store serial port log information of a main processor or lacks flexibility when the log information is stored.
The application provides a log information processing system, comprising: the system comprises a programmable logic device, a management processor and a main processor;
the main processor is used for sending serial port data of the main processor to the programmable logic device;
the programmable logic device is used for mirroring the serial port data of the main processor to obtain serial port mirror image information;
and the management processor is used for acquiring the serial port mirror image information of the main processor output by the programmable logic device and recording the serial port mirror image information into a log file.
Optionally, the management processor is specifically configured to:
starting a log process;
and recording the serial port mirror image information into the log file by utilizing the log process.
Optionally, the management processor is specifically configured to:
and saving the log file to a nonvolatile storage medium.
Optionally, the management processor is specifically configured to:
and transmitting the log file to a log server.
Optionally, the management processor is specifically configured to:
and transmitting the log file to a log server through an out-of-band management network.
Optionally, the management processor is specifically configured to:
and when the size of the log file reaches or exceeds a preset file size threshold value, transmitting the log file to a log server.
Optionally, the programmable logic device is further configured to:
and acquiring serial port data of the main processor.
Optionally, the programmable logic device is further configured to:
and transmitting the serial port mirror image information to a panel serial port of the switch.
Optionally, the programmable logic device is specifically configured to:
and transmitting the serial port mirror image information to a log record serial port of a management processor.
The application also provides a log information processing method, which comprises the following steps:
acquiring serial port mirror image information of a main processor output by a programmable logic device;
and recording the serial port mirror image information into a log file.
Optionally, the recording the serial port mirror image information into a log file includes:
starting a log process;
and recording the serial port mirror image information into the log file by utilizing the log process.
Optionally, the method further includes:
and saving the log file to a nonvolatile storage medium.
Optionally, the method further includes:
and transmitting the log file to a log server.
Optionally, the transmitting the log file to a log server includes:
and transmitting the log file to a log server through an out-of-band management network.
Optionally, the transmitting the log file to a log server includes:
and when the size of the log file reaches or exceeds a preset file size threshold value, transmitting the log file to a log server.
Optionally, the method further includes:
processing the serial port mirror image information to obtain log information conforming to a log file format;
the storing the serial port mirror image information to the log file includes:
and saving the log information conforming to the log file format to the log file.
Optionally, the saving the log information conforming to the format of the log file to the log file includes:
judging whether the log record grade of the log record in the log information conforming to the log file format is greater than or equal to a preset log record grade threshold value or not;
and if so, saving the log information conforming to the log file format to the log file.
The application also provides a log information processing method, which comprises the following steps:
acquiring serial port data of a main processor;
mirroring the serial port data of the main processor to obtain serial port mirror image information;
and transmitting the serial port mirror image information to a management processor.
Optionally, the method further includes:
and transmitting the serial port mirror image information to a panel serial port of the switch.
Optionally, the transmitting, by the programmable logic device of the switch, the serial port mirror image information to the management processor of the switch includes:
and transmitting the serial port mirror image information to a log record serial port of a management processor.
The present application also provides a log information processing apparatus, including:
the serial port mirror image information acquisition unit is used for acquiring serial port mirror image information of the main processor output by the programmable logic device;
and the serial port mirror image information recording unit is used for recording the serial port mirror image information into a log file.
The present application also provides a log information processing apparatus, including:
the serial port data acquisition unit of the main processor is used for acquiring the serial port data of the main processor;
a serial port mirror image information obtaining unit, configured to mirror the serial port data of the main processor to obtain serial port mirror image information;
and the serial port mirror image information transmission unit is used for transmitting the serial port mirror image information to the management processor.
Compared with the prior art, the method has the following advantages:
the application provides a log information processing system, which mirrors serial port data of a main processor through a programmable logic device to obtain serial port mirror image information; transmitting the serial port mirror image information to a management processor; the management processor stores the serial port mirror image information into a log file of the switch, so that the storage of the serial port data of the main processor is realized, and the diagnosis of the switch and the main processor by a data center network operation and maintenance personnel is facilitated.
Compared with the scheme of saving the serial port log which is realized by completely depending on the programmable logic, the first embodiment of the application has higher flexibility by saving the serial port log through the management processor, can check log files at any time, does not interrupt the saving of the log, and ensures the integrity of the log.
Drawings
Fig. 1 is a schematic diagram of an application scenario provided in the present application.
Fig. 2 is a schematic diagram of a log information processing system according to a first embodiment of the present application.
Fig. 3 is a flowchart of a log information processing method according to a second embodiment of the present application.
Fig. 4 is a flowchart of a log information processing method according to a third embodiment of the present application.
Fig. 5 is a schematic diagram of a log information processing apparatus according to a fourth embodiment of the present application.
Fig. 6 is a schematic diagram of a log information processing apparatus according to a fifth embodiment of the present application.
Detailed Description
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present invention. This invention may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein, but rather construed as limited to the embodiments set forth herein.
Before describing the embodiments, some technical terms used in the present application will be described.
The switch: a network device for electrical (optical) signal forwarding.
Bmc (baseboard Management controller): a management processor, a processor in the switch for managing power, temperature sensing and anomaly monitoring.
The Host CPU: and the main processor is used for configuring and controlling the network switching chip in the switch.
CPLD: a programmable logic device can realize customized logic according to system requirements.
Flash: a static storage device can be saved after power-off and used for storing an operating system and files in a switch.
In order to show the present application more clearly, the application scenarios provided by the embodiments of the present application are introduced first. Fig. 1 is a schematic diagram of an embodiment of an application scenario provided in the present application. The method comprises the following steps that a client 1-1 is connected with a switch 1-2 firstly, the client configures and controls the switch, the switch returns data to the client, and a main processor in the switch sends serial port data of the main processor to a programmable logic device; the programmable logic device acquires serial port data of a main processor, mirrors the serial port data of the main processor to acquire serial port mirror image information, and transmits the serial port mirror image information to the management processor; the management processor stores the serial port mirror image information into a log file and sends the log file to the log server 1-3.
A first embodiment of the present application provides a log information processing system, which is described below with reference to fig. 2.
As shown in fig. 1, the log information processing system includes: programmable logic device 2-1, main processor 2-2, management processor 2-3.
The programmable logic device 2-1 is configured to mirror the serial port data of the main processor to obtain serial port mirror image information, and transmit the serial port mirror image information to the management processor.
The programmable logic device is further configured to: and acquiring serial port data of the main processor.
The programmable logic device may include: a CPLD (Complex Programmable Logic Device), an FPGA (Field-Programmable Gate Array), etc., as shown in fig. 2, where the Programmable Logic Device is a CPLD.
The programmable logic device obtains serial data output by a serial port (for example, a universal asynchronous receiver and transmitter UART0 serial port in FIG. 2) of a main processor (Host CPU in FIG. 2); then, carrying out mirror image processing on the serial port data to obtain serial port mirror image information; and then the serial port mirror image information is transmitted to a management processor of the switch. The programmable logic device is specifically configured to: and transmitting the serial port mirror image information to a log record serial port of a management processor of the switch.
The programmable logic device is further configured to: and transmitting the serial port mirror image information to a panel serial port of the switch.
In specific implementation, because the serial port data of the main processor needs to be output to both the panel serial port and the log record serial port of the management processor of the switch (for example, UART1 in fig. 2 is a log record serial port), the CPLD first performs mirror image processing on the serial port data after obtaining the serial port data output by the serial port of the main processor to obtain serial port mirror image information; and then the serial port mirror image information is transmitted to the management processor through one path, and simultaneously the serial port mirror image information is transmitted to the panel serial port of the switch through the other path.
Because the serial port mirror image information is obtained by adopting the programmable logic device to carry out mirror image processing on the serial port data, the serial port data of the main processor is simultaneously output to the panel serial port and the log record serial port of the management processor, and a precondition is provided for the management processor to store the serial port log.
And the main processor 2-2 is used for sending the serial port data of the main processor to the programmable logic device.
And the management processor (for example, BMC in fig. 1) 2-3 is configured to receive serial port image information of the main processor output by the programmable logic device, and record the serial port image information in the log file.
The management processor is specifically configured to:
starting a log process;
and saving the serial port mirror image information to the log file by using the log process.
The management processor is specifically configured to:
and saving the log file to a nonvolatile storage medium.
The non-volatile storage medium includes at least one of the following media:
a non-volatile memory;
and (5) a Flash chip.
In specific implementation, a Log process (e.g., a Log saving process in fig. 2) may be run in the management processor, serial port image information is obtained through the Log process, a write interface of Flash is called, and the serial port image information is written into a Log file.
If all serial port mirror image information is written into a log file, the limitation of available storage equipment space may be caused after a period of time, so that some historical information is covered; in addition, if a single log file is too large, the speed of searching for specific information is affected, and the operation and maintenance personnel cannot quickly troubleshoot the problems. Therefore, the local log file can be timely transmitted to the weblog server according to the capacity of the nonvolatile storage medium and the size of the log file, and particularly, the log file can be transmitted to the log server through the out-of-band management network.
As an embodiment, two log files may be set in the non-volatile storage medium, and when the size of the log file being written is greater than or equal to a preset file size threshold, the log file is transmitted to the log server, and the serial port image information is saved in the other log file.
As an example, in order to improve the search speed of the log information in a specific time, a manner of reducing the capacity of each log file may be adopted. Specifically, more log files can be set according to the capacity of the nonvolatile storage medium, when the size of one log file is larger than or equal to a preset file size threshold, the serial port mirror image information log file is stored in another log file until the serial port mirror image information is stored in the last log file, and all the log files in which the serial port mirror image information is stored in the front are transmitted to the log server together. For example, 5 log files with the same size are set according to the capacity of the nonvolatile storage medium, and when serial port image information is saved to the 5 th log file, the remaining 4 log files can be transmitted to the log server together.
As an embodiment, before the step of recording the serial port image information to the log file, the method may further include the following steps: and processing the serial port mirror image information to obtain the log information conforming to the log file format. The recording the serial port mirror image information into the log file comprises: and saving the log information conforming to the log file format into the log file. Because the serial port mirror image information is a binary data stream, the serial port mirror image information can be processed firstly, converted into log information conforming to the format of a log file, and then the log information conforming to the format of the log file is stored in the log file.
In order to realize the diagnosis of the switch and the main processor by the operation and maintenance personnel, only the log records with the log record level greater than or equal to the preset log record level threshold value can be saved.
The saving the log information conforming to the log file format to the log file comprises:
judging whether the log record grade of the log record in the log information conforming to the log file format is greater than or equal to a preset log record grade threshold value or not;
and if so, saving the log information conforming to the log file format into the log file.
The logging level includes a severity level, an error level, a warning level, an information level, and a debugging level.
For example, if the preset logging level threshold is an alarm level, log records greater than or equal to the alarm level (including severity level, error level, alarm level) are saved to a log file.
Thus, the description of the first embodiment of the present application is completed. According to the first embodiment of the application, the mirror image output to the serial port of the main processor of the switch is realized through the programmable logic device, the mirror image is routed to the log recording serial port of the management processor, the log running process of the management processor continuously stores the serial port mirror image information to an external nonvolatile storage medium in a file mode, the complete storage of the serial port log of the main processor can be realized, and the diagnosis of the switch and the main processor by data center network operation and maintenance personnel is facilitated. In particular, these log files can restore details prior to the failure when a hang up of the host processor occurs or the system is restarted.
Compared with the scheme of saving the serial log which is realized by completely depending on the programmable logic, the first embodiment of the application has higher flexibility by using the management processor to save the serial log: (1) the log file can be checked at any time, and the log storage is not interrupted; (2) the management processor can upload the locally stored files to a log server on the network using an out-of-band management network without the limitation of local storage. In the scheme of using programmable logic to realize serial port log storage, when log content needs to be checked or historical logs need to be backed up, a log storage task needs to be suspended, and the integrity of the logs cannot be ensured.
A second embodiment of the present application provides a log information processing method, and an execution main body of the second embodiment of the present application is a programmable logic device of a switch. This is explained below with reference to fig. 3.
As shown in fig. 3, in step S301, serial port data of the main processor is acquired.
The step of acquiring the serial port data of the main processor refers to the step of acquiring the serial port data of the main processor of the switch by the programmable logic device of the switch.
As shown in fig. 2, the programmable logic device obtains serial data output by the serial port (universal asynchronous receiver and transmitter UART0 serial port) of the main processor (Host CPU of fig. 1).
As shown in fig. 3, in step S302, serial port data of the main processor is mirrored to obtain serial port mirror information.
As shown in fig. 3, in step S303, the serial port image information is transmitted to the management processor.
The management processor is used for managing power supply, temperature and abnormality monitoring in the switch
When the programmable logic device of the switch transmits the serial port mirror image information to the management processor of the switch, the programmable logic device of the switch can also transmit the serial port mirror image information to the panel serial port of the switch.
The step of transmitting the serial port mirror image information to a management processor comprises the following steps:
and transmitting the serial port mirror image information to a log record serial port of a management processor of the switch.
In specific implementation, because the serial port data of the main processor needs to be output to both the panel serial port and the log record serial port of the management processor of the switch (for example, UART1 in fig. 2 is a log record serial port), after the CPLD obtains the serial port data output by the serial port of the main processor, the CPLD first performs mirror image processing on the serial port data to obtain serial port mirror image information, and then transmits the serial port mirror image information to the management processor of the switch through one path, and simultaneously transmits the serial port mirror image information to the panel serial port of the switch through the other path.
Because the serial port mirror image information is obtained by adopting the programmable logic device to carry out mirror image processing on the serial port data, the serial port data of the main processor is simultaneously output to the panel serial port and the log recording serial port of the management processor of the switch, and the complete storage of the serial port data of the main processor is realized by combining with the log process built in the management processor.
A third embodiment of the present application provides a log information processing method, and an execution main body of the third embodiment of the present application is a management processor of a switch. This is explained below with reference to fig. 4.
As shown in fig. 4, in step S401, serial port mirror information of the main processor output by the programmable logic device is obtained.
The programmable logic device may include: a CPLD (Complex Programmable Logic Device), an FPGA (Field-Programmable Gate Array), etc., as shown in fig. 2, where the Programmable Logic Device is a CPLD.
In the second embodiment of the present application, the programmable logic device obtains serial data output by a serial port (for example, a universal asynchronous receiver and transmitter UART0 serial port in fig. 2) of a main processor (Host CPU in fig. 2); then, carrying out mirror image processing on the serial port data to obtain serial port mirror image information; and then the serial port mirror image information is transmitted to a management processor of the switch, and the management processor obtains the serial port mirror image information of a main processor output by a programmable logic device in the switch. As shown in fig. 2, the log process executed by the management processor may intercept serial mirror information of the main processor, which is input to the log recording serial port of the management processor by the programmable logic device in the switch.
As shown in fig. 4, in step S402, the serial port image information is recorded in the log file.
The recording the serial port mirror image information into the log file comprises:
starting a log process;
and recording the serial port mirror image information into the log file by utilizing the log process.
As an embodiment, the following steps may be further included:
and saving the log file to a nonvolatile storage medium.
The non-volatile storage medium includes at least one of the following media:
a non-volatile memory;
and (5) a Flash chip.
In specific implementation, a Log process (e.g., a Log saving process in fig. 2) may be run in the management processor, serial port image information is obtained through the Log process, a write interface of Flash is called, and the serial port image information is written into a Log file. As shown in fig. 2, the Log process (Log saving process) completely saves the serial port mirror image information to the external Flash.
If all serial port mirror image information is written into a log file, the limitation of available storage equipment space may be caused after a period of time, so that some historical information is covered; in addition, if a single log file is too large, the speed of searching for specific information is affected, and the operation and maintenance personnel cannot quickly troubleshoot the problems. Therefore, the local log file can be timely transmitted to the weblog server according to the capacity of the nonvolatile storage medium and the size of the log file, and particularly, the log file can be transmitted to the log server through the out-of-band management network.
As an embodiment, two log files may be set in the non-volatile storage medium, and when the size of the log file being written is greater than or equal to a preset file size threshold, the log file is transmitted to the log server, and at the same time, the serial port image information is saved in another log file.
As an example, in order to improve the search speed of the log information in a specific time, a manner of reducing the capacity of each log file may be adopted. Specifically, more log files can be set according to the capacity of the nonvolatile storage medium, when the size of one log file is larger than or equal to a preset file size threshold, the serial port mirror image information log file is stored in another log file until the serial port mirror image information is stored in the last log file, and all the log files in which the serial port mirror image information is stored in the front are transmitted to the log server together. For example, 5 log files with the same size are set according to the capacity of the nonvolatile storage medium, and when serial port image information is saved to the 5 th log file, the remaining 4 log files can be transmitted to the log server together.
As an embodiment, before the step of saving the serial port image information to the log file, the method may further include the following steps: and processing the serial port mirror image information to obtain the log information conforming to the log file format. The recording the serial port mirror image information into the log file comprises: and saving the log information conforming to the log file format into the log file. Because the serial port mirror image information is a binary data stream, the serial port mirror image information can be processed firstly, converted into log information conforming to the format of a log file, and then the log information conforming to the format of the log file is stored in the log file.
In order to realize the diagnosis of the switch and the main processor by the operation and maintenance personnel, only the log records with the log record level greater than or equal to the preset log record level threshold value can be saved.
The storing the log information conforming to the log file format into the log file includes:
judging whether the log record grade of the log record in the log information conforming to the log file format is greater than or equal to a preset log record grade threshold value or not;
and if so, saving the log information conforming to the log file format to the log file.
The logging level includes a severity level, an error level, a warning level, an information level, and a debugging level.
For example, if the preset logging level threshold is an alarm level, log records greater than or equal to the alarm level (including severity level, error level, alarm level) are saved to a log file.
Thus, the description of the third embodiment of the present application is completed. The management processor receives serial port mirror image information of a main processor output by a programmable logic device in the switch, and the running log process continuously stores the serial port mirror image information to an external nonvolatile storage medium in a file form, so that complete storage of the serial port of the main processor can be realized, and diagnosis of the switch and the main processor by a data center network operation and maintenance system and operation and maintenance personnel is facilitated. In particular, these log files can restore details prior to the failure when a hang up of the host processor occurs or the system is restarted.
Compared with the scheme of saving the serial log which is realized by completely depending on the programmable logic, the third embodiment of the application has higher flexibility by using the management processor to save the serial log: (1) the log file can be checked at any time, and the log storage is not interrupted, (2) the management processor can use an out-of-band management network to upload the locally stored file to a log server on the network, and the limitation of local storage is avoided. In the scheme of using programmable logic to realize serial port log storage, when log content needs to be checked or historical logs need to be backed up, a log storage task needs to be suspended, and the integrity of the logs cannot be ensured.
Corresponding to the log information processing method provided in the second embodiment of the present application, a fourth embodiment of the present application also provides a log information processing apparatus.
As shown in fig. 5, the log information processing apparatus includes:
a serial data acquiring unit 501 of the main processor, configured to acquire serial data of the main processor;
a serial port mirror image information obtaining unit 502, configured to mirror the serial port data of the main processor to obtain serial port mirror image information;
a serial mirror image information transmitting unit 503, configured to transmit the serial mirror image information to the management processor.
Optionally, the apparatus further comprises:
and the serial port mirror image information transmission unit is used for transmitting the serial port mirror image information to the panel serial port of the switch.
Optionally, the serial port mirror image information transmission unit is specifically configured to:
and transmitting the serial port mirror image information to a log record serial port of a management processor.
It should be noted that, for the detailed description of the log information processing apparatus provided in the fourth embodiment of the present application, reference may be made to the related description of the second embodiment of the present application, and details are not repeated here.
Corresponding to the log information processing method provided in the third embodiment of the present application, a fifth embodiment of the present application also provides a log information processing apparatus.
As shown in fig. 6, the log information processing apparatus includes:
a serial port mirror image information obtaining unit 601, configured to obtain serial port mirror image information of the main processor output by the programmable logic device;
a serial port mirror image information recording unit 602, configured to record the serial port mirror image information into a log file.
Optionally, the serial port mirror image information recording unit is specifically configured to:
starting a log process;
and recording the serial port mirror image information into the log file by utilizing the log process.
Optionally, the apparatus further comprises:
and the log file saving unit is used for saving the log file into a nonvolatile storage medium.
Optionally, the apparatus further comprises:
and the log file transmission unit is used for transmitting the log file to a log server.
Optionally, the log file transmission unit is specifically configured to:
and transmitting the log file to a log server through an out-of-band management network.
Optionally, the log file transmission unit is specifically configured to:
and when the size of the log file reaches or exceeds a preset file size threshold value, transmitting the log file to a log server.
Optionally, the apparatus further comprises:
the log information obtaining unit is used for processing the serial port mirror image information to obtain log information conforming to a log file format;
the serial port mirror image information recording unit is specifically used for:
and saving the log information conforming to the log file format into the log file.
Optionally, the serial port mirror image information recording unit is specifically configured to:
judging whether the log record grade of the log record in the log information conforming to the log file format is greater than or equal to a preset log record grade threshold value or not;
and if so, saving the log information conforming to the log file format into the log file.
It should be noted that, for the detailed description of the log information processing apparatus provided in the fifth embodiment of the present application, reference may be made to the related description of the third embodiment of the present application, and details are not repeated here.
A sixth embodiment of the present application provides a switch, including: the system comprises a switching chip, a programmable logic device, a management processor and a main processor;
the switch chip is used for processing the forwarding of the data flow of the switch;
the main processor is used for sending serial port data of the main processor to the programmable logic device;
the programmable logic device is used for mirroring the serial port data of the main processor to obtain serial port mirror image information;
and the management processor is used for acquiring the serial port mirror image information of the main processor output by the programmable logic device and recording the serial port mirror image information into a log file.
The switch system architecture provided in the sixth embodiment of the present application uses three planes of separation to improve the reliability and availability of the system, that is, the data plane, the control plane and the management plane are separated, and the three planes do not affect each other. The exchange chip processes the forwarding of the data flow of the whole exchanger, the Host CPU controls and configures the exchange chip, and a BMC (Baseboard Management Controller, a processor used for managing a power supply, a temperature sensor and monitoring abnormity in the exchanger) is introduced for managing the system power supply and the fan and monitoring abnormity.
The switch provided by the sixth embodiment performs mirroring on the serial port data by using the programmable logic device to obtain serial port mirror image information, so that the serial port data of the main processor is simultaneously output to the panel serial port and the log recording serial port of the management processor of the switch, and the complete storage of the serial port data of the main processor is realized by combining with the log process built in the management processor.
Although the present application has been described with reference to the preferred embodiments, it is not intended to limit the present application, and those skilled in the art can make variations and modifications without departing from the spirit and scope of the present application, therefore, the scope of the present application should be determined by the claims that follow.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include non-transitory computer readable media (transient media), such as modulated data signals and carrier waves.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.

Claims (23)

1. A log information processing system, comprising: the system comprises a programmable logic device, a management processor and a main processor;
the main processor is used for sending serial port data of the main processor to the programmable logic device;
the programmable logic device is used for mirroring the serial port data of the main processor to obtain serial port mirror image information;
and the management processor is used for acquiring the serial port mirror image information of the main processor output by the programmable logic device and recording the serial port mirror image information into a log file.
2. The log information processing system of claim 1, wherein the management processor is specifically configured to:
starting a log process;
and recording the serial port mirror image information into the log file by utilizing the log process.
3. The log information processing system of claim 1, wherein the management processor is specifically configured to:
and saving the log file to a nonvolatile storage medium.
4. The log information processing system of claim 1, wherein the management processor is specifically configured to:
and transmitting the log file to a log server.
5. The log information processing system of claim 4, wherein the management processor is specifically configured to:
and transmitting the log file to a log server through an out-of-band management network.
6. The log information processing system of claim 4, wherein the management processor is specifically configured to:
and when the size of the log file reaches or exceeds a preset file size threshold value, transmitting the log file to a log server.
7. The log information processing system of claim 1, wherein the programmable logic device is further configured to:
and acquiring serial port data of the main processor.
8. The log information processing system of claim 1, wherein the programmable logic device is further configured to:
and transmitting the serial port mirror image information to a panel serial port of the switch.
9. The log information processing system of claim 1, wherein the programmable logic device is specifically configured to:
and transmitting the serial port mirror image information to a log record serial port of a management processor.
10. A log information processing method, comprising:
acquiring serial port mirror image information of a main processor output by a programmable logic device;
and recording the serial port mirror image information into a log file.
11. The method for processing the log information according to claim 10, wherein the recording the serial port mirror image information into a log file comprises:
starting a log process;
and recording the serial port mirror image information into the log file by utilizing the log process.
12. The log information processing method according to claim 10, further comprising:
and saving the log file to a nonvolatile storage medium.
13. The log information processing method according to claim 10, further comprising:
and transmitting the log file to a log server.
14. The log information processing method of claim 13, wherein the transmitting the log file to a log server comprises:
and transmitting the log file to a log server through an out-of-band management network.
15. The log information processing method of claim 13, wherein the transmitting the log file to a log server comprises:
and when the size of the log file reaches or exceeds a preset file size threshold value, transmitting the log file to a log server.
16. The log information processing method according to claim 10, further comprising:
processing the serial port mirror image information to obtain log information conforming to a log file format;
the recording the serial port mirror image information into the log file comprises:
and saving the log information conforming to the log file format into the log file.
17. The method of claim 16, wherein the saving the log information conforming to the log file format into the log file comprises:
judging whether the log record grade of the log record in the log information conforming to the log file format is greater than or equal to a preset log record grade threshold value or not;
and if so, saving the log information conforming to the log file format into the log file.
18. A log information processing method, comprising:
acquiring serial port data of a main processor;
mirroring the serial port data of the main processor to obtain serial port mirror image information;
and transmitting the serial port mirror image information to a management processor.
19. The log information processing method of claim 18, further comprising:
and transmitting the serial port mirror image information to a panel serial port of the switch.
20. The method for processing log information according to claim 18, wherein the transmitting the serial port mirror information to a management processor comprises:
and transmitting the serial port mirror image information to a log record serial port of a management processor.
21. A log information processing apparatus characterized by comprising:
the serial port mirror image information acquisition unit is used for acquiring serial port mirror image information of the main processor output by the programmable logic device;
and the serial port mirror image information recording unit is used for recording the serial port mirror image information into a log file.
22. A log information processing apparatus characterized by comprising:
the serial port data acquisition unit of the main processor is used for acquiring the serial port data of the main processor;
a serial port mirror image information obtaining unit, configured to mirror the serial port data of the main processor to obtain serial port mirror image information;
and the serial port mirror image information transmission unit is used for transmitting the serial port mirror image information to the management processor.
23. A switch, comprising: the system comprises a switching chip, a programmable logic device, a management processor and a main processor;
the switch chip is used for processing the forwarding of the data flow of the switch;
the main processor is used for sending serial port data of the main processor to the programmable logic device;
the programmable logic device is used for mirroring the serial port data of the main processor to obtain serial port mirror image information;
and the management processor is used for acquiring the serial port mirror image information of the main processor output by the programmable logic device and recording the serial port mirror image information into a log file.
CN201910451502.9A 2019-05-28 2019-05-28 Log information processing system, log information processing method and device and switch Pending CN112015600A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201910451502.9A CN112015600A (en) 2019-05-28 2019-05-28 Log information processing system, log information processing method and device and switch
PCT/CN2020/091521 WO2020238746A1 (en) 2019-05-28 2020-05-21 Log information processing system, log information processing method and apparatus, and switch

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910451502.9A CN112015600A (en) 2019-05-28 2019-05-28 Log information processing system, log information processing method and device and switch

Publications (1)

Publication Number Publication Date
CN112015600A true CN112015600A (en) 2020-12-01

Family

ID=73500720

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910451502.9A Pending CN112015600A (en) 2019-05-28 2019-05-28 Log information processing system, log information processing method and device and switch

Country Status (2)

Country Link
CN (1) CN112015600A (en)
WO (1) WO2020238746A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023082531A1 (en) * 2021-11-12 2023-05-19 苏州浪潮智能科技有限公司 Avs adjustment system, method and apparatus, and device and storage mdium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101197775A (en) * 2007-11-19 2008-06-11 福建星网锐捷网络有限公司 Method, device and system for implementing port mirror-image
CN104268068A (en) * 2014-09-24 2015-01-07 浪潮电子信息产业股份有限公司 Server log information acquisition method
CN104572421A (en) * 2015-02-03 2015-04-29 浪潮电子信息产业股份有限公司 Method for out-of-band obtaining and recording of server serial interface log independent of SOL
WO2015131549A1 (en) * 2014-09-24 2015-09-11 中兴通讯股份有限公司 Method and device for collecting operating system fault information, and computer
CN106301845A (en) * 2015-05-30 2017-01-04 四川泰瑞创通讯技术股份有限公司 Switch logger module
US20190018746A1 (en) * 2017-07-11 2019-01-17 Stratus Technologies Bermuda Ltd. Method for Dirty-Page Tracking and Full Memory Mirroring Redundancy in a Fault-Tolerant Server

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1855840A (en) * 2005-04-26 2006-11-01 华为技术有限公司 Method for network management device to obtain log data from network element
US8099571B1 (en) * 2008-08-06 2012-01-17 Netapp, Inc. Logical block replication with deduplication
CN104678842B (en) * 2015-01-22 2017-09-22 深圳市新格林耐特通信技术有限公司 Extend the system and method for broadcom exchange chip purposes
CN104794033A (en) * 2015-04-29 2015-07-22 浪潮电子信息产业股份有限公司 CPU low-frequency fault positioning method and device based on BMC
CN205320102U (en) * 2016-01-13 2016-06-15 浪潮集团有限公司 Switch based on godson treater

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101197775A (en) * 2007-11-19 2008-06-11 福建星网锐捷网络有限公司 Method, device and system for implementing port mirror-image
CN104268068A (en) * 2014-09-24 2015-01-07 浪潮电子信息产业股份有限公司 Server log information acquisition method
WO2015131549A1 (en) * 2014-09-24 2015-09-11 中兴通讯股份有限公司 Method and device for collecting operating system fault information, and computer
CN104572421A (en) * 2015-02-03 2015-04-29 浪潮电子信息产业股份有限公司 Method for out-of-band obtaining and recording of server serial interface log independent of SOL
CN106301845A (en) * 2015-05-30 2017-01-04 四川泰瑞创通讯技术股份有限公司 Switch logger module
US20190018746A1 (en) * 2017-07-11 2019-01-17 Stratus Technologies Bermuda Ltd. Method for Dirty-Page Tracking and Full Memory Mirroring Redundancy in a Fault-Tolerant Server

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023082531A1 (en) * 2021-11-12 2023-05-19 苏州浪潮智能科技有限公司 Avs adjustment system, method and apparatus, and device and storage mdium

Also Published As

Publication number Publication date
WO2020238746A1 (en) 2020-12-03

Similar Documents

Publication Publication Date Title
US8824261B1 (en) Peer to peer vibration mitigation
US8875154B2 (en) Interface specific and parallel IPMI message handling at baseboard management controller
US7917664B2 (en) Storage apparatus, storage apparatus control method, and recording medium of storage apparatus control program
US20170139605A1 (en) Control device and control method
CN105183575A (en) Processor fault diagnosis method, device and system
CN104320308A (en) Method and device for detecting anomalies of server
US11868625B2 (en) Alert tracking in storage
US9575855B2 (en) Storage apparatus and failure location identifying method
US8099634B2 (en) Autonomic component service state management for a multiple function component
CN107145304B (en) Server, storage system and related method
CN110704228B (en) Solid state disk exception handling method and system
CN104239174A (en) BMC (baseboard management controller) remote debugging system and method
US8732531B2 (en) Information processing apparatus, method of controlling information processing apparatus, and control program
CN112015600A (en) Log information processing system, log information processing method and device and switch
US20170052521A1 (en) Programmable controller and arithmetic processing system
US11561852B2 (en) BMC, server system, device stability determination method, and non-transitory computer-readable recording medium
CN115599617A (en) Bus detection method and device, server and electronic equipment
US11733689B2 (en) Control system, programmable logic controller, and information processing method
CN101741600A (en) Server system, recording equipment and management method thereof
CN114443545B (en) Interface expansion method, device, management system and related equipment
CN104050074A (en) Method and device for asynchronously recording log in system
WO2024016864A1 (en) Processor, information acquisition method, single board and network device
US20200073751A1 (en) Storage apparatus and recording medium
CN116126635A (en) Data processing method and related device
CN115878441A (en) High-availability computing service method, system and equipment based on consistency cache

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