TW201500919A - System and method of remote debugging BMC - Google Patents
System and method of remote debugging BMC Download PDFInfo
- Publication number
- TW201500919A TW201500919A TW102123334A TW102123334A TW201500919A TW 201500919 A TW201500919 A TW 201500919A TW 102123334 A TW102123334 A TW 102123334A TW 102123334 A TW102123334 A TW 102123334A TW 201500919 A TW201500919 A TW 201500919A
- Authority
- TW
- Taiwan
- Prior art keywords
- debugging
- bmc
- remote
- command
- abnormal
- Prior art date
Links
Landscapes
- Debugging And Monitoring (AREA)
Abstract
Description
本發明涉及一種基板管理控制器(Baseboard Management Controller,BMC)遠端調試系統及方法。The invention relates to a baseboard management controller (BMC) remote debugging system and method.
在伺服器系統中,BMC主要負責智慧監控基板,當BMC出現異常(比如系統無故死機)需要進行調試時,在實驗室通常工程師會透過調試串列埠查看BMC 固件(Firmware)的運行狀況,並分析異常的原因及得出結論。但是在已出貨的伺服器產品中,比如櫃式伺服器,通常Debug口並沒有焊接,而即使有焊接調試串列埠,也需要拆開機殼,連接調試線。在進行調試時,從用戶端發送智慧型平臺管理介面(Intelligent Platform Management Interface,IPMI)命令後,又需查看從調試串列埠回饋回來的資訊。這樣操作起來比較麻煩,同時打開主機殼時也有對產品造成人為損壞的風險。In the server system, the BMC is mainly responsible for the intelligent monitoring of the substrate. When the BMC is abnormal (such as the system crashes without a reason), the engineers usually check the running status of the BMC firmware (Firmware) through the debugging serial port. Analyze the cause of the anomaly and draw conclusions. However, in the server products that have been shipped, such as the cabinet server, the Debug port is usually not soldered, and even if there is a welding debug string, it is necessary to remove the boot case and connect the debug line. When debugging, after sending the Intelligent Platform Management Interface (IPMI) command from the client, you need to check the information returned from the debug serial port. This is cumbersome to operate, and there is also a risk of causing human damage to the product when the main casing is opened.
鑒於以上內容,有必要提供BMC遠端調試系統及方法,其可以使工作人員可以很方便的遠端診斷、調試及測試使用者的BMC系統。In view of the above, it is necessary to provide a BMC remote debugging system and method, which can enable a worker to conveniently diagnose, debug and test the user's BMC system at a remote location.
一種BMC遠端調試系統,該系統包括:接收模組,用於當BMC發生異常時,接收遠端終端發送的將所述BMC的調試方式切換成遠端調試的命令;獲取模組,用於獲取所述BMC所發生異常的異常資訊,並將該異常資訊寫入緩衝區一中;發送模組,用於將緩衝區一中的異常資訊透過網卡發送給遠端終端;所述接收模組,還用於接收遠端終端發送的針對所述異常資訊的調試命令,並將調試命令寫入緩衝區二中;執行模組,從緩衝區二中讀取針對所述異常資訊的調試命令,並執行該調試命令以調試BMC的異常。A BMC remote debugging system, the system includes: a receiving module, configured to receive a command sent by a remote terminal to switch the debugging mode of the BMC to a remote debugging when an abnormality occurs in the BMC; Acquiring the abnormal information of the abnormality of the BMC, and writing the abnormal information into the buffer one; the sending module is configured to send the abnormal information in the buffer one to the remote terminal through the network card; the receiving module The method is further configured to receive a debug command sent by the remote terminal for the abnormal information, and write the debug command into the buffer 2. The execution module reads the debug command for the abnormal information from the buffer 2. And execute the debug command to debug the BMC exception.
一種BMC遠端調試方法,該方法包括:接收步驟一,當BMC發生異常時,接收遠端終端發送的將所述BMC的調試方式切換成遠端調試的命令;獲取步驟,獲取所述BMC所發生異常的異常資訊,並將該異常資訊寫入緩衝區一中;發送步驟,將緩衝區一中的異常資訊透過網卡發送給遠端終端;接收步驟二,接收遠端終端發送的針對所述異常資訊的調試命令,並將調試命令寫入緩衝區二中;執行步驟,從緩衝區二中讀取針對所述異常資訊的調試命令,並執行該調試命令以調試BMC的異常。A BMC remote debugging method, the method includes: receiving step 1, when the BMC is abnormal, receiving a command sent by the remote terminal to switch the debugging mode of the BMC to the remote debugging; acquiring the step, acquiring the BMC Abnormal abnormal information occurs, and the abnormal information is written into the buffer one; the sending step sends the abnormal information in the buffer one to the remote terminal through the network card; and receiving step 2, receiving the remote terminal sending the The debug command of the exception information is written into the buffer 2; the execution step is to read the debug command for the exception information from the buffer 2, and execute the debug command to debug the BMC exception.
相較於習知技術,所述BMC遠端調試系統可以使伺服器系統端透過多工器快速地連接至BMC的串列埠一,其可以很方便的遠端控制BMC的串列埠調試。Compared with the prior art, the BMC remote debugging system can quickly connect the server system end to the serial port of the BMC through the multiplexer, which can conveniently control the serial port debugging of the BMC at a remote location.
1‧‧‧伺服器1‧‧‧Server
3‧‧‧BMC3‧‧‧BMC
34‧‧‧基板管理控制器遠端調試系統34‧‧‧Base management controller remote debugging system
340‧‧‧設置模組340‧‧‧Setup module
341‧‧‧判斷模組341‧‧‧Judgement module
342‧‧‧觸發模組342‧‧‧ Trigger Module
343‧‧‧接收模組343‧‧‧ receiving module
344‧‧‧獲取模組344‧‧‧Getting module
345‧‧‧發送模組345‧‧‧Send module
346‧‧‧執行模組346‧‧‧Executive Module
31‧‧‧串列埠31‧‧‧Chain
32‧‧‧網卡32‧‧‧ Network card
33‧‧‧緩衝區一33‧‧‧ Buffer one
35‧‧‧緩衝區二35‧‧‧ Buffer 2
36‧‧‧儲存器36‧‧‧Storage
37‧‧‧處理器37‧‧‧ Processor
4‧‧‧遠端終端4‧‧‧ Remote terminal
圖1是本發明基板管理控制器遠端調試系統的應用環境圖。1 is an application environment diagram of a remote debugging system of a substrate management controller of the present invention.
圖2是本發明基板管理控制器遠端調試系統的模組圖。2 is a block diagram of a remote debugging system of the substrate management controller of the present invention.
圖3是本發明基板管理控制器遠端調試方法的較佳實施例的流程圖。3 is a flow chart of a preferred embodiment of a method for remotely debugging a substrate management controller of the present invention.
如圖1所示,是本發明BMC遠端調試系統的應用環境圖。BMC遠端調試系統34應用於伺服器1中來調試BMC 3。所述伺服器1還包括串列埠31及網卡32。所述BMC 3包括緩衝區一33、緩衝區二35、儲存器36及處理器37。所述伺服器1透過所述網卡32與遠端終端4相通信。所述遠端終端4用於在BMC出現異常時,根據BMC異常資訊來發送調試命令。As shown in FIG. 1 , it is an application environment diagram of the BMC remote debugging system of the present invention. The BMC remote debug system 34 is applied to the server 1 to debug the BMC 3. The server 1 further includes a serial port 31 and a network card 32. The BMC 3 includes a buffer one 33, a buffer two 35, a storage 36, and a processor 37. The server 1 communicates with the remote terminal 4 via the network card 32. The remote terminal 4 is configured to send a debugging command according to the BMC abnormality information when an abnormality occurs in the BMC.
所述緩衝區一33用於存儲異常資訊,所述異常如BMC啟動到內核時突然死機、BMC 10啟動運行到某個線程突然死機、BMC 10運行時發生網路錯誤等。The buffer one 33 is used to store abnormal information, such as a sudden crash when the BMC is booted to the kernel, a BMC 10 startup run to a certain thread suddenly crashes, a network error occurs when the BMC 10 is running, and the like.
所述緩衝區二35用於存儲調試命令,所述調試命令為遠端終端4根據BMC發生異常時的所述異常資訊所發送的調試BMC的命令。The buffer 2 is used to store a debug command, and the debug command is a command of the debug BMC sent by the remote terminal 4 according to the abnormal information when the BMC is abnormal.
所述串列埠31用於BMC運行狀態的本地輸出的串列埠,用於在本地調試BMC所用。The serial port 31 is used for the serial output of the local output of the BMC operating state, and is used for locally debugging the BMC.
所述遠端終端4可以是臺式電腦、筆記本電腦、平板電腦等。The remote terminal 4 can be a desktop computer, a notebook computer, a tablet computer, or the like.
如圖2所示,是BMC遠端調試系統的模組圖。在本實施例中,所述BMC遠端調試系統34包括設置模組340、判斷模組341、觸發模組342、接收模組343、獲取模組344、發送模組345及執行模組346。本發明所稱的模組是指一種能夠被處理器37所執行並且能夠完成固定功能的一系列電腦程式段,其存儲在儲存器36中。在本實施例中,關於各模組的功能將在圖3的流程圖中具體描述。As shown in Figure 2, it is a module diagram of the BMC remote debugging system. In this embodiment, the BMC remote debugging system 34 includes a setting module 340, a determining module 341, a triggering module 342, a receiving module 343, an obtaining module 344, a sending module 345, and an executing module 346. The module referred to in the present invention refers to a series of computer programs that can be executed by the processor 37 and that can perform fixed functions, which are stored in the storage unit 36. In the present embodiment, the functions of the respective modules will be specifically described in the flowchart of FIG.
如圖3所示,是本發明BMC遠端調試方法的較佳實施例的流程圖。根據不同的需求,該流程圖中步驟的順序可以改變,某些步驟可以省略。As shown in FIG. 3, it is a flowchart of a preferred embodiment of the BMC remote debugging method of the present invention. The order of the steps in the flowchart may be changed according to different requirements, and some steps may be omitted.
步驟S10,設置模組340設置原始設備製造商(Original Equipment Manufacturer,OEM)命令來控制BMC 3的調試方式,所述調試方式包括串列埠調試及遠端調試。例如設置0代表“串列埠調試”,設置1代表“遠程調試”。BMC 3的默認調試方式是串列埠調試。In step S10, the setting module 340 sets an Original Equipment Manufacturer (OEM) command to control the debugging mode of the BMC 3. The debugging mode includes serial port debugging and remote debugging. For example, setting 0 means “serial debugging” and setting 1 means “remote debugging”. The default debugging mode of BMC 3 is serial debugging.
步驟S11,在BMC 3進行串列埠調試時,判斷模組341根據BMC 3的儲存器36的log日誌中是否記錄有異常資訊來判斷BMC是否發生異常。In the step S11, when the BMC 3 performs the serial port debugging, the determining module 341 determines whether the BMC is abnormal according to whether the abnormality information is recorded in the log log of the storage 36 of the BMC 3.
當BMC 3的儲存器36的log日誌中記錄了異常資訊,則BMC發生了異常,執行步驟S12;當BMC 3的儲存器36的log日誌中沒有記錄異常資訊,則BMC沒有發生異常,該流程結束。When the abnormality information is recorded in the log of the storage 36 of the BMC 3, the BMC has an abnormality, and the step S12 is performed. When the abnormality information is not recorded in the log of the storage 36 of the BMC 3, the BMC has no abnormality. End.
步驟S12,所述觸發模組342觸發遠端終端4發送OEM命令,以切換BMC 3的調試方式為遠端調試。In step S12, the trigger module 342 triggers the remote terminal 4 to send an OEM command to switch the debugging mode of the BMC 3 to remote debugging.
步驟S13,接收模組343接收遠端終端4發送的所述OEM命令來將所述BMC的調試方式切換至遠端調試上。在操作介面的表現上,可以在遠端終端4的顯示介面設置一個調試方式的選擇視窗,在該遠端終端4被觸發要發送OEM命令時,該選擇視窗出現,並接收客戶的選擇。In step S13, the receiving module 343 receives the OEM command sent by the remote terminal 4 to switch the debugging mode of the BMC to the remote debugging. In the performance of the operation interface, a debug mode selection window can be set in the display interface of the remote terminal 4, and when the remote terminal 4 is triggered to send an OEM command, the selection window appears and receives the customer's selection.
步驟S14,獲取模組344獲取所述BMC 3發生異常的異常資訊,並將該異常資訊寫入緩衝區一33中。In step S14, the acquisition module 344 acquires the abnormality information of the abnormality of the BMC 3, and writes the abnormality information into the buffer 33.
步驟S15,發送模組345將緩衝區一33中的異常資訊透過網卡32發送給遠端終端4。In step S15, the sending module 345 sends the abnormal information in the buffer 33 to the remote terminal 4 through the network card 32.
步驟S16,遠端終端4根據接收到的所述異常資訊來分析該異常的原因,並發送該異常的調試命令。針對每種異常資訊,對應至少一種調試命令。In step S16, the remote terminal 4 analyzes the cause of the abnormality according to the received abnormal information, and sends a debug command of the abnormality. Corresponding to at least one debug command for each exception information.
步驟S17,接收模組343利用網卡32接收遠端終端4發送的所述異常的調試命令,並將調試命令寫入緩衝區二35中。In step S17, the receiving module 343 receives the abnormal debugging command sent by the remote terminal 4 by using the network card 32, and writes the debugging command into the buffer 235.
步驟S18,執行模組346從緩衝區二35中讀取所述異常的調試命令,並執行該調試命令以調試BMC 3的異常。In step S18, the execution module 346 reads the abnormal debug command from the buffer two 35, and executes the debug command to debug the abnormality of the BMC 3.
在所述異常調試完畢後,所述觸發模組342觸發遠端終端4發送OEM命令將BMC 3的調試方式切換至串列埠調試上。After the abnormal debugging is completed, the trigger module 342 triggers the remote terminal 4 to send an OEM command to switch the debugging mode of the BMC 3 to the serial port debugging.
透過本發明,所述BMC遠端調試系統能在BMC發生異常時,將該異常的資訊發送給遠端終端,遠端終端根據該異常發送調試命令給BMC以調試BMC的異常。這樣就不需要串列埠來調試BMC,而且又能遠端診斷與調試,極大地方便了工作人員的系統開發、調試以及測試。According to the present invention, the BMC remote debugging system can send the abnormal information to the remote terminal when the BMC is abnormal, and the remote terminal sends a debugging command to the BMC according to the abnormality to debug the abnormality of the BMC. In this way, there is no need to serialize the BMC, and remote diagnosis and debugging can greatly facilitate the system development, debugging and testing of the staff.
最後應說明的是,以上實施例僅用以說明本發明的技術方案而非限制,儘管參照較佳實施例對本發明進行了詳細說明,本領域的普通技術人員應當理解,可以對本發明的技術方案進行修改或等同替換,而不脫離本發明技術方案的精神和範圍。It should be noted that the above embodiments are only for explaining the technical solutions of the present invention and are not intended to be limiting, and the present invention will be described in detail with reference to the preferred embodiments. Modifications or equivalents are made without departing from the spirit and scope of the invention.
無no
34‧‧‧基板管理控制器遠端調試系統 34‧‧‧Base management controller remote debugging system
340‧‧‧設置模組 340‧‧‧Setup module
341‧‧‧判斷模組 341‧‧‧Judgement module
342‧‧‧觸發模組 342‧‧‧ Trigger Module
343‧‧‧接收模組 343‧‧‧ receiving module
344‧‧‧獲取模組 344‧‧‧Getting module
345‧‧‧發送模組 345‧‧‧Send module
346‧‧‧執行模組 346‧‧‧Executive Module
Claims (10)
接收模組,用於當BMC發生異常時,接收遠端終端發送的將所述BMC的調試方式切換成遠端調試的命令;
獲取模組,用於獲取所述BMC所發生異常的異常資訊,並將該異常資訊寫入緩衝區一中;
發送模組,用於將緩衝區一中的異常資訊透過網卡發送給遠端終端;
所述接收模組,還用於接收遠端終端發送的針對所述異常資訊的調試命令,並將調試命令寫入緩衝區二中;
執行模組,從緩衝區二中讀取針對所述異常資訊的調試命令,並執行該調試命令以調試BMC的異常。A substrate management controller remote debugging system, the system comprising:
The receiving module is configured to receive, when the BMC is abnormal, a command sent by the remote terminal to switch the debugging mode of the BMC to the remote debugging.
The acquiring module is configured to obtain abnormal information about the abnormality of the BMC, and write the abnormal information into the buffer one;
a sending module, configured to send abnormal information in the buffer one to the remote terminal through the network card;
The receiving module is further configured to receive a debugging command sent by the remote terminal for the abnormal information, and write the debugging command into the buffer 2;
The execution module reads a debug command for the exception information from the buffer 2, and executes the debug command to debug the BMC exception.
接收步驟一,當BMC發生異常時,接收遠端終端發送的將所述BMC的調試方式切換成遠端調試的命令;
獲取步驟,獲取所述BMC所發生異常的異常資訊,並將該異常資訊寫入緩衝區一中;
發送步驟,將緩衝區一中的異常資訊透過網卡發送給遠端終端;
接收步驟二,接收遠端終端發送的針對所述異常資訊的調試命令,並將調試命令寫入緩衝區二中;
執行步驟,從緩衝區二中讀取針對所述異常資訊的調試命令,並執行該調試命令以調試BMC的異常。A substrate management controller remote debugging method, the method comprising:
Receiving step 1, when the BMC is abnormal, receiving a command sent by the remote terminal to switch the debugging mode of the BMC to the remote debugging;
Obtaining an exception information of the abnormality of the BMC, and writing the abnormal information to the buffer one;
Sending step, sending the abnormal information in the buffer one to the remote terminal through the network card;
Receiving step 2, receiving a debugging command sent by the remote terminal for the abnormal information, and writing the debugging command into the buffer 2;
Steps are executed to read a debug command for the exception information from the buffer 2, and execute the debug command to debug the BMC exception.
According to the remote debugging method of the baseboard management controller of the ninth application, the method further includes the step of triggering the second terminal. After the abnormal debugging of the BMC is completed, the remote terminal is triggered to send a command for switching the BMC debugging mode to serial debugging.
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310238912.8A CN104239174A (en) | 2013-06-17 | 2013-06-17 | BMC (baseboard management controller) remote debugging system and method |
Publications (1)
Publication Number | Publication Date |
---|---|
TW201500919A true TW201500919A (en) | 2015-01-01 |
Family
ID=52227297
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW102123334A TW201500919A (en) | 2013-06-17 | 2013-06-28 | System and method of remote debugging BMC |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN104239174A (en) |
TW (1) | TW201500919A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TWI571736B (en) * | 2015-03-06 | 2017-02-21 | 廣達電腦股份有限公司 | Method and system of automatic debug information collection |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106909362B (en) * | 2015-12-23 | 2020-10-27 | 研祥智能科技股份有限公司 | Method and device for generating BMC (baseboard management controller) firmware and method and device for starting BMC system |
CN107066360B (en) * | 2017-03-24 | 2021-02-19 | 联想(北京)有限公司 | Information transmission method and server |
CN109669829A (en) * | 2018-12-24 | 2019-04-23 | 浪潮电子信息产业股份有限公司 | A kind of diagnosis adjustment method, device and server based on BMC |
CN109947690B (en) * | 2019-03-18 | 2023-05-23 | 联想(北京)有限公司 | Control method and device and electronic equipment |
CN111526046A (en) * | 2020-04-14 | 2020-08-11 | 浪潮商用机器有限公司 | Method, device, equipment and storage medium for setting BMC (baseboard management controller) time |
-
2013
- 2013-06-17 CN CN201310238912.8A patent/CN104239174A/en active Pending
- 2013-06-28 TW TW102123334A patent/TW201500919A/en unknown
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TWI571736B (en) * | 2015-03-06 | 2017-02-21 | 廣達電腦股份有限公司 | Method and system of automatic debug information collection |
Also Published As
Publication number | Publication date |
---|---|
CN104239174A (en) | 2014-12-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
TW201500919A (en) | System and method of remote debugging BMC | |
US9569325B2 (en) | Method and system for automated test and result comparison | |
US9747192B2 (en) | Automated operating system installation on multiple drives | |
CN104320308B (en) | A kind of method and device of server exception detection | |
WO2017063505A1 (en) | Method for detecting hardware fault of server, apparatus thereof, and server | |
US20170097880A1 (en) | Method for monitoring server, monitoring device and monitoring system | |
US20110276829A1 (en) | Client server and method for monitoring function tests thereof | |
CN107111595B (en) | Method, device and system for detecting early boot errors | |
CN106598796A (en) | Method for testing hardware information stability in reboot | |
TW201828071A (en) | Switching device and method for detecting i2c bus | |
US8909989B2 (en) | Method for outputting power-on self test information, virtual machine manager, and processor | |
TW201423385A (en) | Test system and method for computer | |
US10922162B2 (en) | Capturing video data and serial data during an information handling system failure | |
CN110704228A (en) | Solid state disk exception handling method and system | |
US20100312541A1 (en) | Program test device and program | |
TW201516665A (en) | System and method for detecting system error of server | |
US8516311B2 (en) | System and method for testing peripheral component interconnect express switch | |
CN117707884A (en) | Method, system, equipment and medium for monitoring power management chip | |
CN116974804A (en) | Debugging method, device, equipment and storage medium for managing engine suspension | |
KR20150116020A (en) | Apparatus for computer diagnostics and recovery using wireless network and method thereof | |
CN113450865A (en) | Memory test system and test method thereof | |
TWI469576B (en) | Contacts client server and method for monitoring function test of the client server | |
TW201300801A (en) | Method and system for checking information of test equipment | |
TWI473469B (en) | Method for detecting network ports | |
TW201339831A (en) | Wireless rescue device, system and method for remote rescue in wireless communication using the wireless rescue device |