CN110417619A - A method, system and storage medium for recording abnormal state of a server - Google Patents
A method, system and storage medium for recording abnormal state of a server Download PDFInfo
- Publication number
- CN110417619A CN110417619A CN201910667292.7A CN201910667292A CN110417619A CN 110417619 A CN110417619 A CN 110417619A CN 201910667292 A CN201910667292 A CN 201910667292A CN 110417619 A CN110417619 A CN 110417619A
- Authority
- CN
- China
- Prior art keywords
- server
- vga signal
- receiving
- state
- instruction
- 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
Links
- 230000002159 abnormal effect Effects 0.000 title claims abstract description 72
- 238000000034 method Methods 0.000 title claims abstract description 38
- 238000007405 data analysis Methods 0.000 claims description 18
- 238000004590 computer program Methods 0.000 claims description 6
- 230000005856 abnormality Effects 0.000 claims description 2
- 230000005540 biological transmission Effects 0.000 claims 2
- 238000004458 analytical method Methods 0.000 abstract description 4
- 230000009286 beneficial effect Effects 0.000 abstract 1
- 230000000694 effects Effects 0.000 abstract 1
- 238000010586 diagram Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 239000003086 colorant Substances 0.000 description 1
- 230000006870 function Effects 0.000 description 1
Classifications
-
- 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
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0805—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
- H04L43/0817—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking functioning
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
- H04L67/025—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N7/00—Television systems
- H04N7/18—Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast
-
- 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/24—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks using dedicated network management hardware
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Multimedia (AREA)
- Environmental & Geological Engineering (AREA)
- Debugging And Monitoring (AREA)
Abstract
本发明公开了一种服务器异常状态的记录方法,应用于基板管理控制器BMC中,包括:接收基本输入输出系统BIOS发送的表示服务器状态异常的第一指令;在接收第一指令之后,获取服务器的视频图形阵列VGA信号并进行存储,通过录屏实现对服务器异常状态的记录。应用本申请的方案,可以获得更加具体的服务器的状态异常时的工作状态,也就有利于后续的故障原因分析以及故障解决。本申请还提供了一种服务器异常状态的记录系统及存储介质,具有相应技术效果。
The invention discloses a method for recording an abnormal state of a server, which is applied to a baseboard management controller BMC. The method includes: receiving a first instruction sent by a basic input and output system BIOS indicating an abnormal state of the server; after receiving the first instruction, obtaining a server The video graphics array VGA signal is stored, and the abnormal state of the server is recorded through the screen recording. By applying the solution of the present application, it is possible to obtain a more specific working state of the server when the state of the server is abnormal, which is beneficial to the subsequent analysis of the cause of the failure and the resolution of the failure. The present application also provides a recording system and a storage medium for an abnormal state of a server, which have corresponding technical effects.
Description
技术领域technical field
本发明涉及服务器技术领域,特别是涉及一种服务器异常状态的记录方法、系统及存储介质。The present invention relates to the technical field of servers, in particular to a method, system and storage medium for recording an abnormal state of a server.
背景技术Background technique
服务器在运行过程中,可能会出现异常状态,例如异常关机,重启等异常状态,在服务器处于异常状态时,虽然BIOS(Basic Input Output System,基本输入输出系统)能够获取到OS(operating system,操作系统)的相关中断信号,确定出服务器当前处于异常状态,但是,很难定位出具体原因,即无法获取到服务器异常状态时具体的工作状态。工作人员在后续进行数据分析时,由于无法得知故障发生时服务器具体的工作状态,便不利于故障原因的发现以及故障的解决。During the operation of the server, abnormal states may occur, such as abnormal shutdown, restart and other abnormal states. When the server is in an abnormal state, although the BIOS (Basic Input Output System, basic input output system) can obtain the OS (operating system, operation system) System) related interrupt signals to determine that the server is currently in an abnormal state, but it is difficult to locate the specific cause, that is, the specific working state of the server when the abnormal state cannot be obtained. During the subsequent data analysis, the staff cannot know the specific working status of the server when the fault occurs, which is not conducive to the discovery of the cause of the fault and the resolution of the fault.
综上所述,如何获得更加具体的服务器状态异常时的工作状态,是目前本领域技术人员急需解决的技术问题。To sum up, how to obtain a more specific working state when the server state is abnormal is a technical problem that those skilled in the art urgently need to solve.
发明内容SUMMARY OF THE INVENTION
本发明的目的是提供一种服务器异常状态的记录方法、系统及存储介质,以获得更加具体的服务器状态异常时的工作状态。The purpose of the present invention is to provide a method, system and storage medium for recording abnormal state of a server, so as to obtain a more specific working state when the server state is abnormal.
为解决上述技术问题,本发明提供如下技术方案:In order to solve the above-mentioned technical problems, the present invention provides the following technical solutions:
一种服务器异常状态的记录方法,应用于基板管理控制器BMC中,包括:A method for recording abnormal state of a server, applied to a baseboard management controller BMC, comprising:
接收基本输入输出系统BIOS发送的表示服务器状态异常的第一指令;receiving a first instruction that indicates an abnormal state of the server and is sent by the basic input output system BIOS;
在接收所述第一指令之后,获取服务器的视频图形阵列VGA信号并进行存储,通过录屏实现对所述服务器异常状态的记录。After receiving the first instruction, the VGA signal of the video graphics array of the server is acquired and stored, and the abnormal state of the server is recorded by recording the screen.
优选的,所述获取服务器的VGA信号并进行存储,包括:Preferably, the acquiring and storing the VGA signal of the server includes:
从与集成南桥PCH连接的ASPEED AST2500芯片中获取服务器的VGA信号并进行存储。Obtain the VGA signal of the server from the ASPEED AST2500 chip connected with the integrated south bridge PCH and store it.
优选的,在获取服务器的视频图形阵列VGA信号并进行存储,通过录屏实现对所述服务器异常状态的记录之后,还包括:Preferably, after acquiring and storing the video graphics array VGA signal of the server, and recording the abnormal state of the server by recording the screen, the method further includes:
接收数据分析指令;receive data analysis instructions;
在接收到所述数据分析指令之后将存储的VGA信号进行解析,并将解析出的视频显示在BMC WEB上。After receiving the data analysis instruction, the stored VGA signal is parsed, and the parsed video is displayed on the BMC WEB.
优选的,还包括:Preferably, it also includes:
在获取所述服务器的所述VGA信号并进行存储的过程中,当接收BIOS发送的表示所述服务器状态恢复正常的第二指令时,停止获取所述服务器的所述VGA信号。In the process of acquiring and storing the VGA signal of the server, when receiving the second instruction sent by the BIOS indicating that the state of the server has returned to normal, the acquisition of the VGA signal of the server is stopped.
优选的,还包括:Preferably, it also includes:
在获取所述服务器的所述VGA信号并进行存储的过程中,当无法获取到所述VGA信号的持续时长达到预设的第一时长时,停止获取所述服务器的所述VGA信号。In the process of acquiring and storing the VGA signal of the server, when the duration of the inability to acquire the VGA signal reaches a preset first duration, the acquisition of the VGA signal of the server is stopped.
优选的,还包括:Preferably, it also includes:
当获取所述服务器的所述VGA信号的持续时长达到预设的第二时长时,停止获取所述服务器的所述VGA信号。When the duration of acquiring the VGA signal of the server reaches a preset second duration, stop acquiring the VGA signal of the server.
优选的,还包括:Preferably, it also includes:
在接收所述第一指令之后,通过硬件显示装置进行所述服务器状态异常的提示,同时在BMC WEB上进行所述服务器状态异常的提示。After receiving the first instruction, a hardware display device is used to prompt the abnormal state of the server, and at the same time, the abnormal state of the server is prompted on the BMC WEB.
一种服务器异常状态的记录系统,应用于BMC中,包括:A system for recording abnormal status of servers, applied in BMC, including:
第一指令接收模块,用于接收BIOS发送的表示服务器状态异常的第一指令;a first instruction receiving module, configured to receive a first instruction sent by the BIOS and indicating that the server state is abnormal;
录屏模块,用于在接收所述第一指令之后,获取服务器的视频图形阵列VGA信号并进行存储,通过录屏实现对所述服务器异常状态的记录。The screen recording module is used for acquiring and storing the video graphics array VGA signal of the server after receiving the first instruction, and recording the abnormal state of the server by recording the screen.
优选的,还包括:Preferably, it also includes:
数据分析指令接收模块,用于接收数据分析指令;The data analysis instruction receiving module is used to receive the data analysis instruction;
数据显示模块,用于在接收到所述数据分析指令之后将存储的VGA信号进行解析,并将解析出的视频显示在BMC WEB上。The data display module is used to parse the stored VGA signal after receiving the data analysis instruction, and display the parsed video on the BMC WEB.
一种计算机可读存储介质,应用于BMC中,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现上述任一项所述的服务器异常状态的记录方法的步骤。A computer-readable storage medium, applied in the BMC, on which a computer program is stored, and when the computer program is executed by a processor, the method for recording the abnormal state of the server described in any one of the above is realized. step.
应用本发明实施例所提供的技术方案,在BIOS检测出服务器状态异常时,会主动向BMC发送表示服务器状态异常的第一指令,BMC接收第一指令之后,便会获取服务器的VGA信号并进行存储,VGA信号可以记录下服务器具体的工作状态,因此,BMC便可以通过录屏的方式实现对服务器异常状态下的工作状态的记录,有利于保存更多、更具体的服务器的状态信息。因此,本申请的方案可以获得更加具体的服务器的状态异常时的工作状态,也就有利于后续的故障原因分析以及故障解决。By applying the technical solution provided by the embodiment of the present invention, when the BIOS detects that the server state is abnormal, it will actively send a first instruction indicating that the server state is abnormal to the BMC. After the BMC receives the first instruction, it will obtain the VGA signal of the server and carry out Storage, the VGA signal can record the specific working status of the server. Therefore, BMC can record the working status of the server in an abnormal state by recording the screen, which is conducive to saving more and more specific server status information. Therefore, the solution of the present application can obtain a more specific working state of the server when the state of the server is abnormal, which is also conducive to subsequent failure cause analysis and failure resolution.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the embodiments of the present invention or the technical solutions in the prior art more clearly, the following briefly introduces the accompanying drawings that are used in the description of the embodiments or the prior art. Obviously, the drawings in the following description are only These are some embodiments of the present invention. For those of ordinary skill in the art, other drawings can also be obtained from these drawings without creative efforts.
图1为本发明中一种服务器异常状态的记录方法的实施流程图;Fig. 1 is an implementation flow chart of a method for recording abnormal state of a server in the present invention;
图2为本发明中一种服务器异常状态的记录系统的结构示意图。FIG. 2 is a schematic structural diagram of a system for recording an abnormal state of a server according to the present invention.
具体实施方式Detailed ways
本发明的核心是提供一种服务器异常状态的记录方法,可以获得更加具体的服务器的状态异常时的工作状态,也就有利于后续的故障原因分析以及故障解决。The core of the present invention is to provide a method for recording abnormal state of a server, which can obtain a more specific working state of the server when the state of the server is abnormal, which is also conducive to subsequent failure cause analysis and failure resolution.
为了使本技术领域的人员更好地理解本发明方案,下面结合附图和具体实施方式对本发明作进一步的详细说明。显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make those skilled in the art better understand the solution of the present invention, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments. Obviously, the described embodiments are only some, but not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
请参考图1,图1为本发明中一种服务器异常状态的记录方法的实施流程图,该服务器异常状态的记录方法应用于BMC(Baseboard Management Controller,基板管理控制器)中,可以包括以下步骤:Please refer to FIG. 1. FIG. 1 is an implementation flowchart of a method for recording an abnormal state of a server according to the present invention. The method for recording an abnormal state of a server is applied to a BMC (Baseboard Management Controller, baseboard management controller), and may include the following steps :
步骤S101:接收BIOS发送的表示服务器状态异常的第一指令。Step S101: Receive a first instruction sent by the BIOS indicating that the server state is abnormal.
BIOS可以获知服务器当前是否处于异常状态,具体的,本申请描述的服务器的异常状态指的是服务器的操作系统的异常状态,例如异常关机等。BIOS可以通过相关中断信号确定服务器当前处于异常状态。The BIOS can learn whether the server is currently in an abnormal state. Specifically, the abnormal state of the server described in this application refers to the abnormal state of the operating system of the server, such as abnormal shutdown. The BIOS can determine that the server is currently in an abnormal state through the relevant interrupt signal.
BIOS在确定出服务器处于异常状态时,会主动发送第一指令,BMC接收第一指令之后,便可以确定服务器状态异常。When the BIOS determines that the server is in an abnormal state, it will actively send the first command, and after the BMC receives the first command, it can determine that the server state is abnormal.
步骤S102:在接收第一指令之后,获取服务器的VGA信号并进行存储,通过录屏实现对服务器异常状态的记录。Step S102: After receiving the first instruction, obtain the VGA signal of the server and store it, and record the abnormal state of the server by recording the screen.
BMC在接收第一指令之后,确定服务器状态异常,便会主动获取服务器中的VGA(Video Graphics Array,视频图形阵列)信号,VGA信号可以体现出服务器具体的工作状态,即相关进程具体的执行情况。After receiving the first command, the BMC determines that the server state is abnormal, and will actively obtain the VGA (Video Graphics Array, video graphics array) signal in the server. The VGA signal can reflect the specific working state of the server, that is, the specific execution of the relevant process. .
BMC会通过录屏的方式对服务器的异常状态进行记录,需要说明的是,本申请描述的录屏,指的是BMC会持续获取VGA信号,从而在解析BMC获取到的VGA信号之后,工作人员便可以通过视频查看服务器发生异常时的具体的工作状态,而不是限定BMC或者服务器上必须设置有显示屏。The BMC will record the abnormal status of the server by recording the screen. It should be noted that the screen recording described in this application means that the BMC will continuously obtain the VGA signal, so that after parsing the VGA signal obtained by the BMC, the staff You can view the specific working status of the server when an abnormality occurs through video, instead of restricting the BMC or the server to have a display screen.
BMC获取服务器的VGA信号之后,可以先压缩再进行存储,存储位置也可以根据需要进行设定和选取,例如BMC可以将录好的视频压缩并存储在服务器的TF卡中。After the BMC obtains the VGA signal of the server, it can be compressed first and then stored. The storage location can also be set and selected as needed. For example, the BMC can compress and store the recorded video in the TF card of the server.
在获取VGA信号时,通常可以从ASPEED芯片中进行VGA信号的获取,例如一种具体实施方式中,步骤S102中描述的获取服务器的VGA信号并进行存储的操作可以具体为:从与PCH(Platform Controller Hub,集成南桥)连接的ASPEED AST2500芯片中获取服务器的VGA信号并进行存储。When acquiring the VGA signal, the VGA signal can usually be acquired from the ASPEED chip. For example, in a specific implementation manner, the operation of acquiring and storing the VGA signal of the server described in step S102 may be specifically: from and PCH (Platform The VGA signal of the server is obtained from the ASPEED AST2500 chip connected to the Controller Hub (integrated south bridge) and stored.
在本发明的一种具体实施方式中,在步骤S102之后,还可以包括:In a specific embodiment of the present invention, after step S102, it may further include:
接收数据分析指令;receive data analysis instructions;
在接收到数据分析指令之后将存储的VGA信号进行解析,并将解析出的视频显示在BMC WEB上。After receiving the data analysis command, analyze the stored VGA signal, and display the analyzed video on the BMC WEB.
该种实施方式中,为了便于工作人员进行数据分析,在接收到数据分析指令之后,可以将存储的VGA信号进行解析,并将解析出的视频显示在BMC WEB上,即工作人员可以采用任意设备登录BMC WEB,便可以方便地查看到视频数据,从而基于服务器异常状态时的具体的工作状态,对服务器进行故障分析。In this embodiment, in order to facilitate the staff to perform data analysis, after receiving the data analysis instruction, the stored VGA signal can be parsed, and the parsed video can be displayed on the BMC WEB, that is, the staff can use any device After logging in to the BMC WEB, you can easily view the video data, so as to analyze the failure of the server based on the specific working state of the server when it is in an abnormal state.
应用本发明实施例所提供的技术方案,在BIOS检测出服务器状态异常时,会主动向BMC发送表示服务器状态异常的第一指令,BMC接收第一指令之后,便会获取服务器的VGA信号并进行存储,VGA信号可以记录下服务器具体的工作状态,因此,BMC便可以通过录屏的方式实现对服务器异常状态下的工作状态的记录,有利于保存更多、更具体的服务器的状态信息。因此,本申请的方案可以获得更加具体的服务器的状态异常时的工作状态,也就有利于后续的故障原因分析以及故障解决。By applying the technical solution provided by the embodiment of the present invention, when the BIOS detects that the server state is abnormal, it will actively send a first instruction indicating that the server state is abnormal to the BMC. After the BMC receives the first instruction, it will obtain the VGA signal of the server and carry out Storage, the VGA signal can record the specific working status of the server. Therefore, BMC can record the working status of the server in an abnormal state by recording the screen, which is conducive to saving more and more specific server status information. Therefore, the solution of the present application can obtain a more specific working state of the server when the state of the server is abnormal, which is also conducive to subsequent failure cause analysis and failure resolution.
在本发明的一种具体实施方式中,还可以包括:In a specific embodiment of the present invention, it can also include:
在获取服务器的VGA信号并进行存储的过程中,当接收BIOS发送的表示服务器状态恢复正常的第二指令时,停止获取服务器的VGA信号。In the process of acquiring and storing the VGA signal of the server, when receiving the second instruction sent by the BIOS indicating that the server state is restored to normal, the acquisition of the VGA signal of the server is stopped.
可以理解的是,服务器发生部分异常情况之后会自动恢复为正常状态,例如通过重启恢复至正常状态,当服务器恢复至正常状态之后,便没必要再继续进行录屏,因此,该种实施方式中,BIOS在检测到服务器恢复正常时,会主动向BMC发送第二指令,BMC一旦接收到第二指令,便会停止VGA信号的获取,这样的实施方式可以避免获取到无效数据。It can be understood that the server will automatically return to the normal state after some abnormal conditions occur, for example, by restarting to return to the normal state. After the server returns to the normal state, there is no need to continue screen recording. Therefore, in this embodiment, , when the BIOS detects that the server is back to normal, it will actively send a second instruction to the BMC, and once the BMC receives the second instruction, it will stop acquiring the VGA signal. This implementation can avoid acquiring invalid data.
在本发明的一种具体实施方式中,还可以包括:In a specific embodiment of the present invention, it can also include:
在获取服务器的VGA信号并进行存储的过程中,当无法获取到VGA信号的持续时长达到预设的第一时长时,停止获取服务器的VGA信号。In the process of acquiring and storing the VGA signal of the server, when the duration of the inability to acquire the VGA signal reaches the preset first duration, the acquisition of the VGA signal of the server is stopped.
考虑到部分场合中,服务器会进入完全宕机、掉电的情况,BMC便无法再获取到VGA信号,因此,该种实施方式中,BMC在获取服务器的VGA信号并进行存储的过程中,当无法获取到VGA信号的持续时长达到预设的第一时长时,可以说明已经无法再获取到服务器的VGA信号,便可以停止VGA信号的获取,可以避免持续地查询是否能够获取VGA信号带来的资源消耗。第一时长的取值也可以根据需要进行设定和选取。Considering that in some occasions, the server will be completely shut down and powered down, and the BMC will no longer be able to obtain the VGA signal. Therefore, in this implementation manner, when the BMC obtains the VGA signal of the server and stores it, when the When the duration of the inability to acquire the VGA signal reaches the preset first duration, it means that the VGA signal of the server can no longer be acquired, and the acquisition of the VGA signal can be stopped, so as to avoid continuously querying whether the VGA signal can be acquired. LF. The value of the first duration can also be set and selected as required.
在本发明的一种具体实施方式中,还可以包括:In a specific embodiment of the present invention, it can also include:
当获取服务器的VGA信号的持续时长达到预设的第二时长时,停止获取服务器的VGA信号。When the duration of acquiring the VGA signal of the server reaches a preset second duration, stop acquiring the VGA signal of the server.
该种实施方式中,考虑到存储VGA信号的存储空间有限,持续获取过多的VGA信号可能会导致存储空间用尽,而通常情况下,服务器并不会过久地处于能够被获取到VGA信号的异常状态,即要么通过重启等方式恢复了正常,要么完全宕机,无法再被BMC获取到VGA信号,因此,该种实施方式中设置了第二时长。第二时长的具体数值可以根据实际情况进行设定和调整,例如设置为10分钟。当获取服务器的VGA信号的持续时长达到预设的第二时长时,便停止获取服务器的VGA信号,可以避免特殊场合中,服务器处于能够被BMC持续地获取到VGA信号的异常状态,而导致的存储空间用尽的情况的发生。In this implementation, considering that the storage space for storing VGA signals is limited, continuously acquiring too many VGA signals may cause the storage space to be exhausted, and in general, the server will not be in a state where VGA signals can be acquired for a long time. The abnormal state, that is, it is either restored to normal by means of restarting or the like, or completely shut down, and the VGA signal can no longer be acquired by the BMC. Therefore, a second duration is set in this implementation manner. The specific value of the second duration can be set and adjusted according to the actual situation, for example, set to 10 minutes. When the duration of acquiring the VGA signal of the server reaches the preset second duration, the acquisition of the VGA signal of the server is stopped, which can prevent the server from being in an abnormal state in which the BMC can continuously acquire the VGA signal in special occasions. Occurrence of running out of storage space.
在本发明的一种具体实施方式中,还可以包括:In a specific embodiment of the present invention, it can also include:
在接收第一指令之后,通过硬件显示装置进行服务器状态异常的提示,同时在BMCWEB上进行服务器状态异常的提示。After receiving the first instruction, the hardware display device is used to prompt the abnormal state of the server, and at the same time, the abnormal state of the server is prompted on the BMCWEB.
当BMC接收第一指令时,说明服务器处于异常状态,因此BMC可以通过硬件显示装置进行服务器状态异常的提示,例如指示灯闪烁,切换颜色等,有利于现场的工作人员及时发现该异常情况。同时,还会在BMC WEB上进行服务器状态异常的提示,有利于远程的工作人员在登录BMC WEB之后能够及时注意到该异常情况。When the BMC receives the first instruction, it means that the server is in an abnormal state. Therefore, the BMC can display the abnormal state of the server through the hardware display device, such as flashing indicator lights, switching colors, etc., which is helpful for the on-site staff to find the abnormal situation in time. At the same time, the abnormal status of the server will be prompted on the BMC WEB, which is helpful for remote staff to notice the abnormal situation in time after logging in to the BMC WEB.
相应于上面的方法实施例,本发明实施例还提供了一种服务器异常状态的记录系统,可与上文相互对应参照。Corresponding to the above method embodiments, the embodiments of the present invention further provide a system for recording abnormal status of a server, which can be referred to in the above.
参见图2所示,为本发明中一种服务器异常状态的记录系统的结构示意图,应用于BMC中,包括:Referring to Figure 2, it is a schematic structural diagram of a system for recording abnormal status of a server in the present invention, applied in BMC, including:
第一指令接收模块201,用于接收BIOS发送的表示服务器状态异常的第一指令;The first instruction receiving module 201 is configured to receive the first instruction sent by the BIOS and indicating that the server state is abnormal;
录屏模块202,用于在接收第一指令之后,获取服务器的视频图形阵列VGA信号并进行存储,通过录屏实现对服务器异常状态的记录。The screen recording module 202 is configured to acquire and store the VGA signal of the video graphics array of the server after receiving the first instruction, and record the abnormal state of the server by recording the screen.
在本发明的一种具体实施方式中,录屏模块202,具体用于:In a specific embodiment of the present invention, the screen recording module 202 is specifically used for:
在接收第一指令之后,从与集成南桥PCH连接的ASPEED AST2500芯片中获取服务器的VGA信号并进行存储,通过录屏实现对服务器异常状态的记录。After receiving the first instruction, obtain the VGA signal of the server from the ASPEED AST2500 chip connected to the integrated south bridge PCH and store it, and record the abnormal state of the server by recording the screen.
在本发明的一种具体实施方式中,还包括:In a specific embodiment of the present invention, it also includes:
数据分析指令接收模块,用于接收数据分析指令;The data analysis instruction receiving module is used to receive the data analysis instruction;
数据显示模块,用于在接收到数据分析指令之后将存储的VGA信号进行解析,并将解析出的视频显示在BMC WEB上。The data display module is used to parse the stored VGA signal after receiving the data analysis command, and display the parsed video on the BMC WEB.
在本发明的一种具体实施方式中,还可以包括:In a specific embodiment of the present invention, it can also include:
第一录屏停止模块,用于在获取服务器的VGA信号并进行存储的过程中,当接收BIOS发送的表示服务器状态恢复正常的第二指令时,停止获取服务器的VGA信号。The first screen recording stop module is configured to stop acquiring the VGA signal of the server when receiving the second instruction sent by the BIOS indicating that the server state is back to normal during the process of acquiring and storing the VGA signal of the server.
在本发明的一种具体实施方式中,还可以包括:In a specific embodiment of the present invention, it can also include:
第二录屏停止模块,用于在获取服务器的VGA信号并进行存储的过程中,当无法获取到VGA信号的持续时长达到预设的第一时长时,停止获取服务器的VGA信号。The second screen recording stop module is used to stop acquiring the VGA signal of the server when the duration of the inability to acquire the VGA signal reaches the preset first duration during the process of acquiring and storing the VGA signal of the server.
在本发明的一种具体实施方式中,还可以包括:In a specific embodiment of the present invention, it can also include:
第三录屏停止模块,用于当获取服务器的VGA信号的持续时长达到预设的第二时长时,停止获取服务器的VGA信号。The third screen recording stop module is configured to stop acquiring the VGA signal of the server when the duration of acquiring the VGA signal of the server reaches a preset second duration.
在本发明的一种具体实施方式中,还包括:In a specific embodiment of the present invention, it also includes:
提示模块,用于在接收第一指令之后,通过硬件显示装置进行服务器状态异常的提示,同时在BMC WEB上进行服务器状态异常的提示。The prompting module is used for prompting the abnormal state of the server through the hardware display device after receiving the first instruction, and simultaneously prompting the abnormal state of the server on the BMC WEB.
相应于上面的方法和系统实施例,本发明实施例还提供了一种计算机可读存储介质,应用于BMC中,计算机可读存储介质上存储有计算机程序,计算机程序被处理器执行时实现上述任一实施例中的服务器异常状态的记录方法的步骤,可与上文相互参照。这里所说的计算机可读存储介质包括随机存储器(RAM)、内存、只读存储器(ROM)、电可编程ROM、电可擦除可编程ROM、寄存器、硬盘、可移动磁盘、CD-ROM、或技术领域内所公知的任意其它形式的存储介质。Corresponding to the above method and system embodiments, an embodiment of the present invention also provides a computer-readable storage medium, which is applied in the BMC, and a computer program is stored on the computer-readable storage medium, and the computer program is executed by the processor. The steps of the method for recording an abnormal state of a server in any embodiment can be referred to above. The computer readable storage medium mentioned here includes random access memory (RAM), internal memory, read only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disks, removable disks, CD-ROMs, Or any other form of storage medium known in the technical field.
还需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括要素的过程、方法、物品或者设备中还存在另外的相同要素。It should also be noted that in this document, relational terms such as first and second are used only to distinguish one entity or operation from another, and do not necessarily require or imply those entities or operations There is no such actual relationship or order between them. 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 the process, method, article, or device that includes the element.
专业人员还可以进一步意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、计算机软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各示例的组成及步骤。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Professionals may further realize that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two, in order to clearly illustrate the possibilities of hardware and software. Interchangeability, the above description has generally described the components and steps of each example in terms of functionality. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may implement the described functionality using different methods for each particular application, but such implementations should not be considered beyond the scope of the present invention.
本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的技术方案及其核心思想。应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以对本发明进行若干改进和修饰,这些改进和修饰也落入本发明权利要求的保护范围内。The principles and implementations of the present invention are described herein by using specific examples, and the descriptions of the above embodiments are only used to help understand the technical solutions and core ideas of the present invention. It should be pointed out that for those skilled in the art, without departing from the principle of the present invention, several improvements and modifications can also be made to the present invention, and these improvements and modifications also fall within the protection scope of the claims of the present invention.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910667292.7A CN110417619A (en) | 2019-07-23 | 2019-07-23 | A method, system and storage medium for recording abnormal state of a server |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910667292.7A CN110417619A (en) | 2019-07-23 | 2019-07-23 | A method, system and storage medium for recording abnormal state of a server |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110417619A true CN110417619A (en) | 2019-11-05 |
Family
ID=68362583
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910667292.7A Pending CN110417619A (en) | 2019-07-23 | 2019-07-23 | A method, system and storage medium for recording abnormal state of a server |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110417619A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113220358A (en) * | 2021-04-25 | 2021-08-06 | 山东英信计算机技术有限公司 | Multi-platform BIOS information storage method, system and medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100039945A1 (en) * | 2008-08-12 | 2010-02-18 | Fujitsu Limited | Method and apparatus for determining an influenced range of a fault occurence in a network |
CN102082781A (en) * | 2009-11-27 | 2011-06-01 | 宏正自动科技股份有限公司 | Server management system and method thereof |
CN106815088A (en) * | 2015-11-27 | 2017-06-09 | 佛山市顺德区顺达电脑厂有限公司 | server and its debugging method |
CN107577594A (en) * | 2017-07-12 | 2018-01-12 | 捷开通讯(深圳)有限公司 | The abnormal method of record test, intelligent terminal and the device with store function |
-
2019
- 2019-07-23 CN CN201910667292.7A patent/CN110417619A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100039945A1 (en) * | 2008-08-12 | 2010-02-18 | Fujitsu Limited | Method and apparatus for determining an influenced range of a fault occurence in a network |
CN102082781A (en) * | 2009-11-27 | 2011-06-01 | 宏正自动科技股份有限公司 | Server management system and method thereof |
CN106815088A (en) * | 2015-11-27 | 2017-06-09 | 佛山市顺德区顺达电脑厂有限公司 | server and its debugging method |
CN107577594A (en) * | 2017-07-12 | 2018-01-12 | 捷开通讯(深圳)有限公司 | The abnormal method of record test, intelligent terminal and the device with store function |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113220358A (en) * | 2021-04-25 | 2021-08-06 | 山东英信计算机技术有限公司 | Multi-platform BIOS information storage method, system and medium |
CN113220358B (en) * | 2021-04-25 | 2023-08-08 | 山东英信计算机技术有限公司 | A multi-platform BIOS information storage method, system and medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2015039598A1 (en) | Fault locating method and device | |
CN111767184A (en) | A kind of fault diagnosis method, device, electronic equipment and storage medium | |
US20120102580A1 (en) | Out Of Band Vital Product Data Collection | |
CN110413432B (en) | Information processing method, electronic equipment and storage medium | |
CN114978883B (en) | Network wakeup management method and device, electronic equipment and storage medium | |
CN111581021B (en) | Application program starting abnormality repairing method, device, equipment and storage medium | |
US20250165348A1 (en) | Processor, method for obtaining information, board, and network device | |
US10108474B2 (en) | Trace capture of successfully completed transactions for trace debugging of failed transactions | |
WO2024230401A1 (en) | Baseboard management controller system operation method and apparatus, device, and non-volatile readable storage medium | |
CN108255506A (en) | A kind of data-updating method of BMC, device, equipment and readable storage medium storing program for executing | |
CN110362435B (en) | PCIE fault positioning method, device, equipment and medium for Purley platform server | |
TWI518680B (en) | Method for maintaining file system of computer system | |
CN115794182A (en) | Firmware out-of-band upgrading method and device, electronic equipment and storage medium | |
CN110417619A (en) | A method, system and storage medium for recording abnormal state of a server | |
CN115048147A (en) | Firmware upgrading method, device, equipment and storage medium | |
WO2024119787A1 (en) | Method and apparatus for amd server system installation power-off processing, device and medium | |
WO2024103897A1 (en) | Memory resource management method, system and apparatus, and medium | |
CN110362430A (en) | A kind of method being restarted automatically, system and the storage medium of server | |
CN111400094A (en) | A method, device, device and medium for restoring factory settings of a server system | |
CN115129529A (en) | Method, device and medium for detecting server startup fault | |
CN116701285A (en) | Remote access control apparatus, remote access control method, remote access control device, and computer readable medium | |
CN111475378B (en) | Monitoring method, device and equipment for Expander | |
JP2001331342A (en) | Method for displaying information processor error and recording medium with error display program recorded thereon | |
CN114356708A (en) | A device fault monitoring method, device, device and readable storage medium | |
CN106909489B (en) | Method and device for testing EventLog state |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20191105 |
|
RJ01 | Rejection of invention patent application after publication |