TW201209577A - Test system and method of restarting the computer - Google Patents

Test system and method of restarting the computer Download PDF

Info

Publication number
TW201209577A
TW201209577A TW99128044A TW99128044A TW201209577A TW 201209577 A TW201209577 A TW 201209577A TW 99128044 A TW99128044 A TW 99128044A TW 99128044 A TW99128044 A TW 99128044A TW 201209577 A TW201209577 A TW 201209577A
Authority
TW
Taiwan
Prior art keywords
local computer
computer
wake
module
restart
Prior art date
Application number
TW99128044A
Other languages
Chinese (zh)
Inventor
Hai-Li Wang
Yong-Qian Deng
Original Assignee
Hon Hai Prec Ind Co Ltd
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 Hon Hai Prec Ind Co Ltd filed Critical Hon Hai Prec Ind Co Ltd
Priority to TW99128044A priority Critical patent/TW201209577A/en
Publication of TW201209577A publication Critical patent/TW201209577A/en

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The present invention provides a test method of restarting the computer. The method includes: setting restarting times, sleep latency and the test results storage path; recording the first information of system hardware; shutting operating system at the end of the sleep latency; waking up the local computer remotely; adding one to the calculated value of restarting times; recording the information of system hardware and if it is consistent with the first record, storing the result of this test to the storage path; when the calculated value is up to the scheduled restarting times, or if there are errors or missing information and they have been stored to the storage path, reading and displaying the test results. A related test system of restarting the computer is also provided. The present invention can remotely wake up the test computer, and track record of anomalies.

Description

201209577 六、發明說明: 【發明所屬之技術領域】 [0001] 本發明涉及一種測試系統及方法,尤其是涉及一種電腦 重啟測試系統及方法。 【先前技術】 [0002] 隨著小型服務電腦技術的快速發展,業界對電腦遠端控 制BMC(Baseboard Management Controller,基板管 理控制器)的操作越來越多而對作業系統的穩定性要求越 來越高,這就對作業系統測試提出了一個更高的要求。 那麼一款功能全面的測試軟體就顯得尤其重要,好的測 試軟體不僅可以縮短測試時間,而且可以保證測試結果 的準確性和全面性,為調試分析提供重要依據。目前還 沒有一類針對電腦遠端喚醒的測試軟體,而在做作業系 統重啟測試時,一般使用的是重啟測試軟體,這類軟體 的缺點是不能通過遠端喚醒測試電腦,不具有完善的重 啟測試功能,不能把作業系統重啟過程中出現的異常狀 況進行跟蹤記錄,進而給調試分析帶來相當大的困難。 【發明内容】 [0003] 鑒於以上内容,有必要提供一種電腦重啟測試系統,可 以遠端喚醒測試電腦,並且把重啟測試過程中出現的異 常狀況進行跟蹤記錄。 [0004] 鑒於以上内容,還有必要提供一種電腦重啟測試方法, 可以遠端喚醒測試電腦,並且把重啟測試過程中出現的 異常狀況進行跟蹤記錄。 [0005] 所述電腦重啟測試系統,運行於本地電腦的基板管理控 099128044 表單編號A0101 第4頁/共20頁 0992049319-0 201209577 制器BMC中,該本地電腦與一個遠端電腦進行遠端通信’ 該遠端電腦包括喚醒模 '组。s亥系統包括.設置模組,用 於設置該本地電腦的重啟次數、休眠延遲時間及測試結 果存儲路徑;所述的設置模組還用於設置該本地電腦的 MAC位址及喚醒延遲時間,並將該設定的MAC地址及喚醒 延遲時間發送給喚醒模組;控制模組,用於當完成設置 後啟動該本地電腦進行測試;記錄模組’用於記錄第一 次讀取的該本地電腦當前的系統硬體資訊;計時模組, 用於判斷設定的休眠延遲時間是否结束’若已經結束則 〇 觸發控制模組關閉該本地電腦的作業系統’該本地電腦 進入休眠狀態,若沒有結束則繼績等待;所述的控制模 組還用於當該本地電腦進入休眠狀態時’觸發喚醒模組 遠端唤醒該本地電腦,使該本地電腦的作業系統重新啟 動;計數模組,用於計算該本地電腦的重啟次數;所述 的記錄模組還用於記錄本次重啟後該本地電腦的系統硬 體資訊;比對模組,用於比對本次重啟後記錄的系統硬 體資訊與第一次記錄的系統硬體資訊戽否一致,如果一 ο 致則將本次測試結果存儲至設定的存儲路徑,如果有錯 誤或丟失則將錯誤代碼或丟失硬體資訊存儲至設定的存 儲路徑;所述的計數模組還用於判斷所計算的重啟次數 數值是否達到所設定的重啟次數,若還未達到則觸發計 時模組繼續判斷設定的休眠延遲時間是否結束,若已經 達到則觸發控制模組停止測試;及顯示模組,用於從設 定的存儲路徑讀取並顯示測試結果。 [0006]所述電腦重啟測試方法,該本地電腦與一個遠端電腦進 099128044 表單編號A0101 第5頁/共20頁 0992049319-0 201209577 行遠端通信,該遠端電腦包括喚醒模組。該方法包括步 驟:設置該本地電腦的重啟次數、休眠延遲時間及測試 結果存儲路徑;設置該本地電腦的MAC位址及喚醒延遲時 間,並將該設定的MAC地址及喚醒延遲時間發送給喚醒模 組;在完成設置後啟動該本地電腦進行測試’記錄第一 次讀取的該本地電腦當前的系統硬體資訊丨判斷設定的 休眠延遲時間是否結束,若沒有結束則繼續等待;若設 定的休眠延遲時間結束,則關閉該本地電腦的作業系統 ,該本地電腦進入休眠狀態;觸發喚醒模組遠端喚醒該 本地電腦,使該本地電腦的作業系統重新啟動;當喚醒 該本地電腦後’計算的重啟次數數值加1 ;記錄本次重啟 後該本地電腦的系統硬體資訊;比對本次重啟後記錄的 系統硬體資訊與第一次記錄的系統硬體資訊是否一致’ 如果一致,則將本次測試結果存儲至設定的存儲路徑; 判斷所計算的重啟次數數值是否達到所設定的該本地電 腦的重啟次數,當還未達到時,返回判斷設定的休眠延 遲時間是否結束的步驟;當所計算的重啟次數數值達到 所設定的重啟次數時,或者t本次重啟後記錄的系統硬 體資訊與第-次記錄的系統硬體資訊相比有錯誤或丢失 並將錯誤代碼或丢失硬體資訊存儲至設定的存儲路徑後 ’停止測試’從q的存儲路徑讀取並顯示測試結果。 [0007] 相較于S知馳本發明所述的電腦重啟測試系統及方 法’能_輕_㈣料_試電腦,並且把重啟 測試過程中出現的異常㈣進行跟蹤記錄,具有完善的 重啟測試功能,提高了職準確度,為調齡析提供方 099128044 表單編號A0101 第6頁/共20 頁 0992049319-0 201209577 便。 [0008] Ο [0009] [0010] ° [0011] [0012] 【實施方式】 如圖1所示,係為本發明電腦重啟測試系統較佳實施例之 架構圖。所述的電腦重啟測試系統10運行於本地電腦1的 BMCCBaseboard Management Control ler,基板管理 控制器)4中。該本地電腦1為家用或辦公電腦、工作站 、伺服器等。該本地電腦1還包括網卡3。該本地電腦1與 /個遠端電腦2進行遠端通信。所述的遠端電腦2包括喚 醛模組20,該喚醒模組20用於遠端喚释該本地電腦1。 如圖2所示,係為本發明電腦重啟測試系統較佳實施例之 功能模組圖。該電腦重啟測試系統10包括設置模組101、 控制模組102、記錄模組103、計時模組1、04、計數模組 105、比對模組106以及顯示模組1〇7。 所述的設置模組101用於設置該本地電腦1的重啟次數、 体眠延遲時間及測試結果存儲路徑。所述的休眠延遲時 間為該本地電腦1從啟動到進入休眠的間隔時間。 所述的設置模組101還用於設置該本地電腦1的MAC位址及 唤醒延遲時間,並將該設定的MAC地址及喚醒延遲時間發 送給喚醒模組20。所述的喚醒延遲時間為該本地電細1從 休眠至被喚醒的間隔時間。 所述的控制模組102用於當完成設置後啟動該本地電腦1 進行測試。 所述的記錄模組103用於記錄第一次讀取的該本地電腦1 當前的系統硬體資訊。所述的系統硬體資訊包括中央處 099128044 表單編號A0101 第7頁/共20頁 0992049319-0 [0013] 201209577 理器、記憶體、硬碟'基本輸入輸出系統資訊等。 [0014] 所述的計時模組1 04用於判斷設定的休眠延遲時間是否結 束。若已經結束’則觸發控制模組丨〇2關閉該本地電腦1 的作業系統,該本地電腦1進入休眠狀態;若沒有結束, 則繼續等待。 [0015] 所述的控制模組102還用於當該本地電腦1進入休眠狀態 時’觸發喚醒模組20遠端唤醒該本地電腦1,使該本地電 腦1的作業系統重新啟動。當該本地電腦1進入休眠狀態 時,控制模組102向喚醒模組20發送一個計時的信號。該 唤醒模組20收到該計時信號後開始計時,當計時到達設 定的喚醒延遲時間後,該喚醒模組20向網卡3發送包括設 定的MAC位址的資料幀。網卡3比對收到的資料鴨中的 MAC位址是否與自身的MAC位址一致’如果一致,則向 BMC4發送一個重啟的信號。該BMC4收到該重啟信號後控 制該本地電腦1的作業系統丨重新镓動。. Γ ’: ΐ .. + .丨 [0016] 所述的計數模組105用於計算叙本地電腦1的重啟次數。 當喚醒該本地電腦1後,該計數模組105所計算的重啟次 數數值加1。 [0017] 所述的記錄模組103還用於記錄本次重啟後該本地電腦1 的系統硬體資訊。 [0018] 所述的比對模組1 〇 6用於比對本次重啟後記錄的系統硬體 資訊與第一次記錄的系統硬體資訊是否一致。如果一致 ,則將本次測試結果存儲至設定的存儲路徑;如果有錯 誤或丟失,則將錯誤代碼或去失硬體資訊存儲至設定的 099128044 表單編號Α0101 第8頁/共20頁 0992049319-0 201209577 [0019] [0020] Ο [0021] [0022] [0023] Ο [0024] [0025] 存儲路徑。 所述的計數模餌105還用於判斷所計算的重啟次數數值β 否達到所設定的該本地電腦1的重啟次數。若還未達到* 定的重啟次數,則觸發計時模組1〇4繼續判斷設定的休眠 延遲時間是否結束;若已經達到設定的重啟次數,則觸 發控制模組102控制該本地電腦1停止測試。 所述的顯示模餌107用於從設定的存儲路徑讀取並顯示測 試結果。 如圖3所示,係為本發明電腦重啟測試方法較佳實施例之 流程圖。 步驟sio,所述的設置模組1〇ι設置該本地電腦1的重啟次 數、休眠延遲時間及測試結果存儲路徑。所述的休眠延 遲時間為該本地電腦1從啟動到進入休眠的間隔時間。 步驟S12,所述的設置模組101設置該本地i電腦1的MAC位 址及喚醒延遲時間’旅將該設,定的M地址及喚醒延遲時 間發送給喚醒模組20。所述的喚醒延遲時間為該本地電 腦1從休眠至被喚_間隔時間。 少驟S14 ’所述的控制模組102在完成設置後啟動該本地 電腦1進行測試,所述的記錄模組1(33記錄第—次讀取的 該本地電腦1當前的系統硬體資訊。所述的系統硬體資訊 包括中央處理器、犯憶體 '硬碟、基本輸入輸出系統資 訊等。 步驟S16,所述的計時模組1〇4判斷設定的休眠延遲時間 0992049319-0 099128044 表單編號Α0101 201209577 [0026] [0027] [0028] [0029] [0030] 疋否結束。若已經結束,則執行步驟SI 8 ;若沒有結束, 則繼續等待。 步驟Sl8,所述的控制模組1〇2關閉該本地電腦1的作業系 & ’該本地電腦1進入休眠狀態。 步驟S2〇,所述的控制模組1〇2觸發喚醒模組20遠端喚醒 5亥本地電腦1,使該本地電腦1的作業系統重新啟動。具 而言’當該本地電腦1進入休眠狀態時,控制模組1〇2 向喚醒模組20發送一個計時的信號。該喚醒模組2〇在收 該。十時信號後開始計時’當計時到達設定的喚醒延遲 1後,s玄喚醒模組20向網卡3發送包括設定的位址 的資料幢。網卡3比對收到的該資料幢中的MAC位址是否 、自身的MAC位址一致,如果一致,則向BMC4發送一個重 的4號。該BMC4收到該重啟信號後控制該本地電腦j的 作業系統重新啟動。 ,驟S22 ,當喚醒該本地電腦1後,所述的計數模組所 #算的重啟次數數值加1。 步驟S24,所述的記錄模組1〇3記錄本次重啟後該本地電 腦1的系統硬體資訊。 步驟S26,所述的比對模組106比對本次重啟後記錄的系 硬體資訊與第一次記錄的系統硬體資訊是否一致。如 果有錯誤或丟失,則執行步驟S28 ;如致則執行步 驟S3〇。 ,驟S28 ’所述的比對模組1Q6將錯誤代碼或去失硬體資 訊存儲至設定的存儲路徑。 099128044 表單編號A0101 第ίο頁/共20頁 0992049319-0 [0031] 201209577 [0032] 步驟S3〇,所述的 定的存儲路徑。 比對模組1 Q 6將本:欠測試結果存儲至設 闕纟购2 ’所述的計數模組m判斷所計算的重啟次數數 值疋否達到所設定的該本地電腦j的重啟次數。若還未達 到設定的重啟次數,則返回步驟S16 ;若已經達到設定值 ,Θ)Ι -4ί» -ί- »fc- ατν· ο n i _]步驟S34 ’所述的控制模組1〇2控制該本地電职停止測試 ’所述的顯示模組1 〇 7從設定的存儲路徑讀取並顯示測試 結果。 [0035] 綜上所述,本發明符合發明專利要件’爰依法提出專利 申請。惟,以上所述者僅爲本發明之’較佳實施例,本發 明之範圍並不以上述實施例爲限,舉凡熟悉本案技藝之 人士援依本發明之精神所作之等效修飾或變化,皆應涵 蓋於以下申請專利範圍内。 【圖式簡單說明】 [0036] 圖1係為本發明電腦重啟測試系統較佳實施例之架構圖。 [0037] 圖2係為本發明電腦重啟測試系統較佳實施例之功能模組 [0038] 圖3係為本發明電腦重啟測試方法較佳實施例之流程圖。 【主要元件符號說明】 [0039] 本地電腦1 [0040] 遠端電腦2 [0041] 網卡 3 099128044 表單編號Α0101 第11頁/共20頁 0992049319-0 201209577 [0042] BMC 4 [0043] 電腦重啟測試系統1 0 [0044] 喚醒模組2 0 [0045] 設置模組1 0 1 [0046] 控制模組102 [0047] 記錄模組103 [0048] 計時模組104 [0049] 計數模組105 [0050] 比對模組106 [0051] 顯示模組107 [0052] 設置重啟次數、休眠延遲時間以及測試結果存儲路徑 [0053] S1 0 [0054] 設置該本地電腦的MAC位址及喚醒延遲時間,並發送給喚 醒模組S12 [0055] 啟動測試,記錄第一次系統硬體資訊S1 4 [0056] 判斷休眠延遲時間是否結束S1 6 [0057] 關閉該本地電腦的作業系統S18 [0058] 觸發喚醒模組遠端喚醒該本地電腦S20 [0059] 計算的重啟次數數值加1 S22 [0060] 記錄本次重啟後的系統硬體資訊S24 099128044 表單編號A0101 第12頁/共20頁 0992049319-0 201209577 [0061] [0062] [0063] [0064] [0065] ❹ 比對本次記錄與第一次記錄是否一致S26 將錯誤代碼或丟失硬體資訊存儲至設定路徑S28 將本次測試結果存儲至設定路徑S3〇 判斷計算的數值是否達到設定的重啟次數S32 停止測試,顯示測試結果S34 ο201209577 VI. Description of the Invention: [Technical Field] [0001] The present invention relates to a test system and method, and more particularly to a computer restart test system and method. [Prior Art] [0002] With the rapid development of small-service computer technology, the industry has more and more operations on the BMC (Baseboard Management Controller), and the stability requirements of the operating system are increasing. The higher, this puts a higher requirement on the operating system test. Then a comprehensive test software is especially important. A good test software can not only shorten the test time, but also ensure the accuracy and comprehensiveness of the test results, providing an important basis for debugging analysis. At present, there is no test software for remote wake-up of the computer. When the test system is restarted, the test software is generally used. The shortcoming of this kind of software is that the test computer cannot be woken up by remote, and there is no perfect restart test. The function can not track and record the abnormal conditions that occur during the restart of the operating system, which brings considerable difficulties to the debugging analysis. SUMMARY OF THE INVENTION [0003] In view of the above, it is necessary to provide a computer restart test system that can wake up the test computer remotely and record the abnormal conditions that occur during the restart test. [0004] In view of the above, it is also necessary to provide a computer restart test method, which can remotely wake up the test computer and record the abnormal conditions occurring during the restart test. [0005] The computer restarts the test system, and the baseboard management control running on the local computer is 099128044. Form No. A0101 Page 4/20 pages 0992049319-0 201209577 In the BMC, the local computer performs remote communication with a remote computer. 'The remote computer includes the wake mode' group. The system includes a setting module for setting the number of restarts of the local computer, a sleep delay time, and a storage path of the test result; the setting module is further configured to set a MAC address and a wake-up delay time of the local computer, And sending the set MAC address and the wake-up delay time to the wake-up module; the control module is configured to start the local computer for testing when the setting is completed; the recording module is configured to record the local computer that is read for the first time The current system hardware information; the timing module is used to determine whether the set sleep delay time is over. 'If it is over, the trigger control module closes the local computer's operating system'. The local computer enters a sleep state, if not, then The control module is further configured to: when the local computer enters a sleep state, 'trigger the wake-up module to wake up the local computer to restart the local computer operating system; the counting module is used for calculating The number of restarts of the local computer; the recording module is further configured to record system hardware information of the local computer after the restart; For the module, it is used to compare the system hardware information recorded after the restart and the system hardware information recorded for the first time, and if so, store the test result to the set storage path, if If there is an error or a loss, the error code or the lost hardware information is stored in the set storage path; the counting module is further configured to determine whether the calculated number of restart times reaches the set number of restarts, and if not, triggers The timing module continues to determine whether the set sleep delay time is over. If it has been reached, the trigger control module stops testing; and the display module is configured to read and display the test result from the set storage path. [0006] The computer restarts the test method, the local computer and a remote computer enter 099128044 Form No. A0101 Page 5 / Total 20 pages 0992049319-0 201209577 Line remote communication, the remote computer includes a wake-up module. The method includes the steps of: setting a restart time of the local computer, a sleep delay time, and a test result storage path; setting a MAC address and a wakeup delay time of the local computer, and sending the set MAC address and wakeup delay time to the wake mode Group; start the local computer after the setup is completed to test 'record the current system hardware information of the local computer read for the first time 丨 to determine whether the set sleep delay time is over, if not finished, continue to wait; if the sleep is set When the delay time is over, the operating system of the local computer is turned off, and the local computer enters a sleep state; the wake-up module is triggered to remotely wake up the local computer, and the operating system of the local computer is restarted; when the local computer is woken up, the calculation is performed. The number of restarts is increased by 1; the system hardware information of the local computer after the restart is recorded; whether the system hardware information recorded after the restart is consistent with the system hardware information recorded for the first time is the same. The test result is stored in the set storage path; the number of restarts determined is determined. Whether the value reaches the set number of restarts of the local computer, and when it has not been reached, returns a step of determining whether the set sleep delay time is over; when the calculated number of restart times reaches the set number of restarts, or t this time After the restart, the system hardware information recorded is incorrect or lost compared with the first-recorded system hardware information, and the error code or lost hardware information is stored in the set storage path, and then 'stop test' is read from the storage path of q. Take and display the test results. [0007] Compared with the computer restart test system and method described in the present invention, the computer can test and record the abnormality (4) that occurs during the restart test, and has a complete restart test. Function, improve the job accuracy, provide the party for the age analysis 099128044 Form No. A0101 Page 6 / Total 20 Page 0992049319-0 201209577. [0008] [0012] [Embodiment] As shown in FIG. 1, it is an architectural diagram of a preferred embodiment of a computer restart test system of the present invention. The computer restart test system 10 runs in the BMCCBaseboard Management Controller of the local computer 1, and the baseboard management controller. The local computer 1 is a home or office computer, a workstation, a server, and the like. The local computer 1 also includes a network card 3. The local computer 1 and the remote computer 2 perform remote communication. The remote computer 2 includes an aldehyde module 20 for remotely releasing the local computer 1. 2 is a functional module diagram of a preferred embodiment of the computer restart test system of the present invention. The computer restart test system 10 includes a setting module 101, a control module 102, a recording module 103, a timing module 1, 04, a counting module 105, a comparison module 106, and a display module 1〇7. The setting module 101 is configured to set the number of restarts of the local computer 1, the sleep delay time, and the test result storage path. The sleep delay time is the interval between the start of the local computer 1 and the sleep. The setting module 101 is further configured to set a MAC address and a wake-up delay time of the local computer 1, and send the set MAC address and wake-up delay time to the wake-up module 20. The wake-up delay time is an interval time from the sleep to the wake-up of the local power thin 1 . The control module 102 is configured to start the local computer 1 for testing when the setting is completed. The recording module 103 is configured to record the current system hardware information of the local computer 1 read for the first time. The system hardware information includes the central office 099128044 Form No. A0101 Page 7 / Total 20 pages 0992049319-0 [0013] 201209577 Processor, memory, hard disk 'Basic input and output system information. [0014] The timing module 104 is configured to determine whether the set sleep delay time is over. If it has ended, the trigger control module 丨〇2 closes the operating system of the local computer 1, and the local computer 1 enters a sleep state; if not, it continues to wait. [0015] The control module 102 is further configured to: when the local computer 1 enters a sleep state, the trigger wake-up module 20 remotely wakes up the local computer 1 to restart the local computer 1 operating system. When the local computer 1 enters a sleep state, the control module 102 sends a timing signal to the wake-up module 20. The wake-up module 20 starts timing after receiving the timing signal. After the timing reaches the set wake-up delay time, the wake-up module 20 transmits a data frame including the set MAC address to the network card 3. The network card 3 compares whether the MAC address in the duck received is consistent with its own MAC address. If it is consistent, a restart signal is sent to the BMC4. After receiving the restart signal, the BMC4 controls the operating system of the local computer 1 to re-galvanize. Γ ': ΐ .. + .丨 [0016] The counting module 105 is configured to calculate the number of restarts of the local computer 1 . When the local computer 1 is woken up, the number of restarts calculated by the counting module 105 is incremented by one. [0017] The recording module 103 is further configured to record system hardware information of the local computer 1 after the restart. [0018] The comparison module 1 〇 6 is configured to compare whether the system hardware information recorded after the restart is consistent with the system hardware information recorded for the first time. If they are consistent, store the test result to the set storage path; if there is an error or loss, store the error code or lost hardware information to the set 099128044 Form No. 1010101 Page 8 / Total 20 Page 0992049319-0 201209577 [0020] [0020] [0023] [0024] [0025] [0025] Storage path. The counting model bait 105 is further configured to determine whether the calculated restart number value β reaches the set number of restarts of the local computer 1 . If the number of restarts has not been reached, the trigger timing module 1〇4 continues to determine whether the set sleep delay time has ended; if the set number of restarts has been reached, the trigger control module 102 controls the local computer 1 to stop testing. The display die pad 107 is used to read from the set storage path and display the test result. 3 is a flow chart of a preferred embodiment of the computer restart test method of the present invention. Step sio, the setting module 1 〇 ι sets the number of restarts of the local computer 1, the sleep delay time, and the test result storage path. The sleep delay time is the interval between the start of the local computer 1 and the sleep. In step S12, the setting module 101 sets the MAC address and wake-up delay time of the local i computer 1 to send the set, the fixed M address and the wake-up delay time to the wake-up module 20. The wake-up delay time is from the sleep to the called_interval time of the local computer 1. The control module 102 described in the step S14 is started to test the local computer 1 after the setting is completed. The recording module 1 (33 records the current system hardware information of the local computer 1 read first time. The system hardware information includes a central processing unit, a memory medium hard disk, a basic input/output system information, etc. Step S16, the timing module 1〇4 determines the set sleep delay time 0992049319-0 099128044 form number Α0101 201209577 [0026] [0028] [0029] [0030] 疋 No end. If it has ended, execute step SI 8; if not, continue to wait. Step S18, the control module 1〇 2 Turn off the operation of the local computer 1 & 'The local computer 1 enters the sleep state. Step S2〇, the control module 1〇2 triggers the wake-up module 20 to remotely wake up the local computer 1 to make the local The operating system of the computer 1 is restarted. In the following, when the local computer 1 enters the sleep state, the control module 1〇2 sends a timing signal to the wake-up module 20. The wake-up module 2 is now receiving the ten. Time signal starts timing After the set wakeup delay 1 is reached, the snull wakeup module 20 sends the data structure including the set address to the network card 3. The network card 3 compares whether the received MAC address in the data frame and its own MAC address are compared. Consistently, if they are consistent, send a heavy number 4 to the BMC 4. After receiving the restart signal, the BMC4 controls the operating system of the local computer j to restart. Step S22, when the local computer 1 is woken up, the counting is performed. The number of restarts calculated by the module is incremented by 1. In step S24, the recording module 1〇3 records the system hardware information of the local computer 1 after the restart. Step S26, the comparison module 106 Comparing whether the hardware information recorded after the restart is consistent with the system hardware information recorded for the first time. If there is an error or loss, step S28 is performed; if yes, step S3 is performed, step S28' The comparison module 1Q6 stores the error code or the lost hardware information to the set storage path. 099128044 Form No. A0101 Page 395/Total 20 Page 0992049319-0 [0031] 201209577 [0032] Step S3〇, described Fixed storage path. Comparison module 1 Q 6 stores the under-test result to the counting module m described in the setup 2' to determine whether the calculated number of restart times has reached the set number of restarts of the local computer j. If the setting has not been reached yet If the number of restarts is returned, the process returns to step S16; if the set value has been reached, Θ)Ι -4ί» -ί- »fc- ατν· ο ni _] the control module 1〇2 described in step S34' controls the local electric service stop The display module 1 测试 7 described in the test reads from the set storage path and displays the test result. [0035] In summary, the present invention complies with the invention patent requirement 爰 提出 patent application. However, the above description is only a preferred embodiment of the present invention, and the scope of the present invention is not limited to the above-described embodiments, and those skilled in the art will be able to make equivalent modifications or variations in accordance with the spirit of the present invention. All should be covered by the following patent application. BRIEF DESCRIPTION OF THE DRAWINGS [0036] FIG. 1 is a block diagram of a preferred embodiment of a computer restart test system of the present invention. 2 is a functional module of a computer restart test system according to a preferred embodiment of the present invention. [0038] FIG. 3 is a flow chart of a preferred embodiment of the computer restart test method of the present invention. [Main component symbol description] [0039] Local computer 1 [0040] Remote computer 2 [0041] Network card 3 099128044 Form number Α 0101 Page 11 / Total 20 pages 0992049319-0 201209577 [0042] BMC 4 [0043] Computer restart test System 1 0 [0044] Wake-up Module 2 [0045] Setting Module 1 0 1 [0046] Control Module 102 [0047] Recording Module 103 [0048] Timing Module 104 [0049] Counting Module 105 [0050] The comparison module 106 [0051] The display module 107 [0052] sets the number of restarts, the sleep delay time, and the test result storage path [0053] S1 0 [0054] sets the MAC address and wake-up delay time of the local computer, and Send to wake-up module S12 [0055] Start test, record the first system hardware information S1 4 [0056] Determine whether the sleep delay time ends S1 6 [0057] Turn off the local computer's operating system S18 [0058] Trigger wake-up mode Group remote wakes up the local computer S20 [0059] Calculated restart number value plus 1 S22 [0060] Record system hardware information after this restart S24 099128044 Form number A0101 Page 12 / Total 20 pages 0992049319-0 201209577 [0061 [0065] [0065] ❹ comparison book Whether the record is consistent with the first record S26 Store the error code or missing hardware information to the set path S28. Store the test result to the set path S3. Determine whether the calculated value reaches the set number of restarts. S32 Stop the test and display the test result. S34 ο

099128044 表單編號A0101 第13頁/共20頁 0992049319-0099128044 Form No. A0101 Page 13 of 20 0992049319-0

Claims (1)

201209577 七、申請專利範圍: 1 . 一種電腦重啟測試系統,運行於本地電腦的基板管理控制 器BMC中,該本地電腦與一個遠端電腦進行遠端通信,該 遠端電腦包括喚醒模組,該系統包括: 設置模組’用於設置該本地電腦的重啟次數、休眠延遲時 間及測試結果存儲路徑; 所述的設置模組還用於設置該本地電腦的MAC位址及喚醒 延遲時間,並將該設定的MAC地址及喚醒延遲時間發送給 喚醒模組; 控制模組’用於當完成設置後啟動該本地電腦進行測試; 記錄模組,用於記錄第一次讀取的該本地電腦當前的系統 硬體資訊; 計時模組’用於判斷設定的休眠延遲時間是否結束,若已 經結束則觸發控制模組關閉該本地電腦的作業系統,該本 地電腦進入休眠狀態,若沒有結束則繼續等待; 所述的控制模組還用於當該本地電腦進入休眠狀態時,觸 發喚醒模組遠端唤醒該本地電腦,使該本地電腦的作業系 統重新啟動; 計數模組,用於計算該本地電腦的重啟次數; 所述的記錄模組還用於記錄本次重啟後該本地電腦的系統 硬體資訊; 比對模組,用於比對本次重啟後記錄的系統硬體資訊與第 一次記錄的系統硬體資訊是否一致,如果一致則將本次測 試結果存儲至設定的存儲路徑,如果有錯誤或丟失則將錯 誤代碼或丟失硬體資訊存儲至設定的存儲路徑; 099128044 表單編號A0101 第14頁/共20頁 0992049319-0 201209577 所述的計數模組還用於判斷所計算的重啟次數數值是否達 到所設定的重啟次數,若還未達到則觸發計時模組繼續判 斷設定的休眠延遲時間疋否結束,若已經達到則觸發控制 模組停止測試;及 顯示模組,用於從設定的存儲路徑讀取並顯示測試結果。 2 .如申請專利範圍第1項所述之電腦重啟測試系統,其中, 所述的本地電腦為豕用或辦公電腦、工作站、飼服器。 3 ·如申請專利範圍第1項所述之電腦重啟測試系統,其中, 所述的控制模組還用於當該本地電腦進入休眠狀態時,向 〇 喚醒模組發送一個計時的信號; 所述的喚醒模組’用於當收到該計時信薄後開始計時,當 計時到達設定的喚醒延遲時間後,該喚醒模組向該本地電 腦的網卡發送包括設定的MAC位址的資料幀; 所述的網卡,用於比對收到的該資料幀中的MAC位址是否 與自身的MAC位址一致,如果一致’則.向BMC發送一個重 啟的信號; ϊ ^ - 所述的BMC,用於在收到該重;啟信號後控制該本地電腦的 〇 作業系統重新啟動。 4 .如申請專利範圍第1項所述之電腦重啟測試系統,其中, 所述的休眠延遲時間為該本地電腦從啟動到進入休眠的間 隔時間’所述的喚醒延遲時間為該本地電腦從休眠至被喚 醒的間隔時間。 5 . —種電腦重啟測試方法,該本地電腦與一個遠端電腦進行 遠端通信,該遠端電腦包括嗔醒模組,該方法包括步驟: 設置該本地電腦的重啟次數、休眠延遲時間及測試結果存 儲路徑; 099128044 表單編號A0101 第15頁/共20頁 0992049319-0 201209577 設置該本地電腦的MAC位址及喚_延遲時間,並將該設定 的MAC地址及喚醒延遲時間發送給喚醒模組; 在完成設置後啟動該本地電腦進行測試,記錄第一次讀取 的該本地電腦當前的系統硬體資訊; 判斷設定的休眠延遲時間是否結束,若沒有結束則繼續等 待, 若設定的休眠延遲時間結束’則關閉該本地電腦的作業系 統,該本地電腦進入休眠狀態; 觸發喚醒模組遠端唤醒該本地電腦,使該本地電腦的作業 系統重新啟動; 當喚醒該本地電腦後’計算的重啟次數數值加i ; 記錄本次重啟後該本地電腦的系絲^硬體胃訊; 比對本次重啟後記錄的系統硬體資訊與第一次記錄的系統 硬體資訊是否一致,如果一致,則將本次測試結果存儲至 設定的存儲路徑; 判斷所計算的重啟次數數值是否達到所教定的該本地電腦 的重啟次數,當還未達到_ r返回判私設定的休眠延遲時 間是否結束的步驟; §所計算的重啟次數數值達到所設定的重啟次敢時’或者 當本次重啟後記錄的系統硬體資訊與第一次記錄的系統硬 體資訊相比有錯誤或丟失並將錯誤代碼或去失硬體> 汛存 儲至設定的存儲路徑後,停止測試,從設定的存铺路徑言買 取並顯示測試結果。 099128044 如申請專利範圍第5項所述之電腦重啟測試方法,其中, 所述的本地電腦為家用或辦公電腦、工作站、伺服器。 如申請專利範圍第5項所述之電腦重啟測試方法,其中, 表單鵝珑A0101 第16頁/共20頁 0992 201209577 所述觸發喚醒模組遠端喚醒該本地電腦包括步驟: 當該本地電腦進入休眠時,向喚醒模組發送一個計時的信 號; 所述喚醒模組在收到該計時信號後開始計時; 當計時到達設定的唤醒延遲時間後,向該本地電腦的網卡 發送包括設定的MAC位址的資料幀; 所述網卡比對收到的該資料幀中的MAC位址是否與自身的 MAC位址一致; 如果一致,則向該本地電腦的基板管理控制器BMC發送一 〇 個重啟的信號; 所述BMC在收到該重啟信號後控制該本地電腦的作業系統 重新啟動。 8 .如申請專利範圍第5項所述之電腦重啟測試方法,其中,201209577 VII. Patent application scope: 1. A computer restart test system running in a base computer management controller BMC of a local computer, the local computer and a remote computer performing remote communication, the remote computer including a wake-up module, The system includes: a setting module 'for setting the number of restarts of the local computer, a sleep delay time, and a test result storage path; the setting module is further configured to set a MAC address and a wake-up delay time of the local computer, and The set MAC address and the wake-up delay time are sent to the wake-up module; the control module 'is used to start the local computer for testing after the setting is completed; the record module is used to record the current read of the local computer for the first time The system hardware information is used to determine whether the set sleep delay time is over. If it has ended, the trigger control module closes the operating system of the local computer, and the local computer enters a sleep state, and if not, continues to wait; The control module is further configured to trigger the wake-up module when the local computer enters a sleep state. Wake up the local computer to restart the operating system of the local computer; the counting module is used to calculate the number of restarts of the local computer; the recording module is also used to record the system of the local computer after the restart The comparison information is used to compare whether the system hardware information recorded after the restart is consistent with the system hardware information recorded for the first time, and if the data is consistent, the test result is stored in the set storage path. If there is an error or loss, the error code or the missing hardware information is stored in the set storage path; 099128044 Form No. A0101 Page 14 / Total 20 Page 0992049319-0 201209577 The counting module is also used to judge the calculated restart Whether the number of times reaches the set number of restarts, if not reached, the trigger timing module continues to determine whether the set sleep delay time is not finished, if it has been reached, the trigger control module stops the test; and the display module is used for setting The storage path reads and displays the test results. 2. The computer restart test system according to claim 1, wherein the local computer is a laptop or an office computer, a workstation, and a feeding device. 3. The computer restart test system of claim 1, wherein the control module is further configured to send a timing signal to the wake-up module when the local computer enters a sleep state; The wake-up module 'is used to start timing after receiving the timing letter. After the timer reaches the set wake-up delay time, the wake-up module sends a data frame including the set MAC address to the network card of the local computer; The network card is configured to compare whether the MAC address in the data frame received is consistent with its own MAC address, and if yes, send a restart signal to the BMC; ϊ ^ - the BMC, After receiving the heavy; start signal, the local computer's operation system is restarted. 4. The computer restart test system according to claim 1, wherein the sleep delay time is an interval of the local computer from the start to the sleep, and the wake-up delay time is the local computer sleeps. The interval to wake up. 5. A computer restart test method, the local computer and a remote computer communicate remotely, the remote computer includes a wake-up module, the method includes the steps of: setting the number of restarts, sleep delay time and test of the local computer Result storage path; 099128044 Form number A0101 Page 15 of 20 0992049319-0 201209577 Set the MAC address and call_delay time of the local computer, and send the set MAC address and wake-up delay time to the wake-up module; After the setting is completed, the local computer is started for testing, and the current system hardware information of the local computer read for the first time is recorded; it is judged whether the set sleep delay time is over, and if it is not finished, the waiting is continued, if the sleep delay time is set. End 'closes the operating system of the local computer, the local computer enters a sleep state; triggers the wake-up module to remotely wake up the local computer, causing the local computer's operating system to restart; when the local computer is woken, 'calculated restart times Value plus i; record the local computer's silk wire ^ hardware after this restart The comparison is based on whether the system hardware information recorded after the restart is consistent with the system hardware information recorded for the first time. If they are consistent, the test result is stored in the set storage path; the calculated number of restart times is determined. Whether the number of restarts of the local computer that is taught is reached, and the step of returning to the privately set sleep delay time has not been reached. § The calculated number of restart times reaches the set restart time. The system hardware information recorded after this restart is incorrect or lost compared with the first recorded system hardware information, and the error code or the missing hardware > 汛 is stored in the set storage path, and the test is stopped. The set storage path says to buy and display the test results. 099128044 The computer restart test method according to claim 5, wherein the local computer is a home or office computer, a workstation, or a server. For example, the computer restart test method described in claim 5, wherein the form goose A0101 page 16 / 20 pages 0992 201209577 triggers the wake-up module to remotely wake up the local computer. Steps: When the local computer enters When sleeping, sending a timing signal to the wake-up module; the wake-up module starts timing after receiving the timing signal; when the timing reaches the set wake-up delay time, sending the set MAC bit to the local computer's network card The data frame of the address; the network card compares whether the MAC address in the data frame received is consistent with its own MAC address; if it is consistent, sends a restart to the baseboard management controller BMC of the local computer. Signal: The BMC controls the operating system of the local computer to restart after receiving the restart signal. 8. The computer restart test method as described in claim 5, wherein 所述的休眠延遲時間為該本地電腦從啟動到進入休眠的間 隔時間,所述的喚醒延遲時間為該本地電腦從休眠至被唤 醒的間隔時間 ❹ 099128044 表單編號 A0101 第 17 頁/共 20 頁 0992049319-0The sleep delay time is an interval from the startup to the sleep of the local computer, and the wake-up delay time is an interval from the sleep to the wake-up of the local computer. ❹ 099128044 Form No. A0101 Page 17 of 20 0992049319 -0
TW99128044A 2010-08-20 2010-08-20 Test system and method of restarting the computer TW201209577A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW99128044A TW201209577A (en) 2010-08-20 2010-08-20 Test system and method of restarting the computer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW99128044A TW201209577A (en) 2010-08-20 2010-08-20 Test system and method of restarting the computer

Publications (1)

Publication Number Publication Date
TW201209577A true TW201209577A (en) 2012-03-01

Family

ID=46763669

Family Applications (1)

Application Number Title Priority Date Filing Date
TW99128044A TW201209577A (en) 2010-08-20 2010-08-20 Test system and method of restarting the computer

Country Status (1)

Country Link
TW (1) TW201209577A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9332064B2 (en) 2013-11-11 2016-05-03 Wistron Corporation Computer system and remote control method thereof
TWI588649B (en) * 2016-02-24 2017-06-21 廣達電腦股份有限公司 Hardware recovery methods, hardware recovery systems, and computer-readable storage device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9332064B2 (en) 2013-11-11 2016-05-03 Wistron Corporation Computer system and remote control method thereof
TWI588649B (en) * 2016-02-24 2017-06-21 廣達電腦股份有限公司 Hardware recovery methods, hardware recovery systems, and computer-readable storage device

Similar Documents

Publication Publication Date Title
US8738965B2 (en) Test method and test device for restarting a computer based on a hardware information comparison and a restart count
US8055887B2 (en) Dynamically updating barcode data
EP2902940A1 (en) Storage system and method for processing data operation request
CN102279787A (en) Method and device for testing average fault-free time
US10691569B2 (en) System and method for testing a data storage device
CN109684149A (en) A kind of hardware information monitoring method, device and the equipment of NVMe hard disk
CN114328312B (en) Data processing method, computer device and readable storage medium
CN114880177A (en) Method and device for testing complete machine abnormal power failure of solid state disk and computer equipment
TW201209577A (en) Test system and method of restarting the computer
US8738939B2 (en) System and method for testing WOL function of computers
TW201516665A (en) System and method for detecting system error of server
WO2018227475A1 (en) Fingerprint chip detection method, device and system
WO2012109915A1 (en) Telephone traffic data storage method and system
JP6583942B1 (en) BMC, determination method and BMC firmware
US20110107072A1 (en) Method for self-diagnosing system management interrupt handler
TW201301034A (en) System and method for testing stored data
US8560873B1 (en) Determination of transitional characteristic attributes of components during scheduled wake-up power transition of computing device
CN107957936A (en) Stabilization of equipment performance test method and device based on EFI Shell
TW200532433A (en) Device and method for automatically detecting and announcing error on booting a motherboard
CN111208363B (en) Test method and electronic device
WO2017054581A1 (en) Application program stopping failure detection method, system and apparatus
CN113742185A (en) Server and server debugging state monitoring method
TWI616888B (en) Electronic apparatus and power management method thereof
CN105242880A (en) Method for automatically creating Raid and executing pressure test
CN113821387B (en) KVM function keep-alive test method, device, equipment and medium