TWI759926B - System and method for power on testing - Google Patents

System and method for power on testing Download PDF

Info

Publication number
TWI759926B
TWI759926B TW109137257A TW109137257A TWI759926B TW I759926 B TWI759926 B TW I759926B TW 109137257 A TW109137257 A TW 109137257A TW 109137257 A TW109137257 A TW 109137257A TW I759926 B TWI759926 B TW I759926B
Authority
TW
Taiwan
Prior art keywords
server
network card
test program
mode
control module
Prior art date
Application number
TW109137257A
Other languages
Chinese (zh)
Other versions
TW202217355A (en
Inventor
艾學庭
Original Assignee
英業達股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 英業達股份有限公司 filed Critical 英業達股份有限公司
Priority to TW109137257A priority Critical patent/TWI759926B/en
Application granted granted Critical
Publication of TWI759926B publication Critical patent/TWI759926B/en
Publication of TW202217355A publication Critical patent/TW202217355A/en

Links

Images

Landscapes

  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

A system and a method for power on testing are provided. The system includes a server and a smart network card. The method is control the server and the smart network card to execute a server test program and a network card test program respectively. When the server test program passes the test, the server is changed from a default first activation mode to a second activation mode. After the network card test program passes, compares whether the server is in the second activation mode, so as to change the server from the second activation mode to the first activation mode, and finally re-run the server test program and the network card test program simultaneously.

Description

開機測試系統及開機測試方法Boot test system and boot test method

本發明係關於一種開機測試系統及開機測試方法,尤其是指一種應用於伺服器與智慧網卡之開機測試系統及開機測試方法。The present invention relates to a start-up test system and a start-up test method, in particular to a start-up test system and a start-up test method applied to servers and smart network cards.

在伺服器的製程中,通常在伺服器製造完之後,還要經過循環測試的檢驗後才算完成整個製程,而現有的伺服器除了包含伺服器主機外,還會包含有智慧網卡,也就是伺服器的成品會包含有智慧網卡等元件,因此在進行伺服器之測試時,主要會針對伺服器主機與智慧網卡進行測試。In the manufacturing process of the server, usually after the server is manufactured, the whole process is not completed until after the inspection of the cyclic test, and the existing server not only includes the server host, but also includes a smart network card, that is, The finished product of the server will contain components such as smart network card, so when testing the server, the test will mainly be conducted on the server host and the smart network card.

然而,對於一般的伺服器主機與智慧網卡而言,伺服器主機與智慧網卡之作業系統(Operating System)各自獨立,但伺服器主機還會對插設於伺服器主機之智慧網卡提供電力。也因此在現有的測試環節,通常是透過伺服器之基板管理控制器(BMC)來控制兩者整體的開機測試動作。However, for a general server host and a smart NIC, the operating systems of the server host and the smart NIC are independent, but the server host also provides power to the smart NIC inserted in the server host. Therefore, in the existing test link, the overall startup test action of the two is usually controlled by the baseboard management controller (BMC) of the server.

在實際測試中,伺服器主機與智慧網卡都會各自獨立執行測試程式,而智慧網卡之測試程式在測試完成會停止,等到伺服器主機之測試程式測試完成後,再由BMC來控制整體重開機,進而使智慧網卡在重新啟動後重新執行測試程式。然而,若智慧網卡的測試時間較長,當伺服器主機測試完成之後,需要等待智慧網卡完成測試,相反的,若伺服器主機的測試時間較長,只有確保比智慧網卡的測試時間長即可。In the actual test, the server host and the smart network card will run the test program independently, and the test program of the smart network card will stop when the test is completed. After the test program of the server host is completed, the BMC will control the overall restart. This in turn causes the smart NIC to re-execute the test program after rebooting. However, if the test time of the smart NIC is long, after the server host test is completed, it is necessary to wait for the smart NIC to complete the test. On the contrary, if the test time of the server host is long, it is only necessary to ensure that the test time is longer than that of the smart NIC. .

承上所述,由於兩者的作業系統相互獨立,即兩者的測試程式也互不影響,所以當智慧網卡在測試過程中出現錯誤時,由於伺服器主機的測試程式並不會因為智慧網卡出現錯誤而停止,會繼續重開機而導致智慧網卡的測試程式重新啟動,使智慧網卡一直重新執行測試程式,而無法即時發現智慧網卡執行測試程式時所出現的錯誤。As mentioned above, since the operating systems of the two are independent of each other, that is, the test programs of the two do not affect each other, so when an error occurs during the test of the smart network card, the test program of the server host will not be affected by the smart network card. If there is an error and stop, it will continue to restart and cause the test program of the smart network card to restart, so that the smart network card will always re-run the test program, and the error that occurs when the smart network card is running the test program cannot be found immediately.

此外,由於現有的測試方式也不能保證兩者測試程式運行結束的時間長短,因此每次伺服器主機測試完成後,都需要增加休眠(sleep)時間來確保兩者是否都完成了測試,進而造成時間浪費。甚至當智慧網卡在某次測試中出現當機現象時,不僅不能保留當機現象,還會出現智慧網卡測試掉次數的現象,進而導致智慧網卡與伺服器主機的循環測試次數不同步。In addition, since the existing testing methods cannot guarantee the length of time for the two test programs to finish running, each time the server host test is completed, it is necessary to increase the sleep time to ensure whether the two have completed the test, which will cause Time wasting. Even when the smart NIC crashes in a certain test, not only the crash phenomenon cannot be preserved, but also the number of times the smart NIC is tested will be dropped, which will cause the cycle test times of the smart NIC and the server host to be out of sync.

有鑒於在先前技術中,現有的伺服器主機與智慧網卡之間,往往因為個別測試的時間長短不一定,且由於是透過伺服器主機之BMC進行整體的重開機,因此當智慧網卡之測試出現錯誤時,並無法及時發現而保留錯誤現象,或者伺服器主機需要浪費過多的時間來保證智慧網卡可以完成測試;緣此,本發明的主要目的在於提供一種開機測試系統與一種開機測試方法,以有效的避免浪費過多的等待時間,且能確保伺服器主機與智慧網卡之測試次數相同。In view of the fact that in the prior art, between the existing server host and the smart network card, the length of the individual test is often not the same, and because the overall restart is performed through the BMC of the server host, when the smart network card test occurs. When there is an error, the error phenomenon cannot be found in time and the error phenomenon is retained, or the server host needs to waste too much time to ensure that the smart network card can complete the test; for this reason, the main purpose of the present invention is to provide a boot test system and a boot test method to It can effectively avoid wasting too much waiting time, and can ensure that the server host and the smart network card have the same number of tests.

本發明為解決先前技術之問題,所採用的必要技術手段是提供一種開機測試方法,係應用於一伺服器與一智慧網卡,智慧網卡係通訊連結於伺服器,開機測試方法包含以下步驟(A)到步驟(D)。In order to solve the problem of the prior art, the necessary technical means adopted by the present invention is to provide a power-on test method, which is applied to a server and a smart network card, and the smart network card is connected to the server by communication. The power-on test method includes the following steps (A ) to step (D).

首先,步驟(A)是控制伺服器執行一伺服器測試程式,並在執行伺服器測試程式之一第一執行結果為合格時,將伺服器之一啟動控制模組由一預設之第一啟動模式修改為一第二啟動模式;第一啟動模式係在一重新供電狀態下,使伺服器保持在一關機狀態,第二啟動模式係在重新供電狀態下,使伺服器進入一開機狀態。First, step (A) is to control the server to execute a server test program, and when a first execution result of executing the server test program is qualified, activate a control module of the server from a preset first The start-up mode is modified to a second start-up mode; the first start-up mode is in a re-power state, keeping the server in a shutdown state, and the second start-up mode is in a re-power state, making the server enter a power-on state.

在執行步驟(A)時,步驟(B)是同時控制智慧網卡執行一網卡測試程式,並在執行網卡測試程式之一第二執行結果為合格時,比對伺服器之啟動控制模組是否處於第二啟動模式。When step (A) is executed, step (B) is to simultaneously control the smart network card to execute a network card test program, and when a second execution result of executing one of the network card test programs is qualified, compare whether the startup control module of the server is in Second startup mode.

接著,步驟(C)是當伺服器之啟動控制模組處於第二啟動模式時,智慧網卡控制啟動控制模組由第二啟動模式修改為預設之第一啟動模式。Next, in step (C), when the startup control module of the server is in the second startup mode, the smart network card controls the startup control module to modify the second startup mode to the preset first startup mode.

最後,步驟(D)是控制伺服器與智慧網卡同步重新執行伺服器測試程式與網卡測試程式。Finally, step (D) is to control the server and the smart network card to synchronize and re-execute the server test program and the network card test program.

在上述必要技術手段所衍生之一附屬技術手段中,步驟(A)在執行伺服器測試程式之第一執行結果為不合格時,停止執行伺服器測試程式。In an auxiliary technical means derived from the above-mentioned necessary technical means, in step (A), when the first execution result of executing the server test program is unqualified, the execution of the server test program is stopped.

在上述必要技術手段所衍生之一附屬技術手段中,步驟(B)在執行網卡測試程式之第二執行結果為不合格時,停止執行網卡測試程式。In an auxiliary technical means derived from the above-mentioned necessary technical means, in step (B), when the second execution result of executing the network card test program is unqualified, the execution of the network card test program is stopped.

在上述必要技術手段所衍生之一附屬技術手段中,步驟(C)在伺服器之啟動控制模組處於第一啟動模式時,停止執行網卡測試程式。In an auxiliary technical means derived from the above-mentioned necessary technical means, step (C) stops executing the network card test program when the start-up control module of the server is in the first start-up mode.

本發明所採用之另一必要技術手段是提供一種開機測試系統,包含一伺服器以及一智慧網卡。Another necessary technical means adopted by the present invention is to provide a boot test system, which includes a server and a smart network card.

伺服器包含一啟動控制模組以及一伺服器測試程式執行模組。啟動控制模組係具有一第一啟動模式與一第二啟動模式,第一啟動模式係在一重新供電狀態下,使伺服器保持在一關機狀態,第二啟動模式係在重新供電狀態下,使伺服器進入一開機狀態,且啟動控制模組係預設為第一啟動模式。The server includes a startup control module and a server test program execution module. The startup control module has a first startup mode and a second startup mode, the first startup mode is in a re-powering state to keep the server in a shutdown state, and the second startup mode is in a re-powering state, The server is brought into a power-on state, and the start-up control module is preset as the first start-up mode.

伺服器測試程式執行模組係電性連接於啟動控制模組,內建有一伺服器測試程式,用以執行伺服器測試程式而產生一第一執行結果,並在第一執行結果為合格時,控制啟動控制模組將第一啟動模式修改為第二啟動模式。The server test program execution module is electrically connected to the activation control module, and has a built-in server test program for executing the server test program to generate a first execution result, and when the first execution result is qualified, The control activation control module modifies the first activation mode to the second activation mode.

智慧網卡係可拆卸地安裝於伺服器,通訊連結於啟動控制模組,用以執行一網卡測試程式而產生一第二執行結果,並在第二執行結果為合格時,比對啟動控制模組是否處於第二啟動模式,當啟動控制模組處於第二啟動模式時,更控制啟動控制模組由第二啟動模式修改為預設之第一啟動模式,並進一步控制伺服器與智慧網卡同步重新執行伺服器測試程式與網卡測試程式。The smart network card is detachably installed on the server, and is communicated with the startup control module for executing a network card test program to generate a second execution result, and when the second execution result is qualified, compares the startup control module Whether it is in the second activation mode, when the activation control module is in the second activation mode, the activation control module is further controlled to be modified from the second activation mode to the default first activation mode, and the server and the smart network card are further controlled to synchronize and restart. Execute the server test program and the network card test program.

在上述必要技術手段所衍生之一附屬技術手段中,智慧網卡更包含一網卡測試模組以及一監控模組。網卡測試模組係內建有一網卡測試程式,並依據網卡測試程式進行初始化測試。監控模組係電性連接於網卡測試模組,並通訊連結於啟動控制模組,用以在執行網卡測試程式所產生之第二執行結果為合格時,比對啟動控制模組是否處於第二啟動模式,當啟動控制模組處於第二啟動模式時,更控制啟動控制模組由第二啟動模式修改為預設之第一啟動模式,並進一步控制伺服器與智慧網卡同步重新執行伺服器測試程式與網卡測試程式。此外,監控模組係以一網路線通訊連結於啟動控制模組。In an auxiliary technical means derived from the above-mentioned necessary technical means, the smart network card further includes a network card test module and a monitoring module. The network card test module has a built-in network card test program, and the initialization test is performed according to the network card test program. The monitoring module is electrically connected to the network card test module, and is communicatively connected to the activation control module, for comparing whether the activation control module is in the second execution result when the second execution result generated by the execution of the network card test program is qualified Startup mode, when the startup control module is in the second startup mode, the startup control module is further controlled to be modified from the second startup mode to the default first startup mode, and the server and the smart network card are further controlled to synchronize and re-execute the server test Program and network card test program. In addition, the monitoring module is connected to the activation control module through a network line communication.

在上述必要技術手段所衍生之一附屬技術手段中,啟動控制模組為一基板管理控制器。In an auxiliary technical means derived from the above-mentioned necessary technical means, the startup control module is a baseboard management controller.

本發明是利用伺服器測試程式執行模組與網卡測試模組同步執行伺服器測試程式與網卡測試程式,然後透過監控模組監控啟動控制模組之啟動模式變化,藉以在智慧網卡之網卡測試程式完成後,透過啟動控制模組之啟動模式變化來判斷伺服器測試程式是否合格,以進一步決定是否要同步重新執行伺服器測試程式與網卡測試程式;藉此,本發明確實可以有效的使伺服器與智慧網卡可以藉由同步重新執行而確保伺服器測試程式與網卡測試程式的循環測試次數一致,且當伺服器測試程式或網卡測試程式其中任一者之測試結果為不合格時,便會透過停止執行來保留當下的現象,進而避免測試出錯之現象因為整體之重新執行而被洗掉,有利於使用者進行除錯的作業。The present invention uses the server test program execution module and the network card test module to execute the server test program and the network card test program synchronously, and then monitors the change of the startup mode of the startup control module through the monitoring module, so as to perform the network card test program of the smart network card. After completion, it is judged whether the server test program is qualified through the change of the startup mode of the startup control module, so as to further determine whether to re-execute the server test program and the network card test program synchronously; thus, the present invention can indeed effectively make the server With the smart network card, the cycle test times of the server test program and the network card test program can be consistent through synchronization and re-execution, and when the test result of either the server test program or the network card test program is unqualified, it will be passed through Stop the execution to keep the current phenomenon, so as to avoid the phenomenon of test errors being washed out due to the re-execution of the whole, which is beneficial for the user to debug the operation.

本發明所採用的具體實施例,將藉由以下之實施例及圖式作進一步之說明。The specific embodiments adopted by the present invention will be further described by the following embodiments and drawings.

請參閱第一圖,第一圖係顯示本發明較佳實施例所提供之開機測試系統之系統示意圖。如第一圖所示,一種開機測試系統100包含一伺服器1以及一智慧網卡2。Please refer to the first figure. The first figure is a system schematic diagram of the power-on test system provided by the preferred embodiment of the present invention. As shown in the first figure, a boot test system 100 includes a server 1 and a smart network card 2 .

伺服器1包含一啟動控制模組11以及一伺服器測試程式執行模組12。啟動控制模組11係具有一第一啟動模式與一第二啟動模式,第一啟動模式係在一重新供電狀態下,使伺服器1保持在一關機狀態;第二啟動模式係在重新供電狀態下,使伺服器進入一開機狀態,且啟動控制模組11係預設為第一啟動模式;更詳細的說,第一啟動模式是指伺服器1在重新通電後還保持著關機狀態,即為電源關閉狀態,而第二啟動模式是指伺服器1在重新通電後會進入開機狀態,即為電源開啟狀態。在本實施例中,啟動控制模組11例如是基板管理控制器(BMC),而第一啟動模式與第二啟動模式則是寫在基板管理控制器內的啟動程式中。The server 1 includes a startup control module 11 and a server test program execution module 12 . The startup control module 11 has a first startup mode and a second startup mode, the first startup mode is in a re-powering state to keep the server 1 in a shutdown state; the second startup mode is in a re-powering state , the server enters a power-on state, and the start-up control module 11 is preset to the first start-up mode. It is the power-off state, and the second startup mode means that the server 1 will enter the power-on state after being powered on again, that is, the power-on state. In this embodiment, the startup control module 11 is, for example, a baseboard management controller (BMC), and the first startup mode and the second startup mode are written in startup programs in the BMC.

伺服器測試程式執行模組12係電性連接於啟動控制模組11,內建有一伺服器測試程式,用以執行伺服器測試程式而產生一第一執行結果,並在第一執行結果為合格時,控制啟動控制模組11將第一啟動模式修改為第二啟動模式。The server test program execution module 12 is electrically connected to the activation control module 11, and has a built-in server test program for executing the server test program to generate a first execution result, and the first execution result is qualified When , the control start-up control module 11 modifies the first start-up mode to the second start-up mode.

智慧網卡2係可拆卸地安裝於伺服器1,並且包含一網卡測試模組21以及一監控模組22。網卡測試模組21係內建有一網卡測試程式,並依據網卡測試程式進行初始化測試。監控模組22係電性連接於網卡測試模組21,並以一網路線通訊連結啟動控制模組11,用以在執行網卡測試程式所產生之第二執行結果為合格時,比對啟動控制模組11是否處於第二啟動模式,當啟動控制模組11處於第二啟動模式時,監控模組22更控制啟動控制模組11由第二啟動模式修改為預設之第一啟動模式,並進一步控制伺服器1與智慧網卡2同步重新執行伺服器測試程式與網卡測試程式。在本實施例中,網卡測試模組21為智慧網卡2之處理器,而監控模組22為智慧網卡2之主機板模組,且監控模組22是以RJ45連接埠透過網路線連接至啟動控制模組11之RJ45連接埠。The smart network card 2 is detachably installed on the server 1 and includes a network card testing module 21 and a monitoring module 22 . The network card test module 21 has a built-in network card test program, and performs an initialization test according to the network card test program. The monitoring module 22 is electrically connected to the network card test module 21, and is connected to the start-up control module 11 through a network line communication connection, so as to compare the start-up control when the second execution result generated by executing the network card test program is qualified Whether the module 11 is in the second activation mode, when the activation control module 11 is in the second activation mode, the monitoring module 22 further controls the activation control module 11 to modify the second activation mode to the preset first activation mode, and Further control the server 1 and the smart network card 2 to re-execute the server test program and the network card test program synchronously. In this embodiment, the network card test module 21 is the processor of the smart network card 2, and the monitoring module 22 is the motherboard module of the smart network card 2, and the monitoring module 22 is connected to the startup through the RJ45 port through the network cable. The RJ45 port of the control module 11.

請繼續參閱第二A圖與第二B圖,第二A圖與第二B圖係顯示本發明較佳實施例所提供之開機測試方法之步驟流程圖。Please continue to refer to the second diagram A and the second diagram B, the second diagram A and the second B diagram are the flowcharts showing the steps of the power-on test method provided by the preferred embodiment of the present invention.

如第一圖至第二B圖所示,一種開機測試方法,係應用於上述之伺服器1與智慧網卡2,且包含以下步驟。首先是同步執行步驟S101與步驟S201,步驟S101是控制伺服器1執行伺服器測試程式,而步驟S201是控制智慧網卡2執行網卡測試程式。更詳細的說,步驟S101是控制伺服器1之伺服器測試程式執行模組12執行內建之伺服器測試程式。而步驟S201是控制智慧網卡2之網卡測試模組21執行內建之網卡測試程式。As shown in Figures 1 to 2B, a power-on test method is applied to the above-mentioned server 1 and smart network card 2, and includes the following steps. First, step S101 and step S201 are executed synchronously. Step S101 controls the server 1 to execute the server test program, and step S201 controls the smart network card 2 to execute the network card test program. More specifically, step S101 is to control the server test program execution module 12 of the server 1 to execute the built-in server test program. And step S201 is to control the network card test module 21 of the smart network card 2 to execute the built-in network card test program.

在步驟S101執行完伺服器測試程式後,步驟S102會比對執行伺服器測試程式之第一執行結果是否為合格,若第一執行結果為合格時,便接著步驟S103,然而若第一執行結果並非合格時,則會接著步驟S103a。After the execution of the server test program in step S101, step S102 compares whether the first execution result of executing the server test program is qualified. If the first execution result is qualified, the process proceeds to step S103. If it is not qualified, it will go to step S103a.

承上所述,在步驟S102比對第一執行結果為合格時,步驟S103會將伺服器1之啟動控制模組11由預設之第一啟動模式修改為第二啟動模式;相反的,在步驟S102比對第一執行結果並非合格時,步驟S103a則會停止執行伺服器測試程式。其中,不管是接著進行步驟S103或者是進行步驟S103a,都是伺服器測試程式在產生第一執行結果後的接續執行動作。As mentioned above, when the first execution result is qualified in step S102, step S103 modifies the startup control module 11 of the server 1 from the preset first startup mode to the second startup mode; on the contrary, in step S103 When the first execution result is not qualified in step S102, step S103a stops executing the server test program. Wherein, whether step S103 or step S103a is performed next, it is a continuous execution action of the server test program after the first execution result is generated.

另一方面,在步驟S201之智慧網卡2之網卡測試模組21執行網卡測試程式後,步驟S202是比對執行網卡測試程式之第二執行結果是否為合格,若第二執行結果為合格時,便接著步驟S203,然而若第二執行結果並非合格時,則會接著步驟S203a。On the other hand, after the network card test module 21 of the smart network card 2 in step S201 executes the network card test program, step S202 is to compare whether the second execution result of executing the network card test program is qualified, if the second execution result is qualified, Then proceed to step S203, but if the second execution result is not qualified, proceed to step S203a.

承上所述,在步驟S202比對第二執行結果為合格時,步驟S203會進一步比對伺服器1之啟動控制模組11是否處於第二啟動模式;相反的,在步驟S202比對第二執行結果並非合格時,步驟S203a則會停止執行網卡測試程式。其中,不管是接著進行步驟S203或者是進行步驟S203a,都是網卡測試程式在產生第二執行結果後的接續執行動作。Continuing from the above, when the second execution result is qualified in step S202, step S203 further compares whether the startup control module 11 of the server 1 is in the second startup mode; on the contrary, in step S202, the second When the execution result is not qualified, step S203a will stop executing the network card test program. Wherein, whether step S203 is performed next or step S203a is performed next, it is a continuous execution action of the network card test program after the second execution result is generated.

緊接著,在步驟S203比對伺服器1之啟動控制模組11處於第二啟動模式時,會接著進行步驟S204與步驟S205,步驟S204是控制啟動控制模組11由第二啟動模式修改為預設之第一啟動模式,然後步驟S205是控制伺服器1與智慧網卡2同步重新執行伺服器測試程式與網卡測試程式;其中,步驟S205實際上是由監控模組22控制伺服器測試程式執行模組12重新執行伺服器測試程式,並同時控制網卡測試模組21重新執行網卡測試程式。Next, when it is compared in step S203 that the startup control module 11 of the server 1 is in the second startup mode, steps S204 and S205 will be performed. The first startup mode is set, and then step S205 is to control the server 1 and the smart network card 2 to synchronously re-execute the server test program and the network card test program; wherein, step S205 is actually controlled by the monitoring module 22. The server test program executes the mode. The group 12 re-executes the server test program, and simultaneously controls the network card test module 21 to re-execute the network card test program.

此外,當步驟S203比對伺服器1之啟動控制模組11並非處於第二啟動模式時,會接著步驟S204a來停止執行網卡測試程式。In addition, when step S203 compares that the startup control module 11 of the server 1 is not in the second startup mode, step S204a is followed to stop executing the network card test program.

請繼續參閱第三圖,第三圖係顯示在本發明較佳實施例中,伺服器測試程式與網卡測試程式對照於啟動控制模組之啟動模式及監控模組比對執行結果,從開始測試到同步重新執行測試之時序示意圖。Please continue to refer to the third figure. The third figure shows that in the preferred embodiment of the present invention, the server test program and the network card test program are compared with the startup mode of the startup control module and the execution result of the monitoring module. Schematic diagram of the timing to re-execute the test synchronously.

如第一圖至第三圖所示,啟動控制模組11之一啟動模式時序T1a是隨著伺服器測試程式之測試結果而變動,伺服器測試程式之一測試時序T2a則是在通過(合格)與不通過(不合格)之間做切換,而智慧網卡2之監控模組22是以一監控時序T3a不斷監控啟動控制模組11是否處於第二啟動模式,網卡測試模組21則是以一測試時序T4a則是在通過(合格)與不通過(不合格)之間做切換。As shown in Figures 1 to 3, a start-up mode sequence T1a of the start-up control module 11 varies with the test results of the server test program, and a test sequence T2a of the server test program is passed (passed) ) and fail (unqualified), and the monitoring module 22 of the smart network card 2 constantly monitors whether the startup control module 11 is in the second startup mode with a monitoring sequence T3a, and the network card test module 21 is in the second startup mode. A test sequence T4a switches between pass (pass) and fail (fail).

