CN112905415B - A serial port log file acquisition method, device and related components - Google Patents
A serial port log file acquisition method, device and related components Download PDFInfo
- Publication number
- CN112905415B CN112905415B CN202110189150.1A CN202110189150A CN112905415B CN 112905415 B CN112905415 B CN 112905415B CN 202110189150 A CN202110189150 A CN 202110189150A CN 112905415 B CN112905415 B CN 112905415B
- Authority
- CN
- China
- Prior art keywords
- raid card
- log file
- serial port
- raid
- port log
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 46
- 238000004590 computer program Methods 0.000 claims description 11
- CQIZBIFTOGBKDB-UHFFFAOYSA-N 4-cyclohexyl-1-methyl-3,6-dihydro-2h-pyridine Chemical compound C1N(C)CCC(C2CCCCC2)=C1 CQIZBIFTOGBKDB-UHFFFAOYSA-N 0.000 claims description 4
- 101100076239 Drosophila melanogaster Mctp gene Proteins 0.000 claims description 4
- 238000004458 analytical method Methods 0.000 abstract description 12
- 230000002159 abnormal effect Effects 0.000 abstract description 4
- 230000009286 beneficial effect Effects 0.000 abstract description 4
- 238000003491 array Methods 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 238000012360 testing method Methods 0.000 description 2
- 238000012356 Product development Methods 0.000 description 1
- 230000005856 abnormality Effects 0.000 description 1
- 230000001934 delay Effects 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3003—Monitoring arrangements specially adapted to the computing system or computing system component being monitored
- G06F11/3037—Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a memory, e.g. virtual memory, cache
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/34—Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
- G06F11/3466—Performance evaluation by tracing or monitoring
- G06F11/3476—Data logging
-
- 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/42—Bus transfer protocol, e.g. handshake; Synchronisation
- G06F13/4282—Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/18—File system types
- G06F16/1805—Append-only file systems, e.g. using logs or journals to store data
- G06F16/1815—Journaling file systems
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Quality & Reliability (AREA)
- Computing Systems (AREA)
- Computer Hardware Design (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Mathematical Physics (AREA)
- Debugging And Monitoring (AREA)
Abstract
Description
技术领域technical field
本申请涉及服务器领域,特别涉及一种串口日志文件获取方法、装置及相关组件。The present application relates to the field of servers, and in particular, to a serial port log file acquisition method, device and related components.
背景技术Background technique
在当前服务器领域,RAID(Redundant Arrays of Independent Disks,磁盘阵列)卡应用普遍,用于创建磁盘阵列。然而研发测试报告维护阶段,当RAID卡正常运行时,RAID卡物理串口处于未连接状态,因此,当RAID卡出现问题引起服务器系统宕机时,需要额外连接RAID物理串口重新尝试复现问题来抓取串口日志文件,延误了问题分析时机且浪费大量时间在问题复现上。In the current server field, RAID (Redundant Arrays of Independent Disks, disk array) cards are widely used for creating disk arrays. However, in the maintenance phase of the R&D test report, when the RAID card is running normally, the physical serial port of the RAID card is not connected. Therefore, when a problem with the RAID card causes the server system to crash, it is necessary to connect an additional physical RAID serial port and try to reproduce the problem again. Taking the serial port log file delays the time for problem analysis and wastes a lot of time on problem recurrence.
因此,如何提供一种解决上述技术问题的方案是本领域技术人员目前需要解决的问题。Therefore, how to provide a solution to the above technical problem is a problem that those skilled in the art need to solve at present.
发明内容SUMMARY OF THE INVENTION
本申请的目的是提供一种串口日志文件获取方法、装置、电子设备及计算机可读存储介质,在系统异常时,第一时间从BMC中抓取对应的RAID卡的串口日志文件进行分析,快速解决问题。The purpose of this application is to provide a method, device, electronic device and computer-readable storage medium for obtaining serial port log files. When the system is abnormal, the serial port log file of the corresponding RAID card can be grabbed from the BMC at the first time for analysis, and the rapid Solve the problem.
为解决上述技术问题,本申请提供了一种串口日志文件获取方法,应用于BMC,包括:In order to solve the above technical problems, the present application provides a serial port log file acquisition method, which is applied to BMC, including:
根据各个RAID卡的终端id向各个所述RAID卡发送广播报文,每一所述RAID卡的终端id与PCIe总线地址对应;Send a broadcast message to each of the RAID cards according to the terminal id of each RAID card, and the terminal id of each of the RAID cards corresponds to the PCIe bus address;
获取各个所述RAID卡在接收到所述广播报文后发送的反馈报文,其中,所述反馈报文包括所述RAID卡的固件按记录周期记录的串口日志文件;Acquiring feedback messages sent by each of the RAID cards after receiving the broadcast messages, wherein the feedback messages include serial port log files recorded by the firmware of the RAID cards according to a recording period;
记录各个所述RAID卡对应的反馈报文。The feedback messages corresponding to each of the RAID cards are recorded.
优选的,所述反馈报文还包括所述RAID卡的控制器状态。Preferably, the feedback message further includes the controller status of the RAID card.
优选的,所述控制器状态包括厂商、固件版本、RAID配置状态以及RAID卡所连接的磁盘状态。Preferably, the controller status includes manufacturer, firmware version, RAID configuration status, and status of disks connected to the RAID card.
优选的,所述根据各个RAID卡的终端id向各个所述RAID卡发送广播报文的过程包括:Preferably, the process of sending a broadcast message to each of the RAID cards according to the terminal id of each RAID card includes:
按发送周期根据各个RAID卡的终端id向各个所述RAID卡发送广播报文。The broadcast message is sent to each of the RAID cards according to the terminal id of each RAID card according to the sending period.
优选的,该串口日志文件获取方法还包括:Preferably, the method for obtaining the serial port log file further includes:
通过所述RAID卡的目标串口日志文件分析所述RAID卡的状态;Analyze the status of the RAID card through the target serial port log file of the RAID card;
所述目标串口日志文件为距离当前时刻最近的n个发送周期获取到的串口日志文件,n为正整数。The target serial port log file is a serial port log file obtained in n sending cycles closest to the current moment, where n is a positive integer.
优选的,所述获取各个所述RAID卡在接收到所述广播报文后发送的反馈报文的过程包括:Preferably, the process of acquiring the feedback message sent by each of the RAID cards after receiving the broadcast message includes:
通过MCTP over PCIe协议获取各个所述RAID卡在接收到所述广播报文后发送的反馈报文。The feedback message sent by each of the RAID cards after receiving the broadcast message is acquired through the MCTP over PCIe protocol.
为解决上述技术问题,本申请还提供了一种串口日志文件获取装置,应用于BMC,包括:In order to solve the above-mentioned technical problems, the present application also provides a serial port log file acquisition device, which is applied to BMC, including:
发送模块,用于根据各个RAID卡的终端id向各个所述RAID卡发送广播报文,每一所述RAID卡的终端id与PCIe总线地址对应;a sending module, configured to send a broadcast message to each of the RAID cards according to the terminal id of each RAID card, and the terminal id of each of the RAID cards corresponds to the PCIe bus address;
接收模块,用于获取各个所述RAID卡在接收到所述广播报文后发送的反馈报文,其中,所述反馈报文包括所述RAID卡的固件记录的串口日志文件;a receiving module, configured to acquire feedback messages sent by each of the RAID cards after receiving the broadcast messages, wherein the feedback messages include serial port log files recorded by firmware of the RAID cards;
记录模块,用于记录各个所述RAID卡对应的反馈报文。The recording module is used for recording feedback messages corresponding to each of the RAID cards.
优选的,所述反馈报文还包括所述RAID卡的控制器状态。Preferably, the feedback message further includes the controller status of the RAID card.
为解决上述技术问题,本申请还提供了一种电子设备,包括:In order to solve the above-mentioned technical problems, the present application also provides an electronic device, including:
存储器,用于存储计算机程序;memory for storing computer programs;
处理器,用于执行所述计算机程序时实现如上文任意一项所述的串口日志文件获取方法的步骤。The processor is configured to implement the steps of the serial port log file acquisition method described in any one of the above when executing the computer program.
为解决上述技术问题,本申请还提供了一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现如上文任意一项所述的串口日志文件获取方法的步骤。In order to solve the above-mentioned technical problems, the present application also provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, any one of the above-mentioned methods is implemented. The steps of the serial port log file acquisition method.
本申请提供了一种串口日志文件获取方法,不需要额外连接RAID卡物理串口同构重新尝试复现问题来抓取串口日志文件,而是通过RAID卡的固件按记录周期记录该RAID卡的串口日志文件,当BMC向各个RAID卡发送广播报文后,各个RAID卡向BMC反馈包括串口日志文件的反馈报文,并由BMC对各个RAID卡的反馈报文进行存储,当系统异常时,可以第一时间从BMC中抓取对应的RAID卡的串口日志文件进行分析,以便快速解决问题。本申请还提供了一种串口日志文件获取装置、电子设备及计算机可读存储介质,具有和上述串口日志文件获取方法相同的有益效果。This application provides a method for obtaining serial port log files, which does not require additional connection to the physical serial port of a RAID card and re-attempts to reproduce the problem to capture the serial port log file, but records the serial port of the RAID card according to the recording cycle through the firmware of the RAID card. Log file. After the BMC sends broadcast packets to each RAID card, each RAID card sends feedback packets including serial log files to the BMC, and the BMC stores the feedback packets of each RAID card. When the system is abnormal, you can Grab the serial port log file of the corresponding RAID card from the BMC at the first time for analysis, so as to solve the problem quickly. The present application also provides a serial port log file obtaining device, an electronic device and a computer-readable storage medium, which have the same beneficial effects as the above-mentioned serial port log file obtaining method.
附图说明Description of drawings
为了更清楚地说明本申请实施例,下面将对实施例中所需要使用的附图做简单的介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to describe the embodiments of the present application more clearly, the following will briefly introduce the drawings that are used in the embodiments. Obviously, the drawings in the following description are only some embodiments of the present application, which are not relevant to ordinary skills in the art. As far as personnel are concerned, other drawings can also be obtained from these drawings on the premise of no creative work.
图1为本申请所提供的一种串口日志文件获取方法的步骤流程图;Fig. 1 is a flow chart of steps of a method for obtaining a serial port log file provided by the application;
图2为本申请所提供的一种串口日志文件获取装置的结构示意图。FIG. 2 is a schematic structural diagram of a serial port log file acquisition device provided by the present application.
具体实施方式Detailed ways
本申请的核心是提供一种串口日志文件获取方法、装置、电子设备及计算机可读存储介质,在系统异常时,第一时间从BMC中抓取对应的RAID卡的串口日志文件进行分析,快速解决问题。The core of the present application is to provide a serial port log file acquisition method, device, electronic device and computer-readable storage medium. When the system is abnormal, the serial port log file of the corresponding RAID card can be grabbed from the BMC for analysis at the first time. Solve the problem.
为使本申请实施例的目的、技术方案和优点更加清楚,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。In order to make the purposes, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments It is a part of the embodiments of the present application, but not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.
请参照图1,图1为本申请所提供的一种串口日志文件获取方法的步骤流程图,该串口日志文件获取方法包括:Please refer to FIG. 1, FIG. 1 is a flowchart of steps of a method for obtaining a serial port log file provided by the application, and the method for obtaining a serial port log file includes:
S101:根据各个RAID卡的终端id向各个RAID卡发送广播报文,每一RAID卡的终端id与PCIe总线地址对应;S101: Send a broadcast message to each RAID card according to the terminal id of each RAID card, and the terminal id of each RAID card corresponds to the PCIe bus address;
具体的,在执行本步骤之前,还包括服务器BIOS枚举PCIe(Peripheral ComponentInterconnect Express,高速串行计算机扩展总线标准)设备的操作,可以理解的是,RAID卡即为一种PCIe设备,枚举PCIe设备的操作的目的为确定系统中所有RAID卡。然后为RAID卡和BMC(Baseboard Management Controller,基板管理控制器)分配独立的PCIe总线地址,服务器系统管理引擎为RAID卡和BMC分配与其各自的PCIe总线地址对应的终端id,以便后续可以直接根据终端id对RAID卡进行管理,提高管理效率。分配好上述各个RAID卡和BMC的终端id后,BMC获取各个RAID卡的终端id,各个RAID卡也可以获取到BMC的终端id。执行完上述操作后,BMC通过各个终端id,向各个RAID卡发送广播报文,通过发送广播报文的方式,可以一次性通知到所有RAID卡,不需要向每一RAID卡单独发送数据,服务器流量负载低,相应的,各个RAID卡也可以根据BMC的终端id向BMC发送反馈报文。Specifically, before this step is performed, the server BIOS also includes the operation of enumerating PCIe (Peripheral Component Interconnect Express, high-speed serial computer expansion bus standard) devices. It can be understood that the RAID card is a PCIe device, and enumerating PCIe The purpose of the operation of the device is to identify all RAID cards in the system. Then assign independent PCIe bus addresses to the RAID card and BMC (Baseboard Management Controller), and the server system management engine assigns the RAID card and BMC with terminal ids corresponding to their respective PCIe bus addresses, so that the id manages RAID cards to improve management efficiency. After the terminal ids of each RAID card and the BMC are allocated, the BMC obtains the terminal id of each RAID card, and each RAID card can also obtain the terminal id of the BMC. After performing the above operations, the BMC sends broadcast messages to each RAID card through each terminal id. By sending a broadcast message, it can notify all RAID cards at one time without sending data to each RAID card separately. The traffic load is low. Correspondingly, each RAID card can also send feedback packets to the BMC according to the terminal id of the BMC.
本步骤中,可以在接收到发送指令后,再向各个RAID卡发送广播报文,也可以按发送周期向各个RAID卡发送广播报文,在此对发送广播报文的条件不做具体的限定。In this step, after receiving the sending instruction, the broadcast message may be sent to each RAID card, or the broadcast message may be sent to each RAID card according to the sending period, and the conditions for sending the broadcast message are not specifically limited here. .
S102:获取各个RAID卡在接收到广播报文后发送的反馈报文,其中,反馈报文包括RAID卡的固件按记录周期记录的串口日志文件;S102: Acquire feedback messages sent by each RAID card after receiving the broadcast message, where the feedback messages include serial port log files recorded by the firmware of the RAID cards according to the recording period;
作为一种优选的实施例,反馈报文还包括RAID卡的控制器状态。As a preferred embodiment, the feedback message further includes the controller status of the RAID card.
作为一种优选的实施例,控制器状态包括厂商、固件版本、RAID配置状态以及RAID卡所连接的磁盘状态。As a preferred embodiment, the controller status includes the manufacturer, the firmware version, the RAID configuration status, and the status of the disk connected to the RAID card.
可以理解的是,RAID卡的固件作为控制器核心,可以实时掌握RAID卡控制器状态,包括本身控制器状态,例如厂商、固件版本、RAID配置状态以及RAID卡所连接的磁盘状态。RAID卡固件按记录周期记录串口日志文件,RAID卡在接收到BMC发送的广播报文后,通过MCTP over PCIe协议,与BMC交互并发送相应的串口日志文件,从而实现无需连接RAID卡上的物理串口连接器即可保存串口日志文件到BMC。It can be understood that the firmware of the RAID card, as the core of the controller, can grasp the controller status of the RAID card in real time, including its own controller status, such as the manufacturer, firmware version, RAID configuration status, and the status of the disks connected to the RAID card. The firmware of the RAID card records the serial log files according to the recording period. After receiving the broadcast message sent by the BMC, the RAID card interacts with the BMC through the MCTP over PCIe protocol and sends the corresponding serial port log files, so as to realize that there is no need to connect the physical device on the RAID card. The serial port connector can save the serial port log file to the BMC.
其中,记录周期可以设置的相对较小,以实现实时记录串口日志文件的目的,日志记录的全面性和完整性,便于后期分析问题。Among them, the recording period can be set to be relatively small, in order to achieve the purpose of recording serial port log files in real time, and the comprehensiveness and integrity of log records are convenient for later analysis of problems.
S103:记录各个RAID卡对应的反馈报文。S103: Record the feedback message corresponding to each RAID card.
具体的,BMC记录各个RAID卡对应的反馈报文及该RAID卡的终端id,当系统出现异常时,可以第一时间抓取到对应的串口日志文件进行分析,并根据终端id进行定位,以便快速解决问题。Specifically, the BMC records the feedback messages corresponding to each RAID card and the terminal id of the RAID card. When an abnormality occurs in the system, it can grab the corresponding serial port log file for analysis, and locate it according to the terminal id, so that Solve problems quickly.
可见,本实施例中,不需要额外连接RAID卡物理串口同构重新尝试复现问题来抓取串口日志文件,而是通过RAID卡的固件按记录周期记录该RAID卡的串口日志文件,当BMC向各个RAID卡发送广播报文后,各个RAID卡向BMC反馈包括串口日志文件的反馈报文,并由BMC对各个RAID卡的反馈报文进行存储,当系统异常时,可以第一时间从BMC中抓取对应的RAID卡的串口日志文件进行分析,以便快速解决问题。It can be seen that in this embodiment, there is no need to connect the physical serial port of the RAID card to isomorphically re-try to reproduce the problem to capture the serial port log file, but the serial port log file of the RAID card is recorded by the firmware of the RAID card according to the recording cycle. When the BMC After sending broadcast messages to each RAID card, each RAID card sends feedback messages including serial port log files to the BMC, and the BMC stores the feedback messages of each RAID card. In order to quickly solve the problem, grab the serial log file of the corresponding RAID card for analysis.
在上述实施例的基础上:On the basis of the above-mentioned embodiment:
作为一种优选的实施例,根据各个RAID卡的终端id向各个RAID卡发送广播报文的过程包括:As a preferred embodiment, the process of sending a broadcast message to each RAID card according to the terminal id of each RAID card includes:
按发送周期根据各个RAID卡的终端id向各个RAID卡发送广播报文。Broadcast messages are sent to each RAID card according to the terminal id of each RAID card according to the sending period.
作为一种优选的实施例,该串口日志文件获取方法还包括:As a preferred embodiment, the serial port log file acquisition method further includes:
通过RAID卡的目标串口日志文件分析RAID卡的状态;Analyze the status of the RAID card through the target serial port log file of the RAID card;
目标串口日志文件为距离当前时刻最近的n个发送周期获取到的串口日志文件,n为正整数。The target serial port log file is the serial port log file obtained in the nearest n sending cycles from the current moment, where n is a positive integer.
具体的,BMC可以按发送周期向各个RAID发送广播报文,相应的,BMC在该发送周期中获取到RAID发送的反馈报文。考虑到距离当前时刻较近的串口日志文件更能体现问题所在,因此,当需要进行分析时,可以选取距离当前时刻最近的n个发送周期获取到的目标串口日志文件进行分析,提高效率。Specifically, the BMC may send a broadcast message to each RAID according to a sending cycle, and correspondingly, the BMC obtains the feedback message sent by the RAID in the sending cycle. Considering that the serial port log file closer to the current moment can better reflect the problem, when analysis is required, the target serial port log file obtained in the n sending cycles closest to the current moment can be selected for analysis to improve efficiency.
综上所述,采用本申请的方案,无需连接串口线即可保存RAID卡串口日志文件。当研发测试过程中、数据中心服务器运行中,出现RAID卡引起的系统宕机问题时,本申请可以第一时间分析串口日志文件,寻找根本原因以达到快速debug并解决问题,节省了大量复现问题以及抓取串口日志文件的时间,从而加快产品研发过程中的问题解决,若问题出现在客户端,也会及时解决问题,增加客户满意度。To sum up, with the solution of the present application, the serial port log file of the RAID card can be saved without connecting a serial port cable. When the system downtime caused by the RAID card occurs during the R&D test process and the data center server operation, this application can analyze the serial port log file at the first time, find the root cause, and quickly debug and solve the problem, saving a lot of recurrence. problems and the time to capture the serial port log file, thereby speeding up the problem solving in the product development process. If the problem occurs on the client side, it will also solve the problem in time and increase customer satisfaction.
请参照图2,图2为本申请所提供的一种串口日志文件获取装置的结构示意图,应用于BMC,包括:Please refer to FIG. 2. FIG. 2 is a schematic structural diagram of a serial port log file acquisition device provided by the application, applied to BMC, including:
发送模块1,用于根据各个RAID卡的终端id向各个RAID卡发送广播报文;The sending module 1 is used for sending broadcast messages to each RAID card according to the terminal id of each RAID card;
接收模块2,用于获取各个RAID卡在接收到广播报文后发送的反馈报文,其中,反馈报文包括RAID卡的固件记录的串口日志文件;The receiving
记录模块3,用于记录各个RAID卡对应的反馈报文。The
可见,本实施例中,不需要额外连接RAID卡物理串口同构重新尝试复现问题来抓取串口日志文件,而是通过RAID卡的固件按记录周期记录该RAID卡的串口日志文件,当BMC向各个RAID卡发送广播报文后,各个RAID卡向BMC反馈包括串口日志文件的反馈报文,并由BMC对各个RAID卡的反馈报文进行存储,当系统异常时,可以第一时间从BMC中抓取对应的RAID卡的串口日志文件进行分析,以便快速解决问题。It can be seen that in this embodiment, there is no need to connect the physical serial port of the RAID card to isomorphically re-try to reproduce the problem to capture the serial port log file, but the serial port log file of the RAID card is recorded by the firmware of the RAID card according to the recording cycle. When the BMC After sending broadcast messages to each RAID card, each RAID card sends feedback messages including serial port log files to the BMC, and the BMC stores the feedback messages of each RAID card. In order to quickly solve the problem, grab the serial log file of the corresponding RAID card for analysis.
作为一种优选的实施例,反馈报文还包括RAID卡的控制器状态。As a preferred embodiment, the feedback message further includes the controller status of the RAID card.
作为一种优选的实施例,控制器状态包括厂商、固件版本、RAID配置状态以及RAID卡所连接的磁盘状态。As a preferred embodiment, the controller status includes the manufacturer, the firmware version, the RAID configuration status, and the status of the disk connected to the RAID card.
作为一种优选的实施例,根据各个RAID卡的终端id向各个RAID卡发送广播报文的过程包括:As a preferred embodiment, the process of sending a broadcast message to each RAID card according to the terminal id of each RAID card includes:
按发送周期根据各个RAID卡的终端id向各个RAID卡发送广播报文。Broadcast messages are sent to each RAID card according to the terminal id of each RAID card according to the sending period.
作为一种优选的实施例,该串口日志文件获取装置还包括:As a preferred embodiment, the device for obtaining serial port log files further includes:
分析模块,用于通过RAID卡的目标串口日志文件分析RAID卡的状态;The analysis module is used to analyze the status of the RAID card through the target serial port log file of the RAID card;
目标串口日志文件为距离当前时刻最近的n个发送周期获取到的串口日志文件,n为正整数。The target serial port log file is the serial port log file obtained in the nearest n sending cycles from the current moment, where n is a positive integer.
作为一种优选的实施例,获取各个RAID卡在接收到广播报文后发送的反馈报文的过程包括:As a preferred embodiment, the process of acquiring the feedback message sent by each RAID card after receiving the broadcast message includes:
通过MCTP over PCIe协议获取各个RAID卡在接收到广播报文后发送的反馈报文。Obtain the feedback message sent by each RAID card after receiving the broadcast message through the MCTP over PCIe protocol.
另一方面,本申请还提供了一种电子设备,包括:On the other hand, the present application also provides an electronic device, comprising:
存储器,用于存储计算机程序;memory for storing computer programs;
处理器,用于执行计算机程序时实现如上文任意一项的串口日志文件获取方法的步骤。The processor is configured to implement the steps of the method for obtaining a serial port log file according to any one of the above when executing the computer program.
对于本申请所提供的一种电子设备的介绍请参照上述实施例,本申请在此不再赘述。For the introduction of an electronic device provided by the present application, please refer to the above-mentioned embodiments, which will not be repeated in the present application.
本申请所提供的一种电子设备具有和上述串口日志文件获取方法相同的有益效果。An electronic device provided by the present application has the same beneficial effects as the above-mentioned method for obtaining a serial port log file.
为解决上述技术问题,本申请还提供了一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,计算机程序被处理器执行时实现如上文任意一项的串口日志文件获取方法的步骤。In order to solve the above-mentioned technical problems, the application also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by the processor, the method for obtaining the serial port log file as described in any of the above is realized. step.
对于本申请所提供的一种计算机可读存储介质的介绍请参照上述实施例,本申请在此不再赘述。For the introduction of a computer-readable storage medium provided by the present application, please refer to the above-mentioned embodiments, which will not be repeated in the present application.
本申请所提供的一种计算机可读存储介质具有和上述串口日志文件获取方法相同的有益效果。The computer-readable storage medium provided by the present application has the same beneficial effects as the above-mentioned method for obtaining a serial port log file.
还需要说明的是,在本说明书中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的状况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should also be noted that, in this specification, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply these entities or operations. There is no such actual relationship or sequence between operations. Moreover, the terms "comprising", "comprising" or any other variation thereof are intended to encompass a non-exclusive inclusion such that a process, method, article or device that includes a list of elements includes not only those elements, but also includes not explicitly listed or other elements inherent to such a process, method, article or apparatus. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in a process, method, article, or device that includes the element.
对所公开的实施例的上述说明,使本领域专业技术人员能够实现或使用本申请。对这些实施例的多种修改对本领域的专业技术人员来说将是显而易见的,本文中所定义的一般原理可以在不脱离本申请的精神或范围的情况下,在其他实施例中实现。因此,本申请将不会被限制于本文所示的这些实施例,而是要符合与本文所公开的原理和新颖特点相一致的最宽的范围。The above description of the disclosed embodiments enables any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, this application is not intended to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110189150.1A CN112905415B (en) | 2021-02-19 | 2021-02-19 | A serial port log file acquisition method, device and related components |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110189150.1A CN112905415B (en) | 2021-02-19 | 2021-02-19 | A serial port log file acquisition method, device and related components |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112905415A CN112905415A (en) | 2021-06-04 |
CN112905415B true CN112905415B (en) | 2022-06-07 |
Family
ID=76123741
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110189150.1A Active CN112905415B (en) | 2021-02-19 | 2021-02-19 | A serial port log file acquisition method, device and related components |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112905415B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114003417B (en) * | 2021-09-23 | 2023-12-26 | 苏州浪潮智能科技有限公司 | Method, device and storage medium for realizing automatic fault transfer of RAID card |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2004259079A (en) * | 2003-02-27 | 2004-09-16 | Hitachi Ltd | Data processing system |
CN105223889A (en) * | 2015-10-13 | 2016-01-06 | 浪潮电子信息产业股份有限公司 | Method for automatically monitoring PMC RAID card log suitable for production line |
JP2017151511A (en) * | 2016-02-22 | 2017-08-31 | 日本電気株式会社 | Information processing device, operation log acquisition method and operation log acquisition program |
CN105955875A (en) * | 2016-05-04 | 2016-09-21 | 浪潮电子信息产业股份有限公司 | Device and method for monitoring logs of RAID cards |
CN108459932A (en) * | 2018-03-02 | 2018-08-28 | 郑州云海信息技术有限公司 | A kind of method, apparatus and equipment of management RAID card |
CN110704287B (en) * | 2019-08-31 | 2022-07-08 | 苏州浪潮智能科技有限公司 | Method, system and storage medium for collecting abnormal logs of RAID cards under Linux system |
CN111240879B (en) * | 2020-01-10 | 2022-11-25 | 苏州浪潮智能科技有限公司 | SAS card firmware log collection method, system, device and storage medium |
-
2021
- 2021-02-19 CN CN202110189150.1A patent/CN112905415B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN112905415A (en) | 2021-06-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
TWI229796B (en) | Method and system to implement a system event log for system manageability | |
CN111352779A (en) | A switching test method of AC power supply of MOC card and related components | |
CN104298583B (en) | Mainboard management system and method based on substrate management controller | |
CN102135932A (en) | Monitoring system and monitoring method thereof | |
CN115129249A (en) | SAS link topology identification management method, system, terminal and storage medium | |
CN112905415B (en) | A serial port log file acquisition method, device and related components | |
CN114911578A (en) | Storage system monitoring and fault collection method, device, terminal and storage medium | |
CN109471784A (en) | A NAS test system, method and computer readable storage medium | |
CN115858221A (en) | Management method and device of storage equipment, storage medium and electronic equipment | |
WO2020087956A1 (en) | Method, apparatus, device and system for capturing trace of nvme hard disc | |
CN115509978A (en) | A method, device, device, and storage medium for determining the physical location of an extrapolation device | |
CN113076210B (en) | Server fault diagnosis result notification method, system, terminal and storage medium | |
CN113656224A (en) | NVMe SSD hot plug test method, system, device and readable storage medium | |
CN116015986B (en) | Intelligent network card management method and related components | |
CN109885420B (en) | PCIe link fault analysis method, BMC and storage medium | |
CN105991322B (en) | A processing method and device for a collection adapter management system | |
CN115129566A (en) | Method, system, equipment and storage medium for verifying bandwidth performance of hard disk backplane | |
CN107643965A (en) | A kind of server diagnostic method, system, equipment and computer storage medium | |
CN107835106A (en) | A kind of method and system of checking ISCSI storage server stability | |
CN114595089A (en) | Hard disk remote diagnosis method, system, terminal and storage medium | |
CN112035301A (en) | Shell-based automatic server testing method and system | |
CN105634871A (en) | AXIe-based intelligent platform management system test instrument | |
CN112003727A (en) | A multi-node server power test method, system, terminal and storage medium | |
CN114281615B (en) | Automatic testing system and method for consistency of stored data | |
CN117971693B (en) | Software defect processing method, system and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |