WO2020238746A1 - 日志信息处理系统、日志信息处理方法及装置和交换机 - Google Patents
日志信息处理系统、日志信息处理方法及装置和交换机 Download PDFInfo
- Publication number
- WO2020238746A1 WO2020238746A1 PCT/CN2020/091521 CN2020091521W WO2020238746A1 WO 2020238746 A1 WO2020238746 A1 WO 2020238746A1 CN 2020091521 W CN2020091521 W CN 2020091521W WO 2020238746 A1 WO2020238746 A1 WO 2020238746A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- log
- serial port
- information
- log file
- port mirroring
- Prior art date
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/16—Error detection or correction of the data by redundancy in hardware
- G06F11/20—Error 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/2053—Error 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/2056—Error 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
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/04—Generating or distributing clock signals or signals derived directly therefrom
- G06F1/12—Synchronisation of different clock signals provided by a plurality of clock generators
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/16—Error detection or correction of the data by redundancy in hardware
- G06F11/20—Error 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
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
- G06F13/40—Bus structure
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
- G06F13/40—Bus structure
- G06F13/4063—Device-to-bus coupling
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F15/00—Digital computers in general; Data processing equipment in general
- G06F15/76—Architectures of general purpose stored program computers
- G06F15/78—Architectures of general purpose stored program computers comprising a single central processing unit
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F15/00—Digital computers in general; Data processing equipment in general
- G06F15/76—Architectures of general purpose stored program computers
- G06F15/78—Architectures of general purpose stored program computers comprising a single central processing unit
- G06F15/7839—Architectures of general purpose stored program computers comprising a single central processing unit with memory
- G06F15/7842—Architectures of general purpose stored program computers comprising a single central processing unit with memory on one IC chip (single chip microcontrollers)
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/069—Management of faults, events, alarms or notifications using logs of notifications; Post-processing of notifications
Definitions
- This application relates to the field of computer technology, in particular to a log information processing system, this application also relates to a log information processing method and a log information processing device, and this application also relates to a switch.
- the data center switch is the core component of the data center network. Its reliability and availability determine whether the network is stable.
- the switching chip handles the forwarding of the data traffic of the entire switch.
- the Host CPU (main processor) of the switch controls and configures the switching chip.
- the serial port output of the Host CPU is an important source of information for the switch. Operation and maintenance personnel can use this information to view Host CPU historical printing information and diagnosis of switch failures and abnormalities. In particular, when the Host CPU hangs up, you can use the previous serial port printing to obtain the information before the CPU hangs up to help locate the cause of the fault or abnormality. Therefore, it is very important to keep a complete CPU serial log.
- the prior art has the problem that the serial port log information of the main processor cannot be saved or the log information lacks flexibility.
- This application provides a log information processing system to solve the problem that the serial port log information of the main processor cannot be saved or the lack of flexibility in saving the log information existing in the prior art.
- This application provides a log information processing system, including: a programmable logic device, a management processor, and a main processor;
- the main processor is configured to send serial port data of the main processor to the programmable logic device;
- the programmable logic device is used to mirror the serial port data of the main processor to obtain serial port mirroring information
- the management processor is configured to obtain the serial port mirroring information of the main processor output by the programmable logic device, and record the serial port mirroring information in a log file.
- the management processor is specifically configured to:
- the management processor is specifically configured to:
- the log file is saved in a non-volatile storage medium.
- the management processor is specifically configured to:
- the management processor is specifically configured to:
- the log file is transmitted to the log server through the out-of-band management network.
- the management processor is specifically configured to:
- the log file When the size of the log file reaches or exceeds a preset file size threshold, the log file is transmitted to the log server.
- the programmable logic device is also used for:
- the programmable logic device is also used for:
- the serial port mirroring information is transmitted to the panel serial port of the switch.
- the programmable logic device is specifically used for:
- the serial port mirroring information is transmitted to the logging serial port of the management processor.
- This application also provides a log information processing method, including:
- the recording the serial port mirroring information in a log file includes:
- Optional also includes:
- the log file is saved in a non-volatile storage medium.
- Optional also includes:
- the transferring the log file to the log server includes:
- the log file is transmitted to the log server through the out-of-band management network.
- the transferring the log file to the log server includes:
- the log file When the size of the log file reaches or exceeds a preset file size threshold, the log file is transmitted to the log server.
- Optional also includes:
- serial port mirroring information to obtain log information conforming to the log file format
- the saving the serial port mirroring information to the log file includes:
- the saving the log information conforming to the log file format to the log file includes:
- This application also provides a log information processing method, including:
- the serial port mirroring information is transmitted to the management processor.
- Optional also includes:
- the serial port mirroring information is transmitted to the panel serial port of the switch.
- the programmable logic device of the switch transmitting the serial port mirroring information to the management processor of the switch includes:
- the serial port mirroring information is transmitted to the logging serial port of the management processor.
- This application also provides a log information processing device, including:
- the serial port mirroring information obtaining unit is used to obtain the serial port mirroring information of the main processor output by the programmable logic device;
- the serial port mirroring information recording unit is used to record the serial port mirroring information in a log file.
- This application also provides a log information processing device, including:
- the serial port data acquisition unit of the main processor is used to obtain the serial data of the main processor
- the serial port mirroring information obtaining unit is used to mirror the serial port data of the main processor to obtain serial port mirroring information
- the serial port mirroring information transmission unit is used to transmit the serial port mirroring information to the management processor.
- This application provides a log information processing system, which mirrors the serial port data of the main processor through a programmable logic device to obtain serial port mirroring information; transmits the serial port mirroring information to the management processor; the management processor mirrors the serial port information
- the log file saved to the switch realizes the preservation of the serial port data of the main processor, which is convenient for the data center network operation and maintenance personnel to diagnose the switch and the main processor.
- saving the serial port log through the management processor has higher flexibility, and the log file can be viewed at any time without interrupting the log saving. Ensure the integrity of the log.
- Figure 1 is a schematic diagram of an application scenario provided by this application.
- FIG. 2 is a schematic diagram of a log information processing system provided by the first embodiment of the present application.
- FIG. 3 is a flowchart of a log information processing method provided by the second embodiment of the present application.
- FIG. 5 is a schematic diagram of a log information processing device provided by a fourth embodiment of the present application.
- Fig. 6 is a schematic diagram of a log information processing device provided by a fifth embodiment of the present application.
- Switch A network device used for forwarding electrical (optical) signals.
- BMC Baseboard Management Controller: Management processor, a processor used in the switch to manage power, temperature and abnormality monitoring.
- Host CPU the main processor, used in the switch to configure and control the network switching chip.
- CPLD A programmable logic device that can implement custom logic according to system requirements.
- Flash A static storage device that can be saved after power-off and used for storage of operating systems and files in the switch.
- FIG. 1 it is a schematic diagram of an embodiment of an application scenario provided by this application.
- the client 1-1 first establishes a connection with the switch 1-2, the client configures and controls the switch, the switch returns data to the client, and the main processor in the switch sends the serial data of the main processor to the programmable logic device;
- the programmable logic device obtains the serial port data of the main processor, mirrors the serial port data of the main processor, obtains the serial port mirroring information, and transmits the serial port mirroring information to the management processor;
- the management processor saves the serial port mirroring information to the log file, And send the log file to the log server 1-3.
- the first embodiment of the present application provides a log information processing system, which is described below with reference to FIG. 2.
- the log information processing system includes: a programmable logic device 2-1, a main processor 2-2, and a management processor 2-3.
- the programmable logic device 2-1 is configured to mirror the serial port data of the main processor, obtain serial port mirroring information, and transmit the serial port mirroring information to the management processor.
- the programmable logic device is also used to obtain serial port data of the main processor.
- Programmable logic devices may include: CPLD (Complex Programmable Logic Device), FPGA (Field-Programmable Gate Array, that is, field programmable gate array), etc., as shown in Figure 2, the programmable logic device is CPLD.
- the programmable logic device obtains the serial port data output by the serial port of the host processor (Host CPU in Figure 2) (for example, the universal asynchronous receiver and transmitter UART0 serial port in Figure 2); then mirrors the serial data to obtain the serial port mirroring Information; and then transmit the serial port mirroring information to the management processor of the switch.
- the programmable logic device is specifically used to: transmit the serial port mirroring information to the log recording serial port of the management processor of the switch.
- the programmable logic device is also used to: transmit the serial port mirroring information to the panel serial port of the switch.
- the CPLD is obtaining the main processing After the serial port data output by the serial port of the device, the serial port data is first mirrored to obtain the serial port mirroring information; then the serial port mirroring information is transmitted to the management processor through one path, and the serial port mirroring information is transmitted to the switch panel through another path. Serial port.
- the serial port data of the main processor can be output to the panel serial port and the log recording serial port of the management processor at the same time, and the serial log is saved for the management processor Prerequisites are provided.
- the main processor 2-2 is configured to send serial port data of the main processor to the programmable logic device.
- the management processor (for example, the BMC in FIG. 1) 2-3 is configured to receive the serial port mirroring information of the main processor output by the programmable logic device, and record the serial port mirroring information in the log file in.
- the management processor is specifically configured to:
- the management processor is specifically configured to:
- the log file is saved in a non-volatile storage medium.
- the non-volatile storage medium includes at least one of the following media:
- Non-volatile memory
- a log process (for example, the Log save process in Figure 2) can be run in the management processor, the serial port mirroring information is obtained through the log process, the write interface of Flash is called, and the serial port mirroring information is written into the log file .
- the local log file can be transferred to the network log server in a timely manner according to the capacity of the non-volatile storage medium and the size of the log file. Specifically, the log file can be transferred to the log server through the out-of-band management network.
- two log files can be set on the non-volatile storage medium.
- the log file is transmitted to the log server and the serial port The mirror information is saved to another log file.
- a method of reducing the capacity of each log file may be adopted. Specifically, more log files can be set according to the capacity of the non-volatile storage medium.
- the serial port mirroring information log file is saved to another log file. Until the serial port mirroring information is saved to the last log file, all the log files previously saved with the serial port mirroring information are transferred to the log server together. For example, according to the capacity of the non-volatile storage medium, five log files of the same size are set. When the serial port mirroring information is saved to the fifth log file, the remaining four log files can be transferred to the log server together.
- the following step may be included: processing the serial port mirroring information to obtain log information conforming to the log file format.
- the recording the serial port mirroring information in the log file includes: saving the log information conforming to the log file format in the log file. Since the serial port mirroring information is a binary data stream, the serial port mirroring information can be processed first, converted into log information conforming to the log file format, and then the log information conforming to the log file format is saved to the log file.
- the saving the log information conforming to the log file format to the log file includes:
- the logging level includes severity level, error level, warning level, information level, and debugging level.
- the preset log record level threshold is a warning level
- the log records that are greater than or equal to the warning level are saved to the log file.
- a programmable logic device is used to implement the serial port output mirroring of the main processor of the switch, and route this mirroring to the log recording serial port of the management processor, and the management processor running log process uses this serial port mirroring information to file
- the form of continuous saving to the external non-volatile storage medium can realize the complete preservation of the main processor serial port log, which is convenient for the data center network operation and maintenance personnel to diagnose the switch and the main processor. In particular, when the main processor hangs up or the system restarts, these log files can restore detailed information before the failure.
- the first embodiment of this application uses the management processor to save the serial port log with higher flexibility: (1) Log files can be viewed at any time , And will not interrupt the log saving; (2) The management processor can use the out-of-band management network to upload locally saved files to the log server on the network, without local storage restrictions.
- the use of programmable logic to realize the serial port log storage solution when you need to view the log content or back up the historical log, you need to suspend the log saving task, and the integrity of the log cannot be guaranteed.
- the second embodiment of the present application provides a log information processing method.
- the execution subject of the second embodiment of the present application is a programmable logic device of a switch. Description will be given below in conjunction with FIG. 3.
- step S301 the serial port data of the main processor is acquired.
- the obtaining of serial port data of the main processor means that the programmable logic device of the switch obtains the serial port data of the main processor of the switch.
- the programmable logic device obtains the serial port data output by the serial port (Universal Asynchronous Receiver and Transmitter UART0 serial port) of the host processor (Host CPU in Figure 1).
- step S302 the serial port data of the main processor is mirrored to obtain serial port mirroring information.
- step S303 the serial port mirroring information is transmitted to the management processor.
- the management processor refers to the processor used in the switch for power management, temperature sensing and abnormal monitoring
- the programmable logic device of the switch When the programmable logic device of the switch transmits the serial port mirroring information to the management processor of the switch, it can also simultaneously transmit the serial port mirroring information to the panel serial port of the switch.
- the transmitting the serial port mirroring information to the management processor includes:
- the serial port mirroring information is transmitted to the log recording serial port of the management processor of the switch.
- the CPLD is obtaining the main processing After the serial port data output by the serial port of the device, the serial port data is first mirrored to obtain the serial port mirroring information, and then the serial port mirroring information is transmitted to the management processor of the switch through one path, and the serial port mirroring information is transmitted to the switch through another path.
- the panel serial port the serial port data output by the serial port of the device.
- the serial port data of the main processor can be simultaneously output to the panel serial port and the log recording serial port of the management processor of the switch, and the management processor
- the built log process combines to realize the complete preservation of the serial port data of the main processor.
- the third embodiment of the present application provides a log information processing method.
- the execution subject of the third embodiment of the present application is the management processor of the switch. Description will be given below in conjunction with FIG. 4.
- step S401 the serial port mirroring information of the main processor output by the programmable logic device is obtained.
- Programmable logic devices may include: CPLD (Complex Programmable Logic Device), FPGA (Field-Programmable Gate Array, that is, field programmable gate array), etc., as shown in Figure 2, the programmable logic device is CPLD.
- the programmable logic device obtains the serial port data output by the serial port of the host processor (Host CPU in FIG. 2) (for example, the universal asynchronous receiver and transmitter UART0 serial port in FIG. 2); The serial port data is mirrored to obtain the serial port mirroring information; then the serial port mirroring information is transmitted to the management processor of the switch.
- the management processor obtains the serial port mirroring information of the main processor output by the programmable logic device in the switch.
- the log process run by the management processor can intercept the programmable logic device in the switch and input to the management processor's log to record the serial port mirroring information of the main processor of the serial port.
- step S402 the serial port mirroring information is recorded in the log file.
- the recording of the serial port mirroring information in the log file includes:
- the log file is saved in a non-volatile storage medium.
- the non-volatile storage medium includes at least one of the following media:
- Non-volatile memory
- a log process (for example, the Log save process in Figure 2) can be run in the management processor, the serial port mirroring information is obtained through the log process, the write interface of Flash is called, and the serial port mirroring information is written into the log file .
- the log process (Log save process) completely saves the serial port mirroring information to the external Flash.
- the local log file can be transferred to the network log server in a timely manner according to the capacity of the non-volatile storage medium and the size of the log file. Specifically, the log file can be transferred to the log server through the out-of-band management network.
- two log files can be set on the non-volatile storage medium.
- the log file is transferred to the log server, and at the same time, The serial port mirroring information is saved to another log file.
- a method of reducing the capacity of each log file may be adopted. Specifically, more log files can be set according to the capacity of the non-volatile storage medium.
- the serial port mirroring information log file is saved to another log file. Until the serial port mirroring information is saved to the last log file, all the log files previously saved with the serial port mirroring information are transferred to the log server together. For example, according to the capacity of the non-volatile storage medium, five log files of the same size are set. When the serial port mirroring information is saved to the fifth log file, the remaining four log files can be transferred to the log server together.
- processing the serial port mirroring information to obtain log information conforming to the log file format includes: saving the log information conforming to the log file format in the log file. Since the serial port mirroring information is a binary data stream, the serial port mirroring information can be processed first, converted into log information conforming to the log file format, and then the log information conforming to the log file format is saved to the log file.
- the storing the log information conforming to the log file format to the log file includes:
- the logging level includes severity level, error level, warning level, information level, and debugging level.
- the preset log record level threshold is a warning level
- the log records that are greater than or equal to the warning level are saved to the log file.
- the management processor of the third embodiment of the present application receives the serial port mirroring information of the main processor output by the programmable logic device in the switch, and the running log process continuously saves the serial port mirroring information in the form of a file to the external non-volatile storage medium, It can realize the complete preservation of the main processor serial port, which is convenient for the data center network operation and maintenance system and operation and maintenance personnel to diagnose the switch and the main processor. In particular, when the main processor hangs up or the system restarts, these log files can restore detailed information before the failure.
- the third embodiment of this application uses a management processor to save the serial port log with higher flexibility: (1) Log files can be viewed at any time , And will not interrupt the saving of logs. (2) The management processor can use the out-of-band management network to upload locally saved files to the log server on the network without local storage restrictions.
- the use of programmable logic to realize the serial port log storage solution when you need to view the log content or back up the historical log, you need to suspend the log saving task, and the integrity of the log cannot be guaranteed.
- the fourth embodiment of the present application also provides a log information processing device.
- the log information processing device includes:
- the serial port data obtaining unit 501 of the main processor is used to obtain serial data of the main processor
- the serial port mirroring information obtaining unit 502 is configured to mirror the serial port data of the main processor to obtain serial port mirroring information
- the serial port mirroring information transmission unit 503 is configured to transmit the serial port mirroring information to the management processor.
- the device further includes:
- the serial port mirroring information transmission unit is used to transmit the serial port mirroring information to the panel serial port of the switch.
- serial port mirroring information transmission unit is specifically used for:
- the serial port mirroring information is transmitted to the logging serial port of the management processor.
- the fifth embodiment of the present application also provides a log information processing device.
- the log information processing device includes:
- the serial port image information obtaining unit 601 is configured to obtain the serial port image information of the main processor output by the programmable logic device;
- the serial port mirroring information recording unit 602 is configured to record the serial port mirroring information in a log file.
- serial port mirroring information recording unit is specifically used for:
- the device further includes:
- the log file saving unit is used to save the log file to a non-volatile storage medium.
- the device further includes:
- the log file transfer unit is used to transfer the log file to the log server.
- the log file transmission unit is specifically used for:
- the log file is transmitted to the log server through the out-of-band management network.
- the log file transmission unit is specifically used for:
- the log file When the size of the log file reaches or exceeds a preset file size threshold, the log file is transmitted to the log server.
- the device further includes:
- the log information obtaining unit is used to process the serial port mirroring information to obtain log information conforming to the log file format;
- the serial port mirroring information recording unit is specifically used for:
- the log information conforming to the log file format is saved in the log file.
- serial port mirroring information recording unit is specifically used for:
- the sixth embodiment of the present application provides a switch, including: a switch chip, a programmable logic device, a management processor, and a main processor;
- the switch chip is used to process the forwarding of data traffic of the switch
- the main processor is configured to send serial port data of the main processor to the programmable logic device;
- the programmable logic device is used to mirror the serial port data of the main processor to obtain serial port mirroring information
- the management processor is configured to obtain the serial port mirroring information of the main processor output by the programmable logic device, and record the serial port mirroring information in a log file.
- the switch system architecture provided by the sixth embodiment of the present application uses three-plane 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 switch chip handles the forwarding of the data traffic of the entire switch, and the Host CPU controls and configures the switch chip, and introduces the BMC (Baseboard Management Controller: management processor, which is used in the switch to manage power, temperature and abnormality monitoring). System power supply and fan management and abnormal monitoring.
- the switch provided by the sixth embodiment uses a programmable logic device to mirror the serial port data to obtain the serial port mirroring information
- the serial port data of the main processor is output to the panel serial port and the management processor of the switch at the same time.
- the serial port combined with the built-in log process of the management processor, realizes the complete preservation of the serial port data of the main processor.
- the computing device includes one or more processors (CPU), input/output interfaces, network interfaces, and memory.
- processors CPU
- input/output interfaces network interfaces
- memory volatile and non-volatile memory
- the memory may include non-permanent memory in computer readable media, 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 computer readable media.
- RAM random access memory
- ROM read-only memory
- flash RAM flash memory
- Computer-readable media include permanent and non-permanent, removable and non-removable media, and information storage can be realized by any method or technology.
- the information can be computer-readable instructions, data structures, program modules, 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, CD-ROM, digital versatile disc (DVD) or other optical storage, Magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media can be used to store information that can be accessed by computing devices.
- computer-readable media does not include non-transitory computer-readable media (transitory media), such as modulated data signals and carrier waves.
- this application can be provided as methods, systems, or computer program products. Therefore, this application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, this application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
- computer-usable storage media including but not limited to disk storage, CD-ROM, optical storage, etc.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Debugging And Monitoring (AREA)
Abstract
一种日志信息处理系统、日志信息处理方法及装置和交换机,该系统包括:可编程逻辑器件(2-1)、管理处理器(2-3)、主处理器(2-2);所述主处理器(2-2),用于将所述主处理器(2-2)的串口数据发送到所述可编程逻辑器件(2-1);所述可编程逻辑器件(2-1),用于将所述主处理器(2-2)的串口数据进行镜像,获得串口镜像信息;所述管理处理器(2-3),用于获得所述可编程逻辑器件(2-1)输出的主处理器(2-2)的串口镜像信息,并将所述串口镜像信息记录到日志文件中。采用上述方法,以解决现有技术存在的不能保存主处理器(2-2)的串口日志信息或者保存日志信息时缺乏灵活性的问题。
Description
本申请要求2019年05月28日递交的申请号为201910451502.9、发明名称为“日志信息处理系统、日志信息处理方法及装置和交换机”中国专利申请的优先权,其全部内容通过引用结合在本申请中。
本申请涉及计算机技术领域,具体涉及一种日志信息处理系统,本申请还涉及一种日志信息处理方法和日志信息处理装置,本申请还涉及一种交换机。
数据中心交换机是数据中心网络的核心部件,它的可靠性和可用性决定了网络是否稳定。交换芯片处理整个交换机的数据流量的转发,交换机的Host CPU(主处理器)对交换芯片进行控制和配置,Host CPU的串口输出是交换机的一个重要信息来源,运维人员可以通过这个信息来查看Host CPU的历史打印信息和对交换机故障、异常进行诊断。特别地,当Host CPU挂死时可以通过之前的串口打印获取CPU挂死前的信息,帮助定位故障或异常产生的原因。因此保存完整的CPU串口日志非常重要。
现有技术下,一些数据中心交换机系统没有内置Host CPU(主处理器)串口的日志保存功能,一旦Host CPU挂死很难发现挂死之前Host CPU的串口打印输出和发生的问题。
另外一些数据中心定制的交换机虽然支持串口日志的保存,但是由于系统只有一个处理器既负责控制也负责管理,串口日志完全依靠可编程逻辑来进行提取和保存,当需要查看日志内容或者备份历史日志时都需要暂停日志保存任务,无法保证日志的完整性;因此不能随时查看日志文件,缺乏灵活性。
综上所述,现有技术存在不能保存主处理器的串口日志信息或者保存日志信息时缺乏灵活性的问题。
发明内容
本申请提供一种日志信息处理系统,以解决现有技术存在的不能保存主处理器的串口日志信息或者保存日志信息时缺乏灵活性的问题。
本申请提供一种日志信息处理系统,包括:可编程逻辑器件、管理处理器、主处理 器;
所述主处理器,用于将所述主处理器的串口数据发送到所述可编程逻辑器件;
所述可编程逻辑器件,用于将所述主处理器的串口数据进行镜像,获得串口镜像信息;
所述管理处理器,用于获得所述可编程逻辑器件输出的主处理器的串口镜像信息,并将所述串口镜像信息记录到日志文件中。
可选的,所述管理处理器具体用于:
启动日志进程;
利用所述日志进程将所述串口镜像信息记录到所述日志文件中。
可选的,所述管理处理器具体用于:
将所述日志文件保存到非易失性存储介质中。
可选的,所述管理处理器具体用于:
将所述日志文件传送到日志服务器。
可选的,所述管理处理器具体用于:
通过带外管理网络将所述日志文件传送到日志服务器。
可选的,所述管理处理器具体用于:
当所述日志文件的大小达到或超过预设的文件大小阈值时,将所述日志文件传送到日志服务器。
可选的,所述可编程逻辑器件,还用于:
获取主处理器的串口数据。
可选的,所述可编程逻辑器件,还用于:
将所述串口镜像信息传送给交换机的面板串口。
可选的,所述可编程逻辑器件具体用于:
将所述串口镜像信息传送给管理处理器的日志记录串口。
本申请还提供一种日志信息处理方法,包括:
获得可编程逻辑器件输出的主处理器的串口镜像信息;
将所述串口镜像信息记录到日志文件中。
可选的,所述将所述串口镜像信息记录到日志文件中,包括:
启动日志进程;
利用所述日志进程将所述串口镜像信息记录到所述日志文件中。
可选的,还包括:
将所述日志文件保存到非易失性存储介质中。
可选的,还包括:
将所述日志文件传送到日志服务器。
可选的,所述将所述日志文件传送到日志服务器,包括:
通过带外管理网络将所述日志文件传送到日志服务器。
可选的,所述将所述日志文件传送到日志服务器,包括:
当所述日志文件的大小达到或超过预设的文件大小阈值时,将所述日志文件传送到日志服务器。
可选的,还包括:
对所述串口镜像信息进行处理,获得符合日志文件格式的日志信息;
所述将所述串口镜像信息保存到所述日志文件,包括:
将所述符合日志文件格式的日志信息保存到所述日志文件。
可选的,所述将所述符合日志文件格式的日志信息保存到所述日志文件包括:
判断符合日志文件格式的日志信息中的日志记录的日志记录等级是否大于或等于预设的日志记录等级阈值;
若是,将所述符合日志文件格式的日志信息保存到所述日志文件。
本申请还提供一种日志信息处理方法,包括:
获取主处理器的串口数据;
将所述主处理器的串口数据进行镜像,获得串口镜像信息;
将所述串口镜像信息传送给管理处理器。
可选的,还包括:
将所述串口镜像信息传送给交换机的面板串口。
可选的,所述交换机的可编程逻辑器件将所述串口镜像信息传送给交换机的管理处理器,包括:
将所述串口镜像信息传送给管理处理器的日志记录串口。
本申请还提供一种日志信息处理装置,包括:
串口镜像信息获得单元,用于获得可编程逻辑器件输出的主处理器的串口镜像信息;
串口镜像信息记录单元,用于将所述串口镜像信息记录到日志文件中。
本申请还提供一种日志信息处理装置,包括:
主处理器的串口数据获取单元,用于获取主处理器的串口数据;
串口镜像信息获得单元,用于将所述主处理器的串口数据进行镜像,获得串口镜像信息;
串口镜像信息传送单元,用于将所述串口镜像信息传送给管理处理器。
与现有技术相比,本申请具有以下优点:
本申请提供一种日志信息处理系统,通过可编程逻辑器件将所述主处理器的串口数据进行镜像,获得串口镜像信息;并将串口镜像信息传送给管理处理器;管理处理器将串口镜像信息保存到交换机的日志文件,实现了对主处理器串口数据的保存,方便数据中心网络运维人员对交换机和主处理器的诊断。
本申请第一实施例与完全依赖可编程逻辑实现的串口日志保存的方案相比,通过管理处理器保存串口日志具有更高的灵活性,可以随时查看日志文件,并且不会中断日志的保存,保证了日志的完整性。
图1是本申请提供的一种应用场景的示意图;
图2是本申请第一实施例提供的一种日志信息处理系统的示意图;
图3是本申请第二实施例提供的一种日志信息处理方法的流程图;
图4是本申请第三实施例提供的一种日志信息处理方法的流程图;
图5是本申请第四实施例提供的一种日志信息处理装置的示意图;
图6是本申请第五实施例提供的一种日志信息处理装置的示意图。
在下面的描述中阐述了很多具体细节以便于充分理解本发明。但是本发明能够以很多不同于在此描述的其它方式来实施,本领域技术人员可以在不违背本发明内涵的情况下做类似推广,因此本发明不受下面公开的具体实施的限制。
在介绍具体实施方式前,先介绍一下本申请用到的一些技术术语。
交换机:一种用于电(光)信号转发的网络设备。
BMC(Baseboard Management Controller):管理处理器,在交换机中用于管理电源、温感和异常监控的处理器。
Host CPU:主处理器,在交换机中用于网络交换芯片的配置和控制。
CPLD:一种可编程逻辑器件,可根据系统要求实现定制逻辑。
Flash:一种静态存储器件,可在下电后保存,在交换机中用于操作系统和文件的存放。
为了更清楚地展示本申请,先介绍一下本申请实施例提供的应用场景。如图1所示,其为本申请提供的应用场景实施例的示意图。客户端1-1首先与交换机1-2建立连接,客户端对交换机进行配置和控制,交换机向客户端返回数据,交换机中的主处理器将主处理器的串口数据发送到可编程逻辑器件;可编程逻辑器件获取主处理器的串口数据,将主处理器的串口数据进行镜像,获得串口镜像信息,并将串口镜像信息传送给管理处理器;管理处理器将串口镜像信息保存到日志文件,并将日志文件发送到日志服务器1-3。
本申请第一实施例提供一种日志信息处理系统,以下结合图2进行说明。
如图2所示,所述日志信息处理系统包括:可编程逻辑器件2-1、主处理器2-2、管理处理器2-3。
所述可编程逻辑器件2-1,用于将所述主处理器的串口数据进行镜像,获得串口镜像信息,并将所述串口镜像信息传送给所述管理处理器。
所述可编程逻辑器件,还用于:获取主处理器的串口数据。
可编程逻辑器件可以包括:CPLD(Complex Programmable Logic Device,复杂可编程逻辑器件)、FPGA(Field-Programmable Gate Array,即现场可编程门阵列)等,如图2,可编程逻辑器件为CPLD。
可编程逻辑器件获得主处理器(图2的Host CPU)的串口(例如,图2中的通用异步接收器和发送器UART0串口)输出的串口数据;然后将串口数据进行镜像处理,得到串口镜像信息;再将串口镜像信息传送给交换机的管理处理器。所述可编程逻辑器件具体用于:将所述串口镜像信息传送给交换机的管理处理器的日志记录串口。
所述可编程逻辑器件,还用于:将所述串口镜像信息传送给交换机的面板串口。
具体实施时,由于主处理器的串口数据既需要输出到面板串口,又需要输出到交换机的管理处理器的日志记录串口(例如,图2的UART1为日志记录串口),因此CPLD在获得主处理器的串口输出的串口数据后,首先将串口数据进行镜像处理,得到串口镜像信息;然后将串口镜像信息通过一条路径传送到管理处理器,同时将串口镜像信息通过另一条路径传送到交换机的面板串口。
由于通过采用可编程逻辑器件对串口数据进行镜像处理,得到串口镜像信息,因此实现了将主处理器的串口数据同时输出到面板串口和管理处理器的日志记录串口,为管 理处理器保存串口日志提供了前提条件。
所述主处理器2-2,用于将所述主处理器的串口数据发送到所述可编程逻辑器件。
所述管理处理器(例如,图1中的BMC)2-3,用于接收所述可编程逻辑器件输出的主处理器的串口镜像信息,并将所述串口镜像信息记录到所述日志文件中。
所述管理处理器具体用于:
启动日志进程;
利用所述日志进程将所述串口镜像信息保存到所述日志文件。
所述管理处理器具体用于:
将所述日志文件保存到非易失性存储介质中。
所述非易失性存储介质包括以下介质中的至少一种:
非易失性内存;
Flash芯片。
在具体实施时,管理处理器中可以运行一个日志进程(例如,图2中的Log保存进程),通过日志进程获得串口镜像信息,调用Flash的写接口,并将串口镜像信息写入日志文件中。
由于如果将所有的串口镜像信息写到某个日志文件中,一段时间后可能会受到可用存储设备空间的限制,会导致某些历史信息被覆盖;此外,如果单个日志文件太大会影响查找特定信息的速度,导致运维人员不能快速排查问题。因此,可以根据非易失性存储介质的容量和日志文件的大小适时地将本地的日志文件传送到网络日志服务器,具体的,可以通过带外管理网络将日志文件传送到日志服务器。
作为一个实施例,可以在非易失性存储介质设置两个日志文件,当正在写入的日志文件的大小大于或等于预设的文件大小阈值时,将日志文件传送到日志服务器,并将串口镜像信息保存到另一个日志文件。
作为一个实施例,为了提高特定时间内日志信息的查找速度,可以采取减少每个日志文件的容量的方式。具体的,可以根据非易失性存储介质的容量设置更多的日志文件,当一个日志文件的大小大于或等于预设的文件大小阈值时,将串口镜像信息日志文件保存到另一个日志文件,直到串口镜像信息保存到最后一个日志文件,将前面保存串口镜像信息的所有日志文件一起传送到日志服务器。例如,根据非易失性存储介质的容量设置5个大小相同的日志文件,当在将串口镜像信息保存到第5个日志文件时,可以将其余4个日志文件一起传送到日志服务器。
作为一个实施例,还可以在将串口镜像信息记录到日志文件步骤之前,包括下述步骤:对所述串口镜像信息进行处理,获得符合日志文件格式的日志信息。所述将所述串口镜像信息记录到所述日志文件中,包括:将所述符合日志文件格式的日志信息保存到所述日志文件中。由于串口镜像信息为二进制数据流,因此可以先对串口镜像信息进行处理,将其转化为符合日志文件格式的日志信息,再将符合日志文件格式的日志信息保存到日志文件中。
为了实现运维人员对交换机和主处理器的诊断,可以只保存日志记录等级大于或等于预设的日志记录等级阈值的日志记录。
所述将所述符合日志文件格式的日志信息保存到所述日志文件包括:
判断符合日志文件格式的日志信息中的日志记录的日志记录等级是否大于或等于预设的日志记录等级阈值;
若是,将所述符合日志文件格式的日志信息保存到所述日志文件中。
日志记录等级包含严重等级、错误等级、警告等级、信息等级、调试等级。
例如,如果预设的日志记录等级阈值为警告等级,则将大于或等于警告等级(包括严重等级、错误等级、警告等级)的日志记录保存到日志文件。
至此,完成了对本申请第一实施例的介绍。本申请第一实施例通过可编程逻辑器件实现对交换机的主处理器的串口输出镜像,并将此镜像路由至管理处理器的日志记录串口,管理处理器运行日志进程将此串口镜像信息以文件的形式持续保存至外部非易失性存储介质,可以实现对主处理器串口日志的完整保存,方便数据中心网络运维人员对交换机和主处理器的诊断。特别地,当主处理器发生挂死,或者系统发生重启,这些日志文件能还原故障之前的详细信息。
本申请第一实施例与完全依赖可编程逻辑实现的串口日志保存的方案相比,本申请第一实施例使用管理处理器保存串口日志具有更高的灵活性:(1)可以随时查看日志文件,并且不会中断日志的保存;(2)管理处理器可以使用带外管理网络将本地保存的文件上传至网络上的日志服务器,不会有本地存储的限制。而使用可编程逻辑实现串口日志保存的方案,当需要查看日志内容或者备份历史日志时都需要暂停日志保存任务,无法保证日志的完整性。
本申请第二实施例提供一种日志信息处理方法,本申请第二实施例的执行主体为交换机的可编程逻辑器件。下面结合图3进行说明。
如图3所示,在步骤S301中,获取主处理器的串口数据。
所述获取主处理器的串口数据,指交换机的可编程逻辑器件获取交换机的主处理器的串口数据。
如图2所示,可编程逻辑器件获得主处理器(图1的Host CPU)的串口(通用异步接收器和发送器UART0串口)输出的串口数据。
如图3所示,在步骤S302中,将所述主处理器的串口数据进行镜像,获得串口镜像信息。
如图3所示,在步骤S303中,将所述串口镜像信息传送给管理处理器。
所述管理处理器,指在交换机中用于管理电源、温感和异常监控的处理器
交换机的可编程逻辑器件在将串口镜像信息传送给交换机的管理处理器时,还可以同时将所述串口镜像信息传送给交换机的面板串口。
所述将所述串口镜像信息传送给管理处理器,包括:
将所述串口镜像信息传送给交换机的管理处理器的日志记录串口。
具体实施时,由于主处理器的串口数据既需要输出到面板串口,又需要输出到交换机的管理处理器的日志记录串口(例如,图2的UART1为日志记录串口),因此CPLD在获得主处理器的串口输出的串口数据后,首先将串口数据进行镜像处理,得到串口镜像信息,然后将串口镜像信息通过一条路径传送到交换机的管理处理器,同时将串口镜像信息通过另一条路径传送到交换机的面板串口。
由于通过采用可编程逻辑器件对串口数据进行镜像处理,得到串口镜像信息,因此实现了将主处理器的串口数据同时输出到面板串口和交换机的管理处理器的日志记录串口,与管理处理器内建的日志进程结合实现了对主处理器的串口数据的完整保存。
本申请第三实施例提供一种日志信息处理方法,本申请第三实施例的执行主体为交换机的管理处理器。下面结合图4进行说明。
如图4所示,在步骤S401中,获得可编程逻辑器件输出的主处理器的串口镜像信息。
可编程逻辑器件可以包括:CPLD(Complex Programmable Logic Device,复杂可编程逻辑器件)、FPGA(Field-Programmable Gate Array,即现场可编程门阵列)等,如图2,可编程逻辑器件为CPLD。
在本申请第二实施例中,可编程逻辑器件获得主处理器(图2的Host CPU)的串口(例如,图2中的通用异步接收器和发送器UART0串口)输出的串口数据;然后将串口数据进行镜像处理,得到串口镜像信息;再将串口镜像信息传送给交换机的管理处理器,本步骤管理处理器获得交换机中的可编程逻辑器件输出的主处理器的串口镜像信息。如 图2中的①所示,管理处理器运行的日志进程可以截取交换机中的可编程逻辑器件输入到管理处理器的日志记录串口的主处理器的串口镜像信息。
如图4所示,在步骤S402中,将所述串口镜像信息记录到所述日志文件中。
所述将所述串口镜像信息记录到所述日志文件中,包括:
启动日志进程;
利用所述日志进程将所述串口镜像信息记录到所述日志文件中。
作为一个实施例,还可以包括下述步骤:
将所述日志文件保存到非易失性存储介质中。
所述非易失性存储介质包括以下介质中的至少一种:
非易失性内存;
Flash芯片。
在具体实施时,管理处理器中可以运行一个日志进程(例如,图2中的Log保存进程),通过日志进程获得串口镜像信息,调用Flash的写接口,并将串口镜像信息写入日志文件中。如图2中的②,日志进程(Log保存进程)将串口镜像信息完整地保存到外部的Flash。
由于如果将所有的串口镜像信息写到某个日志文件中,一段时间后可能会受到可用存储设备空间的限制,会导致某些历史信息被覆盖;此外,如果单个日志文件太大会影响查找特定信息的速度,导致运维人员不能快速排查问题。因此,可以根据非易失性存储介质的容量和日志文件的大小适时地将本地的日志文件传送到网络日志服务器,具体的,可以通过带外管理网络将日志文件传送到日志服务器。
作为一个实施例,可以在非易失性存储介质设置两个日志文件,当正在写入的日志文件的大小大于或等于预设的文件大小阈值时,将日志文件传送到日志服务器,同时,将串口镜像信息保存到另一个日志文件。
作为一个实施例,为了提高特定时间内日志信息的查找速度,可以采取减少每个日志文件的容量的方式。具体的,可以根据非易失性存储介质的容量设置更多的日志文件,当一个日志文件的大小大于或等于预设的文件大小阈值时,将串口镜像信息日志文件保存到另一个日志文件,直到串口镜像信息保存到最后一个日志文件,将前面保存串口镜像信息的所有日志文件一起传送到日志服务器。例如,根据非易失性存储介质的容量设置5个大小相同的日志文件,当在将串口镜像信息保存到第5个日志文件时,可以将其余4个日志文件一起传送到日志服务器。
作为一个实施例,还可以在将串口镜像信息保存到日志文件步骤之前,包括下述步骤:对所述串口镜像信息进行处理,获得符合日志文件格式的日志信息。所述将所述串口镜像信息记录到所述日志文件中,包括:将所述符合日志文件格式的日志信息保存到所述日志文件中。由于串口镜像信息为二进制数据流,因此可以先对串口镜像信息进行处理,将其转化为符合日志文件格式的日志信息,再将符合日志文件格式的日志信息保存到日志文件。
为了实现运维人员对交换机和主处理器的诊断,可以只保存日志记录等级大于或等于预设的日志记录等级阈值的日志记录。
所述将所述符合日志文件格式的日志信息保存到所述日志文件中,包括:
判断符合日志文件格式的日志信息中的日志记录的日志记录等级是否大于或等于预设的日志记录等级阈值;
若是,将所述符合日志文件格式的日志信息保存到所述日志文件。
日志记录等级包含严重等级、错误等级、警告等级、信息等级、调试等级。
例如,如果预设的日志记录等级阈值为警告等级,则将大于或等于警告等级(包括严重等级、错误等级、警告等级)的日志记录保存到日志文件。
至此,完成了对本申请第三实施例的介绍。本申请第三实施例管理处理器接收交换机中的可编程逻辑器件输出的主处理器的串口镜像信息,运行日志进程将此串口镜像信息以文件的形式持续保存至外部非易失性存储介质,可以实现对主处理器串口的完整保存,方便数据中心网络运维系统和运维人员对交换机和主处理器的诊断。特别地,当主处理器发生挂死,或者系统发生重启,这些日志文件能还原故障之前的详细信息。
本申请第三实施例与完全依赖可编程逻辑实现的串口日志保存的方案相比,本申请第三实施例使用管理处理器保存串口日志具有更高的灵活性:(1)可以随时查看日志文件,并且不会中断日志的保存(2)管理处理器可以使用带外管理网络将本地保存的文件上传至网络上的日志服务器,不会有本地存储的限制。而使用可编程逻辑实现串口日志保存的方案,当需要查看日志内容或者备份历史日志时都需要暂停日志保存任务,无法保证日志的完整性。
与本申请第二实施例提供的日志信息处理方法相对应的,本申请第四实施例还提供了一种日志信息处理装置。
如图5所示,所述日志信息处理装置,包括:
主处理器的串口数据获取单元501,用于获取主处理器的串口数据;
串口镜像信息获得单元502,用于将所述主处理器的串口数据进行镜像,获得串口镜像信息;
串口镜像信息传送单元503,用于将所述串口镜像信息传送给管理处理器。
可选的,所述装置还包括:
串口镜像信息传送单元,用于将所述串口镜像信息传送给交换机的面板串口。
可选的,所述串口镜像信息传送单元,具体用于:
将所述串口镜像信息传送给管理处理器的日志记录串口。
需要说明的是,对于本申请第四实施例提供的日志信息处理装置的详细描述可以参考对本申请第二实施例的相关描述,这里不再赘述。
与本申请第三实施例提供的日志信息处理方法相对应的,本申请第五实施例还提供了一种日志信息处理装置。
如图6所示,所述日志信息处理装置,包括:
串口镜像信息获得单元601,用于获得可编程逻辑器件输出的主处理器的串口镜像信息;
串口镜像信息记录单元602,用于将所述串口镜像信息记录到日志文件中。
可选的,所述串口镜像信息记录单元,具体用于:
启动日志进程;
利用所述日志进程将所述串口镜像信息记录到所述日志文件中。
可选的,所述装置还包括:
日志文件保存单元,用于将所述日志文件保存到非易失性存储介质中。
可选的,所述装置还包括:
日志文件传送单元,用于将所述日志文件传送到日志服务器。
可选的,所述日志文件传送单元,具体用于:
通过带外管理网络将所述日志文件传送到日志服务器。
可选的,所述日志文件传送单元,具体用于:
当所述日志文件的大小达到或超过预设的文件大小阈值时,将所述日志文件传送到日志服务器。
可选的,所述装置还包括:
日志信息获得单元,用于对所述串口镜像信息进行处理,获得符合日志文件格式的日志信息;
所述串口镜像信息记录单元,具体用于:
将所述符合日志文件格式的日志信息保存到所述日志文件中。
可选的,所述串口镜像信息记录单元,具体用于:
判断符合日志文件格式的日志信息中的日志记录的日志记录等级是否大于或等于预设的日志记录等级阈值;
若是,将所述符合日志文件格式的日志信息保存到所述日志文件中。
需要说明的是,对于本申请第五实施例提供的日志信息处理装置的详细描述可以参考对本申请第三实施例的相关描述,这里不再赘述。
本申请第六实施例提供一种交换机,包括:交换芯片、可编程逻辑器件、管理处理器、主处理器;
所述交换芯片,用于处理所述交换机的数据流量的转发;
所述主处理器,用于将所述主处理器的串口数据发送到所述可编程逻辑器件;
所述可编程逻辑器件,用于将所述主处理器的串口数据进行镜像,获得串口镜像信息;
所述管理处理器,用于获得所述可编程逻辑器件输出的主处理器的串口镜像信息,并将所述串口镜像信息记录到日志文件中。
本申请第六实施例提供的交换机系统架构使用了三平面分离来提高系统的可靠性和可用性,即数据平面,控制平面和管理平面分离,三平面互不影响。交换芯片处理整个交换机的数据流量的转发,Host CPU对交换芯片进行控制和配置,引入BMC(Baseboard Management Controller:管理处理器,在交换机中用于管理电源、温感和异常监控的处理器)进行系统电源、风扇的管理和异常监控。
由于第六实施例提供的交换机通过采用可编程逻辑器件对串口数据进行镜像处理,得到串口镜像信息,因此实现了将主处理器的串口数据同时输出到面板串口和交换机的管理处理器的日志记录串口,与管理处理器内建的日志进程结合实现了对主处理器的串口数据的完整保存。
本申请虽然以较佳实施例公开如上,但其并不是用来限定本申请,任何本领域技术人员在不脱离本申请的精神和范围内,都可以做出可能的变动和修改,因此本申请的保护范围应当以本申请权利要求所界定的范围为准。
在一个典型的配置中,计算设备包括一个或多个处理器(CPU)、输入/输出接口、网络接口和内存。
内存可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash RAM)。内存是计算机可读介质的示例。
计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带磁磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。按照本文中的界定,计算机可读介质不包括非暂存电脑可读媒体(transitory media),如调制的数据信号和载波。
本领域技术人员应明白,本申请的实施例可提供为方法、系统或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。
Claims (23)
- 一种日志信息处理系统,其特征在于,包括:可编程逻辑器件、管理处理器、主处理器;所述主处理器,用于将所述主处理器的串口数据发送到所述可编程逻辑器件;所述可编程逻辑器件,用于将所述主处理器的串口数据进行镜像,获得串口镜像信息;所述管理处理器,用于获得所述可编程逻辑器件输出的主处理器的串口镜像信息,并将所述串口镜像信息记录到日志文件中。
- 根据权利要求1所述的日志信息处理系统,其特征在于,所述管理处理器具体用于:启动日志进程;利用所述日志进程将所述串口镜像信息记录到所述日志文件中。
- 根据权利要求1所述的日志信息处理系统,其特征在于,所述管理处理器具体用于:将所述日志文件保存到非易失性存储介质中。
- 根据权利要求1所述的日志信息处理系统,其特征在于,所述管理处理器具体用于:将所述日志文件传送到日志服务器。
- 根据权利要求4所述的日志信息处理系统,其特征在于,所述管理处理器具体用于:通过带外管理网络将所述日志文件传送到日志服务器。
- 根据权利要求4所述的日志信息处理系统,其特征在于,所述管理处理器具体用于:当所述日志文件的大小达到或超过预设的文件大小阈值时,将所述日志文件传送到日志服务器。
- 根据权利要求1所述的日志信息处理系统,其特征在于,所述可编程逻辑器件,还用于:获取主处理器的串口数据。
- 根据权利要求1所述的日志信息处理系统,其特征在于,所述可编程逻辑器件,还用于:将所述串口镜像信息传送给交换机的面板串口。
- 根据权利要求1所述的日志信息处理系统,其特征在于,所述可编程逻辑器件具体用于:将所述串口镜像信息传送给管理处理器的日志记录串口。
- 一种日志信息处理方法,其特征在于,包括:获得可编程逻辑器件输出的主处理器的串口镜像信息;将所述串口镜像信息记录到日志文件中。
- 根据权利要求10所述的日志信息处理方法,其特征在于,所述将所述串口镜像信息记录到日志文件中,包括:启动日志进程;利用所述日志进程将所述串口镜像信息记录到所述日志文件中。
- 根据权利要求10所述的日志信息处理方法,其特征在于,还包括:将所述日志文件保存到非易失性存储介质中。
- 根据权利要求10所述的日志信息处理方法,其特征在于,还包括:将所述日志文件传送到日志服务器。
- 根据权利要求13所述的日志信息处理方法,其特征在于,所述将所述日志文件传送到日志服务器,包括:通过带外管理网络将所述日志文件传送到日志服务器。
- 根据权利要求13所述的日志信息处理方法,其特征在于,所述将所述日志文件传送到日志服务器,包括:当所述日志文件的大小达到或超过预设的文件大小阈值时,将所述日志文件传送到日志服务器。
- 根据权利要求10所述的日志信息处理方法,其特征在于,还包括:对所述串口镜像信息进行处理,获得符合日志文件格式的日志信息;所述将所述串口镜像信息记录到所述日志文件中,包括:将所述符合日志文件格式的日志信息保存到所述日志文件中。
- 根据权利要求16所述的日志信息处理方法,其特征在于,所述将所述符合日志文件格式的日志信息保存到所述日志文件中,包括:判断符合日志文件格式的日志信息中的日志记录的日志记录等级是否大于或等于预设的日志记录等级阈值;若是,将所述符合日志文件格式的日志信息保存到所述日志文件中。
- 一种日志信息处理方法,其特征在于,包括:获取主处理器的串口数据;将所述主处理器的串口数据进行镜像,获得串口镜像信息;将所述串口镜像信息传送给管理处理器。
- 根据权利要求18所述的日志信息处理方法,其特征在于,还包括:将所述串口镜像信息传送给交换机的面板串口。
- 根据权利要求18所述的日志信息处理方法,其特征在于,所述将所述串口镜像信息传送给管理处理器,包括:将所述串口镜像信息传送给管理处理器的日志记录串口。
- 一种日志信息处理装置,其特征在于,包括:串口镜像信息获得单元,用于获得可编程逻辑器件输出的主处理器的串口镜像信息;串口镜像信息记录单元,用于将所述串口镜像信息记录到日志文件中。
- 一种日志信息处理装置,其特征在于,包括:主处理器的串口数据获取单元,用于获取主处理器的串口数据;串口镜像信息获得单元,用于将所述主处理器的串口数据进行镜像,获得串口镜像信息;串口镜像信息传送单元,用于将所述串口镜像信息传送给管理处理器。
- 一种交换机,其特征在于,包括:交换芯片、可编程逻辑器件、管理处理器、主处理器;所述交换芯片,用于处理所述交换机的数据流量的转发;所述主处理器,用于将所述主处理器的串口数据发送到所述可编程逻辑器件;所述可编程逻辑器件,用于将所述主处理器的串口数据进行镜像,获得串口镜像信息;所述管理处理器,用于获得所述可编程逻辑器件输出的主处理器的串口镜像信息,并将所述串口镜像信息记录到日志文件中。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910451502.9A CN112015600B (zh) | 2019-05-28 | 2019-05-28 | 日志信息处理系统、日志信息处理方法及装置和交换机 |
CN201910451502.9 | 2019-05-28 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2020238746A1 true WO2020238746A1 (zh) | 2020-12-03 |
Family
ID=73500720
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2020/091521 WO2020238746A1 (zh) | 2019-05-28 | 2020-05-21 | 日志信息处理系统、日志信息处理方法及装置和交换机 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN112015600B (zh) |
WO (1) | WO2020238746A1 (zh) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113778930B (zh) * | 2021-11-12 | 2022-02-22 | 苏州浪潮智能科技有限公司 | Avs调节系统、方法、装置及设备 |
CN114756416A (zh) * | 2022-04-29 | 2022-07-15 | 苏州浪潮智能科技有限公司 | 一种多路服务器的日志记录系统、方法及装置 |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1855840A (zh) * | 2005-04-26 | 2006-11-01 | 华为技术有限公司 | 一种网络管理器从网元设备获取日志信息的方法 |
US8099571B1 (en) * | 2008-08-06 | 2012-01-17 | Netapp, Inc. | Logical block replication with deduplication |
CN104268068A (zh) * | 2014-09-24 | 2015-01-07 | 浪潮电子信息产业股份有限公司 | 一种服务器日志信息的获取方法 |
CN104678842A (zh) * | 2015-01-22 | 2015-06-03 | 深圳市新格林耐特通信技术有限公司 | 扩展broadcom交换芯片用途的系统及方法 |
CN104794033A (zh) * | 2015-04-29 | 2015-07-22 | 浪潮电子信息产业股份有限公司 | 一种基于bmc的cpu低频故障的定位方法及装置 |
CN205320102U (zh) * | 2016-01-13 | 2016-06-15 | 浪潮集团有限公司 | 一种基于龙芯处理器的交换机 |
CN106301845A (zh) * | 2015-05-30 | 2017-01-04 | 四川泰瑞创通讯技术股份有限公司 | 交换机日志记录模块 |
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 (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101197775B (zh) * | 2007-11-19 | 2010-12-08 | 福建星网锐捷网络有限公司 | 端口镜像的实现方法、装置及系统 |
CN105512000B (zh) * | 2014-09-24 | 2020-04-24 | 中兴通讯股份有限公司 | 一种操作系统异常信息收集方法、装置及计算机 |
CN104572421B (zh) * | 2015-02-03 | 2018-06-05 | 浪潮电子信息产业股份有限公司 | 一种不依赖于sol的带外获取和记录服务器串口日志的方法 |
-
2019
- 2019-05-28 CN CN201910451502.9A patent/CN112015600B/zh active Active
-
2020
- 2020-05-21 WO PCT/CN2020/091521 patent/WO2020238746A1/zh active Application Filing
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1855840A (zh) * | 2005-04-26 | 2006-11-01 | 华为技术有限公司 | 一种网络管理器从网元设备获取日志信息的方法 |
US8099571B1 (en) * | 2008-08-06 | 2012-01-17 | Netapp, Inc. | Logical block replication with deduplication |
CN104268068A (zh) * | 2014-09-24 | 2015-01-07 | 浪潮电子信息产业股份有限公司 | 一种服务器日志信息的获取方法 |
CN104678842A (zh) * | 2015-01-22 | 2015-06-03 | 深圳市新格林耐特通信技术有限公司 | 扩展broadcom交换芯片用途的系统及方法 |
CN104794033A (zh) * | 2015-04-29 | 2015-07-22 | 浪潮电子信息产业股份有限公司 | 一种基于bmc的cpu低频故障的定位方法及装置 |
CN106301845A (zh) * | 2015-05-30 | 2017-01-04 | 四川泰瑞创通讯技术股份有限公司 | 交换机日志记录模块 |
CN205320102U (zh) * | 2016-01-13 | 2016-06-15 | 浪潮集团有限公司 | 一种基于龙芯处理器的交换机 |
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 |
Also Published As
Publication number | Publication date |
---|---|
CN112015600B (zh) | 2024-07-09 |
CN112015600A (zh) | 2020-12-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9753828B1 (en) | Adaptive failure survivability in a storage system utilizing save time and data transfer upon power loss | |
US20170139605A1 (en) | Control device and control method | |
US9208124B2 (en) | Reset of processing core in multi-core processing system | |
WO2020238746A1 (zh) | 日志信息处理系统、日志信息处理方法及装置和交换机 | |
CN108833164B (zh) | 服务器控制方法、装置、电子设备及存储介质 | |
JP2004021556A (ja) | 記憶制御装置およびその制御方法 | |
WO2020238747A1 (zh) | 串口输出路径切换方法、系统及装置和交换机 | |
US7502369B2 (en) | High speed interface systems and methods | |
US8095820B2 (en) | Storage system and control methods for the same | |
US9575855B2 (en) | Storage apparatus and failure location identifying method | |
WO2018157605A1 (zh) | 一种集群文件系统中消息传输的方法及装置 | |
US9747149B2 (en) | Firmware dump collection from primary system dump device adapter | |
US8099634B2 (en) | Autonomic component service state management for a multiple function component | |
CN114600088A (zh) | 使用基板管理控制器的服务器状态监测系统和方法 | |
CN111522499A (zh) | 运维数据读取装置及其读取方法 | |
WO2024082471A1 (zh) | 节点间链路状态监测方法和装置 | |
US8880769B2 (en) | Management of target devices | |
CN114189429B (zh) | 一种服务器集群故障的监测系统、方法、装置及介质 | |
WO2024016864A1 (zh) | 处理器、获取信息的方法、单板及网络设备 | |
US9715477B2 (en) | Shared-bandwidth multiple target remote copy | |
CN110321199B (zh) | 一种共用数据变更的通知方法、装置、电子设备及介质 | |
JP2001346181A (ja) | データ記憶部共有装置およびプログラム記録媒体 | |
US9836364B2 (en) | In-band recovery mechanism for I/O modules in a data storage system | |
TWI462691B (zh) | 伺服器機櫃及其管理方法 | |
JP2019207546A (ja) | 情報処理システム、情報処理装置、および情報処理システムの制御方法 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 20814922 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 20814922 Country of ref document: EP Kind code of ref document: A1 |