如上所述,當伺服器測試程式之測試完成時,測試時序T2a會從未通過變成通過,同時還會如啟動模式時序T1a所示的控制啟動控制模組11由預設之第一啟動模式修改為第二啟動模式;其中,監控模組22之監控時序T3a例如是每5秒詢問一次啟動控制模組11是否處於第二啟動模式,即以監控時序T3a每固定時距切換至「是」的方式呈現,因此當監控模組22偵測到啟動控制模組11之啟動模式時序T1a切換至第二啟動模式時,監控模組22之監控時序T3a會維持在「是」的判斷結果,也就是指啟動控制模組11是處於第二啟動模式下,而網卡測試模組21之測試時序T4a則是在測試通過後透過監控時序T3a比對到啟動控制模組11是處於第二啟動模式,然後會先控制啟動控制模組11之啟動模式時序T1a切換回第一啟動模式,然後再控制伺服器測試程式執行模組12與網卡測試模組21同步重新執行伺服器測試程式與網卡測試程式,意即使測試時序T2a與測試時序T4a同時恢復至「未通過」。As mentioned above, when the test of the server test program is completed, the test sequence T2a will change from fail to pass, and at the same time, the activation control module 11 will be modified from the preset first activation mode as shown in the activation mode sequence T1a. is the second activation mode; wherein, the monitoring sequence T3a of the monitoring module 22 is, for example, every 5 seconds to inquire whether the activation control module 11 is in the second activation mode, that is, the monitoring sequence T3a switches to “Yes” every fixed time interval. Therefore, when the monitoring module 22 detects that the startup mode sequence T1a of the startup control module 11 is switched to the second startup mode, the monitoring sequence T3a of the monitoring module 22 will maintain the judgment result of “Yes”, that is, It means that the startup control module 11 is in the second startup mode, and the test sequence T4a of the network card test module 21 is compared through the monitoring sequence T3a after the test is passed. The startup control module 11 is in the second startup mode, and then It first controls the startup mode sequence T1a of the startup control module 11 to switch back to the first startup mode, and then controls the server test program execution module 12 and the network card test module 21 to re-execute the server test program and the network card test program synchronously. Even if the test sequence T2a and the test sequence T4a are restored to "fail" at the same time.

此外,在本實施例中,主要是以啟動控制模組11之第一啟動模式與第二啟動模式作為伺服器測試程式是否合格(通過測試)的依據,但第一啟動模式或第二啟動模式並不會直接影響到伺服器1的開關機,舉例而言,當啟動控制模組11處於第一啟動模式時,監控模組22會判斷伺服器測試程式尚未通過測試,或者是測試結果不合格,進而停止執行網卡測試程式,而當啟動控制模組11處於第二啟動模式時,監控模組22會判斷伺服器測試程式合格,進而控制伺服器測試程式執行模組12重新執行伺服器測試程式,並同步控制網卡測試模組21重新執行網卡測試程式,以模擬伺服器1與智慧網卡2重新通電啟動的運作,因此並非真的重新通電,故啟動控制模組11之第一啟動模式與第二啟動模式只是作為判斷的依據。In addition, in this embodiment, the first activation mode and the second activation mode of the activation control module 11 are mainly used as the basis for whether the server test program is qualified (passed the test), but the first activation mode or the second activation mode It will not directly affect the power on and off of the server 1. For example, when the startup control module 11 is in the first startup mode, the monitoring module 22 will determine that the server test program has not passed the test, or the test result is unqualified. , and then stop executing the network card test program, and when the activation control module 11 is in the second activation mode, the monitoring module 22 will determine that the server test program is qualified, and then control the server test program execution module 12 to re-execute the server test program , and synchronously control the network card test module 21 to re-execute the network card test program to simulate the operation of restarting the server 1 and the smart network card 2, so it is not really restarting, so the first startup mode of the control module 11 is activated and the first The second start mode is only used as a basis for judgment.

請繼續參閱第四圖,第四圖係顯示在本發明較佳實施例中,伺服器測試程式與網卡測試程式對照於啟動控制模組之啟動模式及監控模組比對執行結果,從開始測試到伺服器測試程式發生錯誤之時序示意圖。Please continue to refer to the fourth figure. The fourth figure shows that in the preferred embodiment of the present invention, the server test program and the network card test program are compared to the startup mode of the startup control module and the execution result of the monitoring module. Schematic diagram of the timing until an error occurs in the server test program.

如第一圖至第四圖所示,若伺服器測試程式一直無法通過時,其測試時序T2b會保持在未通過,啟動控制模組11之啟動模式時序T1b也會一直保持在預設的第一啟動模式,而一直監控啟動控制模組11是否處於第二啟動模式的監控模組22之監控時序T3b也會因為偵測不到啟動控制模組11切換至第二啟動模式而持續進行監控;因此,當網卡測試模組21之測試時序T4b測試通過後,會因為監控模組22未偵測到啟動控制模組11切換至第二啟動模式而不去控制啟動控制模組11與網卡測試模組21同步重新執行伺服器測試程式與網卡測試程式,進而停留在通過狀態下,藉以讓使用者可以得知伺服器測試程式出現錯誤現象。As shown in Figures 1 to 4, if the server test program fails to pass all the time, the test sequence T2b will remain as failed, and the activation mode sequence T1b of the activation control module 11 will also remain at the preset No. 1 a startup mode, and the monitoring sequence T3b of the monitoring module 22 that has been monitoring whether the startup control module 11 is in the second startup mode will continue to monitor because the startup control module 11 cannot be detected to switch to the second startup mode; Therefore, when the test sequence T4b of the network card test module 21 passes the test, the monitoring module 22 will not control the start-up control module 11 and the network card test module because the monitoring module 22 does not detect that the start-up control module 11 is switched to the second start-up mode. The group 21 re-executes the server test program and the network card test program synchronously, and then stays in the pass state, so that the user can know that there is an error in the server test program.

綜上所述,由於本發明是利用伺服器測試程式執行模組與網卡測試模組同步執行伺服器測試程式與網卡測試程式,然後透過監控模組監控啟動控制模組之啟動模式變化,藉以在智慧網卡之網卡測試程式完成後,透過啟動控制模組之啟動模式變化來判斷伺服器測試程式是否合格,以進一步決定是否要同步重新執行伺服器測試程式與網卡測試程式;藉此,本發明確實可以有效的使伺服器與智慧網卡可以藉由同步重新執行而確保伺服器測試程式與網卡測試程式的循環測試次數一致,且當伺服器測試程式或網卡測試程式其中任一者之測試結果為不合格時,便會透過停止執行來保留當下的現象,進而避免測試出錯之現象因為整體之重新執行而被洗掉,有利於使用者進行除錯的作業。To sum up, because the present invention uses the server test program execution module and the network card test module to execute the server test program and the network card test program synchronously, and then monitors the change of the startup mode of the startup control module through the monitoring module, so as to achieve After the network card test program of the smart network card is completed, it is judged whether the server test program is qualified by changing the startup mode of the activation control module, so as to further determine whether to re-execute the server test program and the network card test program synchronously; It can effectively make the server and the smart network card re-execute synchronously to ensure that the cycle test times of the server test program and the network card test program are consistent, and when the test result of either the server test program or the network card test program is inconsistent. When it is qualified, the current phenomenon will be retained by stopping the execution, so as to avoid the phenomenon of test errors being washed out due to the re-execution of the whole, which is beneficial for the user to debug the operation.

藉由以上較佳具體實施例之詳述,係希望能更加清楚描述本發明之特徵與精神,而並非以上述所揭露的較佳具體實施例來對本發明之範疇加以限制。相反地,其目的是希望能涵蓋各種改變及具相等性的安排於本發明所欲申請之專利範圍的範疇內。Through the detailed description of the preferred embodiments above, it is hoped that the features and spirit of the present invention can be described more clearly, and the scope of the present invention is not limited by the preferred embodiments disclosed above. On the contrary, the intention is to cover various modifications and equivalent arrangements within the scope of the claimed scope of the present invention.

100:開機測試系統 1:伺服器 11:啟動控制模組 12:伺服器測試程式執行模組 2:智慧網卡 21:網卡測試模組 22:監控模組 T1a,T1b:啟動模式時序 T2a,T2b:測試時序 T3a,T3b:監控時序 T4a,T4b:測試時序100: Boot test system 1: Server 11: Start the control module 12: Server test program execution module 2: Smart NIC 21: Network card test module 22: Monitoring module T1a, T1b: Boot Mode Timing T2a, T2b: Test timing T3a, T3b: monitor timing T4a, T4b: Test timing

第一圖係顯示本發明較佳實施例所提供之開機測試系統之系統示意圖; 第二A圖與第二B圖係顯示本發明較佳實施例所提供之開機測試方法之步驟流程圖; 第三圖係顯示在本發明較佳實施例中,伺服器測試程式與網卡測試程式對照於啟動控制模組之啟動模式及監控模組比對執行結果,從開始測試到同步重新執行測試之時序示意圖;以及 第四圖係顯示在本發明較佳實施例中,伺服器測試程式與網卡測試程式對照於啟動控制模組之啟動模式及監控模組比對執行結果,從開始測試到伺服器測試程式發生錯誤之時序示意圖。 The first figure is a system schematic diagram showing the boot test system provided by the preferred embodiment of the present invention; The second diagram A and the second diagram B are flow charts showing the steps of the startup test method provided by the preferred embodiment of the present invention; The third figure shows in the preferred embodiment of the present invention, the server test program and the network card test program are compared to the startup mode of the startup control module and the execution result of the monitoring module, and the sequence from the start of the test to the synchronous re-execution of the test schematic diagram; and The fourth figure shows that in the preferred embodiment of the present invention, the server test program and the network card test program are compared to the activation mode of the activation control module and the execution result of the monitoring module, from the start of the test to the occurrence of an error in the server test program timing diagram.

100:開機測試系統 100: Boot test system

1:伺服器 1: Server

11:啟動控制模組 11: Start the control module

12:伺服器測試程式執行模組 12: Server test program execution module

2:智慧網卡 2: Smart NIC

21:網卡測試模組 21: Network card test module

22:監控模組 22: Monitoring module

Claims (8)

一種開機測試方法,係應用於一伺服器與一智慧網卡,該智慧網卡係通訊連結於該伺服器,該開機測試方法包含以下步驟: (A)  控制該伺服器執行一伺服器測試程式,並在執行該伺服器測試程式之一第一執行結果為合格時,將該伺服器之一啟動控制模組由一預設之第一啟動模式修改為一第二啟動模式;該第一啟動模式係在一重新供電狀態下,使該伺服器保持在一關機狀態,該第二啟動模式係在該重新供電狀態下,使該伺服器進入一開機狀態; (B)  在執行該步驟(A)時,同時控制該智慧網卡執行一網卡測試程式,並在執行該網卡測試程式之一第二執行結果為合格時,比對該伺服器之該啟動控制模組是否處於該第二啟動模式; (C)  當該伺服器之該啟動控制模組處於該第二啟動模式時,該智慧網卡控制該啟動控制模組由該第二啟動模式修改為預設之該第一啟動模式;以及 (D)  控制該伺服器與該智慧網卡同步重新執行該伺服器測試程式與該網卡測試程式。 A boot test method is applied to a server and a smart network card, the smart network card is connected to the server in communication, and the boot test method includes the following steps: (A) Control the server to execute a server test program, and when a first execution result of executing the server test program is qualified, an activation control module of the server is activated from a preset first The mode is modified to a second start-up mode; the first start-up mode is in a re-power state, keeping the server in a shutdown state, and the second start-up mode is in the re-power state, making the server enter a power-on state; (B) When executing step (A), control the smart network card to execute a network card test program at the same time, and when a second execution result of executing the network card test program is qualified, compare the startup control mode of the server whether the group is in this second activation mode; (C) when the startup control module of the server is in the second startup mode, the smart network card controls the startup control module to modify the second startup mode to the default first startup mode; and (D) Control the server and the smart network card to synchronize and re-execute the server test program and the network card test program. 如請求項1所述之開機測試方法,其中,步驟(A)在執行該伺服器測試程式之該第一執行結果為不合格時,停止執行該伺服器測試程式。The power-on test method according to claim 1, wherein in step (A), when the first execution result of executing the server test program is unqualified, the execution of the server test program is stopped. 如請求項1所述之開機測試方法,其中,步驟(B)在執行該網卡測試程式之該第二執行結果為不合格時,停止執行該網卡測試程式。The boot test method according to claim 1, wherein in step (B), when the second execution result of executing the network card test program is unqualified, stop executing the network card test program. 如請求項1所述之開機測試方法,其中,步驟(C)在該伺服器之該啟動控制模組處於該第一啟動模式時,停止執行該網卡測試程式。The boot test method according to claim 1, wherein, in step (C), when the boot control module of the server is in the first boot mode, stop executing the network card test program. 一種開機測試系統,包含: 一伺服器,包含: 一啟動控制模組,係具有一第一啟動模式與一第二啟動模式,該第一啟動模式係在一重新供電狀態下,使該伺服器保持在一關機狀態,該第二啟動模式係在該重新供電狀態下,使該伺服器進入一開機狀態,且該啟動控制模組係預設為該第一啟動模式;以及 一伺服器測試程式執行模組,係電性連接於該啟動控制模組,內建有一伺服器測試程式,用以執行該伺服器測試程式而產生一第一執行結果,並在該第一執行結果為合格時,控制該啟動控制模組將該第一啟動模式修改為該第二啟動模式;以及 一智慧網卡,係可拆卸地安裝於該伺服器,通訊連結於該啟動控制模組,用以執行一網卡測試程式而產生一第二執行結果,並在該第二執行結果為合格時,比對該啟動控制模組是否處於該第二啟動模式,當該啟動控制模組處於該第二啟動模式時,更控制該啟動控制模組由該第二啟動模式修改為預設之該第一啟動模式,並進一步控制該伺服器與該智慧網卡同步重新執行該伺服器測試程式與該網卡測試程式。 A startup test system, comprising: A server, including: A start-up control module has a first start-up mode and a second start-up mode, the first start-up mode keeps the server in a shutdown state under a power-on state, and the second start-up mode is at In the re-powering state, the server is brought into a power-on state, and the startup control module is preset to the first startup mode; and A server test program execution module is electrically connected to the activation control module and has a built-in server test program for executing the server test program to generate a first execution result, which is executed in the first execution When the result is qualified, controlling the activation control module to modify the first activation mode to the second activation mode; and A smart network card is detachably installed on the server, communicated with the activation control module, and used for executing a network card test program to generate a second execution result, and when the second execution result is qualified, compare the Whether the activation control module is in the second activation mode, when the activation control module is in the second activation mode, the activation control module is further controlled to be modified from the second activation mode to the preset first activation mode, and further control the server and the smart network card to synchronize and re-execute the server test program and the network card test program. 如請求項5所述之開機測試系統,其中,該智慧網卡更包含: 一網卡測試模組,係內建有該網卡測試程式,並依據該網卡測試程式進行初始化測試而產生該第二執行結果;以及 一監控模組,係電性連接於該網卡測試模組,並通訊連結於該啟動控制模組,用以在執行該網卡測試程式所產生之該第二執行結果為合格時,比對該啟動控制模組是否處於該第二啟動模式,當該啟動控制模組處於該第二啟動模式時,更控制該啟動控制模組由該第二啟動模式修改為預設之該第一啟動模式,並進一步控制該伺服器與該智慧網卡同步重新執行該伺服器測試程式與該網卡測試程式。 The power-on test system according to claim 5, wherein the smart network card further comprises: a network card test module, which has the network card test program built in, and performs an initialization test according to the network card test program to generate the second execution result; and A monitoring module is electrically connected to the network card test module, and is communicatively connected to the startup control module for comparing the startup when the second execution result generated by executing the network card test program is qualified Whether the control module is in the second activation mode, when the activation control module is in the second activation mode, the activation control module is further controlled to be modified from the second activation mode to the preset first activation mode, and Further control the server and the smart network card to synchronize and re-execute the server test program and the network card test program. 如請求項6所述之開機測試系統,其中,該監控模組係以一網路線通訊連結於該啟動控制模組。The startup testing system according to claim 6, wherein the monitoring module is connected to the startup control module through a network line communication. 如請求項5所述之開機測試系統,其中,該啟動控制模組為一基板管理控制器。The startup test system according to claim 5, wherein the startup control module is a baseboard management controller.
TW109137257A 2020-10-27 2020-10-27 System and method for power on testing TWI759926B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW109137257A TWI759926B (en) 2020-10-27 2020-10-27 System and method for power on testing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW109137257A TWI759926B (en) 2020-10-27 2020-10-27 System and method for power on testing

Publications (2)

Publication Number Publication Date
TWI759926B true TWI759926B (en) 2022-04-01
TW202217355A TW202217355A (en) 2022-05-01

Family

ID=82198867

Family Applications (1)

Application Number Title Priority Date Filing Date
TW109137257A TWI759926B (en) 2020-10-27 2020-10-27 System and method for power on testing

Country Status (1)

Country Link
TW (1) TWI759926B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW201216156A (en) * 2010-10-06 2012-04-16 Inventec Corp Computer system booting method
TW201227341A (en) * 2010-12-29 2012-07-01 Acer Inc Remote management systems and methods for servers, and computer program products thereof
CN108509210A (en) * 2017-02-24 2018-09-07 广达电脑股份有限公司 Automatically update the System and method for of basic input output system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW201216156A (en) * 2010-10-06 2012-04-16 Inventec Corp Computer system booting method
TW201227341A (en) * 2010-12-29 2012-07-01 Acer Inc Remote management systems and methods for servers, and computer program products thereof
CN102546224A (en) * 2010-12-29 2012-07-04 宏碁股份有限公司 Remote management system and method for server
CN108509210A (en) * 2017-02-24 2018-09-07 广达电脑股份有限公司 Automatically update the System and method for of basic input output system

Also Published As

Publication number Publication date
TW202217355A (en) 2022-05-01

Similar Documents

Publication Publication Date Title
WO2022198972A1 (en) Method, system and apparatus for fault positioning in starting process of server
CN112231162B (en) Startup test system and startup test method
CN107122321B (en) Hardware repair method, hardware repair system, and computer-readable storage device
US7251746B2 (en) Autonomous fail-over to hot-spare processor using SMI
JP6291248B2 (en) Firmware upgrade error detection and automatic rollback
TWI754317B (en) Method and system for optimal boot path for a network device
US8108733B2 (en) Monitoring distributed software health and membership in a compute cluster
TWI526820B (en) Determine voltage supplied to a core
US8321608B2 (en) Pool I/O device operation confirmation method and computer system
JPH0526214B2 (en)
TWI779682B (en) Computer system, computer server and method of starting the same
TWI759926B (en) System and method for power on testing
CN116610430A (en) Method for realizing electrified operation and maintenance of processor and server system
CN116449800A (en) Control logic switching method, device, equipment and medium
CN113868001B (en) Method, system and computer storage medium for checking memory repair result
CN111814415B (en) Efficient regression testing method for chip verification
CN113722212B (en) CPLD upgrading test method, device, equipment and medium
CN111488250A (en) High-density multi-node server testing method, system, terminal and storage medium
JP2002049509A (en) Data processing system
CN112068991B (en) High-reliability dual-management system based on master-slave synchronization
JP4715552B2 (en) Fault detection method
TWI726434B (en) Control method for solving abnormal operation of me
TWI838264B (en) Computer system and method for processing debug information of computer system thereof
CN108170247A (en) BMC power loss recovery method and apparatus
CN112380083A (en) Method and system for testing master-slave switching stability of BMC (baseboard management controller)