201114219 六、發明說明: 【發明所屬之技術領域】 本揭示内容是有關於一種電氣通信技術,且特別是有 關於一種網路連線測試方法。 【先前技術】 在伺服器中,基板管理控制器(Baseboard Management Controller ; BMC)是一種設置於主機板上,以對系統進行 控管的裝置。通常’依據伺服器的架構,將具有兩種網路 通道可以使伺服器與網路連接,一種是專用網路介面控制 器(Dedicated Network Interface Controller ; Dedicated NIC ) ’另一種則是共享網路介面控制器(share Network201114219 VI. Description of the Invention: TECHNICAL FIELD The present disclosure relates to an electrical communication technology, and more particularly to a network connection test method. [Prior Art] In the server, a Baseboard Management Controller (BMC) is a device that is disposed on a motherboard to control the system. Usually, depending on the architecture of the server, there will be two network channels that allow the server to connect to the network. One is a Dedicated Network Interface Controller (Dedicated NIC) and the other is a shared network interface. Controller (share network
Interface Controller ; Share NIC)。當伺服器啟動後,作業 系統開始運作,並且可以藉由中央處理器的控管,透過共 享網路介面控制器來存取網路。而基板管理控制器由於具 有自己的網際網路協定(Internet pr〇t〇c〇i ; ip)位址,可 以藉由專用網路介面控制器與共享網路介面控制器其中之 一來對網路進行存取。 但是在伺服器的測試階段中,對於基板管理控制器的 網路連線功能測試,往往需要人力執行開關機與手動設定 基板管理控制器與專用網路介面控制器,以及基板管理控 制器與共享網路介面控制器間的連線的切換。在人力與時 間的成本上,都將是不小的成本浪費。 因此’如何設計一個新的網路連線測試方法,來自動 化基板管理控制器的網路連線測試流程,乃為此一業界亟 201114219 待解決的問題 【發明内容】 因此,本揭示内容之一態樣是在提供一種網路連線測 試方法,用以測試待測電腦系統之基板管理控制器之網路 連線功此疋否正常。網路連線測試方法包含下列步驟:啟 動待測電腦系統;使基板管理控制器初始化;檢查基板管 理控制器藉由待測電腦系統之專用網路介面控制器或共享 網路介面控制器,與網路是否連線正常;當基板管理^ 器與專賴路介面㈣n連線正f,將基板管理二 換至與共享網路介面控制器相連,當基板管 广切 享網路介面控制器連線正常,係將基板管理控“換: 與專用網路介面控制ϋ相連;以及重新啟動待腦換絲至 依據本揭示内容-實施例,重新啟動待^^ 步驟’更包含:關閉待測電腦系統之直流電源,之 電腦系統之作業系統停止運作;關閉待測電腦系統 電源,以使基板官理控制器停止運作;以及 $ 乂机 系統交流電源,俾啟動待測電腦线。於另腦 更包含:提供待測電腦系統直流電源;::: 之作業系統起始運作。 电版系統 依據本揭不内容另一實施例,其中交流 測電腦系狀電源模組提供。提供待測電腦系統 源之步驟,係藉由遠端電源控制器控制電源模%^机電 端電源控制器係藉由遠端主機傳送智慧平台管理^ ^ 進行控制。 卸知令 201114219 依據本揭示内容又一實施例,重新啟動待測電腦系統 之步驟前,更包含:記錄測試迴圈次數;判斷測試迴圈次 數是否超過預設測試次數;以及當測試迴圈次數超過預設 測試次數,係終止測試。 依據本揭示内容再一實施例,當待測電腦系統之專用 網路介面控制器或共享網路介面控制器連線不正常,更包 含:記錄檢查次數;判斷檢查次數是否超過預設檢查次數; 以及當檢查次數超過預設檢查次數,係終止測試;當檢查 • 次數未超過預設檢查次數,係重覆檢查是否連線正常。 依據本揭示内容另一實施例,其中專用網路介面控制 器及共享網路介面控制器係為RJ45之介面。 應用本揭示内容之優點係在於藉由反覆自動地切換基 板管理控制器與專用網路介面控制器或共享網路介面控制 器之間的連線,來對基板管理控制器的網路連線功能進行 測試,可以節省人力測試的成本,而輕易地達到上述之目 的。 【實施方式】 請參照第1圖,係為本揭示内容之一實施例之網路連 線測試方法之一流程圖。網路連線測試方法是用以測試一 個待測電腦系統(未繪示)的基板管理控制器(未繪示) 的網路連線功能是否正常。網路連線測試方法包含下列步 驟:於步驟101,啟動待測電腦系統。實質上,啟動待測 電腦系統之動作,係為提供待測電腦系統一交流電源,來 使待測電腦系統開始運作。待測電腦系統上有許多的晶片 201114219 模組,其中基板管理控制器是一種設置於待測電腦系統的 主機板上’以對待測電腦系統進行控管的模組。在步驟 102,等到交流電源使待測電腦系統可以運作後,即開始使 基板管理控制器初始化。 °Interface Controller ; Share NIC). When the server is started, the operating system starts to operate, and the network can be accessed through the shared network interface controller through the control of the central processing unit. The baseboard management controller has its own Internet Protocol (IP pr) address, which can be accessed by one of the dedicated network interface controller and the shared network interface controller. The road is accessed. However, in the test phase of the server, the network connection function test of the baseboard management controller often requires manual execution of the switch machine and manual setting of the baseboard management controller and the dedicated network interface controller, and the baseboard management controller and sharing. Switching between connections between network interface controllers. In terms of manpower and time, it will be a waste of cost. Therefore, 'how to design a new network connection test method to automate the network connection test process of the baseboard management controller is a problem to be solved by the industry 亟201114219. [Inventive content] Therefore, one of the disclosures The aspect is to provide a network connection test method for testing whether the network connection of the baseboard management controller of the computer system to be tested is normal. The network connection test method includes the following steps: starting the computer system to be tested; initializing the baseboard management controller; and checking the baseboard management controller by using a dedicated network interface controller or a shared network interface controller of the computer system to be tested, and Whether the network connection is normal; when the substrate management device and the dedicated interface (4) n are connected, the substrate management is switched to the shared network interface controller, and the substrate management unit is widely connected to the network interface controller. The line is normal, the substrate management control "change: connected with the dedicated network interface control"; and restarting the brain replacement to the disclosure according to the present disclosure - the embodiment, restarting the ^^ step" further includes: closing the computer to be tested The DC power supply of the system stops the operation of the computer system; the power of the computer system to be tested is turned off to stop the operation of the substrate controller; and the AC power of the system is activated, and the computer line to be tested is started. Including: providing a DC power supply of the computer system to be tested;::: The operating system starts to operate. The electrotype system according to another embodiment of the disclosure, wherein the communication The computer system power supply module provides the step of providing the source of the computer system to be tested, and the power supply module is controlled by the remote power controller. The power supply controller is controlled by the remote host to transmit the smart platform management ^ ^ According to still another embodiment of the present disclosure, before the step of restarting the computer system to be tested, the method further includes: recording the number of test loops; determining whether the number of test loops exceeds the preset number of tests; and when testing the loop The number of times exceeds the preset number of tests, and the test is terminated. According to another embodiment of the present disclosure, when the connection of the dedicated network interface controller or the shared network interface controller of the computer system to be tested is abnormal, the number of records is checked. Whether to judge whether the number of inspections exceeds the preset number of inspections; and when the number of inspections exceeds the preset number of inspections, the test is terminated; when the number of inspections does not exceed the preset number of inspections, it is repeatedly checked whether the connection is normal. According to the disclosure In one embodiment, the dedicated network interface controller and the shared network interface controller are interfaces of the RJ45. The advantage of the disclosure is that the network connection function of the baseboard management controller is tested by automatically switching the connection between the baseboard management controller and the dedicated network interface controller or the shared network interface controller. The present invention can be easily achieved by saving the cost of the human test. [Embodiment] Please refer to FIG. 1 , which is a flowchart of a network connection test method according to an embodiment of the present disclosure. The line test method is used to test whether the network connection function of the baseboard management controller (not shown) of a computer system to be tested (not shown) is normal. The network connection test method includes the following steps: Start the computer system to be tested. In essence, the action of starting the computer system to be tested is to provide an AC power supply to the computer system to be tested, so that the computer system to be tested starts to operate. There are many chips 201114219 modules on the computer system to be tested. The substrate management controller is a module disposed on a motherboard of the computer system to be tested to control the computer system to be tested. In step 102, after the AC power source makes the computer system under test operational, the baseboard management controller is initialized. °
基板管理控制器具有使系統管理軟體與裝置硬體相溝 通的作用。基板管理控制器可以根據伺服器内的各種偵測 器,掌握伺服器内的各種情況,如溫度、風扇轉速、電源 ,式、作業系統狀態等等。除此之外,由於基板管理控制 态具有自己的網際網路協定位址,因此可以藉由專用網路 介面控制器(未緣示)與共享網路介面控制器(未綠示) 其t之一來對網路進行存取。 專用網路介面控制器及共享網路介面控制器於一實施 例中’係為RJ45之介面。其中,專用網路介面控制器是專 門給基板管理控制ϋ來使用,讀網路連線並進行存取的 通道。而共享網路介面控制器則是基板管理控制器與作業 j可以共同享用,以與網路連線並進行存取的通道。基 控制"Μ上在同—時間中,僅能透過專用網路介 ^控制H和共享網路介面㈣料巾之—來與網路做連 2測試基板管理控制器與網路連線的功能是否正 〜驟103,檢查基板管理控制器 :=介:控制器或共享網路介面控制器,二 檢貫際的測試方式,可以藉由網路傳送封包, 千網路介面控制器收到,或是由基板管理控制= 201114219 包,並檢查是否能由專用網路介面控制器或共享網路介面 控制器傳送出去。於其他實施例中,亦可能藉由其他的方 式來進行測試基板管理控制器與網路的連線是否正常,而 不為上述之方式所限。 當待測電腦系統之專用網路介面控制器或共享網路介 面控制器連線不正常時,執行步驟104,記錄一檢查次數, 並判斷檢查次數是否超過預設檢查次數。舉例來說,預設 檢查次數於一實施例中可設定為三次,如果並未超過三 φ 次,則回到步驟103重覆檢查,直到達到三次。而當檢查 次數超過預設檢查次數,例如上述的檢查次數已經到第四 次,卻仍然顯示連線不正常時,則進入步驟105,終止測 試。 當上述步驟103的檢查結果顯示基板管理控制器與專 用網路介面控制器連線正常時,則執行第1圖中的步驟103 下的實線一路的步驟106,將基板管理控制器切換至與共 享網路介面控制器相連。接著於步驟107,記錄測試迴圈 • 次數,並判斷測試迴圈次數是否超過預設測試次數。其中 測試迴圈次數係表示整個網路連線測試方法的流程總共已 經執行了幾次,每當執行過一次,測試迴圈次數就會增加。 當測試迴圈次數已經經過累加而超過預設測試次數時,即 表示測試已經完成,執行步驟105以終止測試。而當測試 迴圈次數尚未超過預設測試次數,則執行步驟108,重新 啟動待測電腦系統,以繼續進行測試。 而在另一情況中,當上述步驟103的檢查結果顯示基 板管理控制器與共享網路介面控制器連線正常,則執行第 201114219 1圖中的步驟103下的虛線一路的步驟1〇9,將基板管理控 制器切換至與專用網路介面控制器相連。並在切換動作= 畢後,再執行步驟107及1〇8來重新啟動待測電腦系統。 如此一來,步驟106及1〇9將在連續的測試迴圈中交替執 行,分別在待測電腦系統重新啟動後測試另一條網路通 道,以達到切換測試的目的。 於一實施例中,於步驟1 〇8重新啟動待測電腦系統 中,更包含如第2圖所示之各步驟。請參照第2圖,係為 • 本揭示内容之一實施例之網路連線測試方法中,重新啟動 待測電腦系統之步驟之更詳細的流程圖。 於步驟201,關閉待測電腦系統之直流電源,以使待 測電腦系統之作業系統停止運作。接著於步驟202,關閉 待測電腦系統之交流電源,以使基板管理控制器停止運 作。在關閉交流電源後,於一實施例中,實質上必需再等 待數十秒的時間’整個待測電腦系統所有内含的模組中的 電源才是真正完全的關閉。接著,執行步驟203,提供待 • 測電腦系統交流電源’俾啟動待測電腦系統,而完成重新 啟動的步驟。 上述之交流電源,係藉由待測電腦系統之電源模組(未 繪示)來提供。於一實施例中,交流電源的提供及關閉, 均可藉由一個遠端主機(未繪示)傳送智慧平台管理介面 (Intelligent Platform Management Interface ; IPMI)指令控 制遠端電源控制器(未繪示)後,再由遠端電源控制器來 控制電源模組完成。 實質上,由於基板管理控制器只需要接收交流電源, 201114219 即可開始運作,但是在基板管理控制器運作之後,仍然會 由電源模組繼續將交流電源轉換為直流電源,以使待測電 腦系統的其他模組開始運作,而進一步使待測電腦系統的 作業系統起始運作。 由上述本揭示内容實施方式可知,應用本揭示内容之 優點在於藉由反覆自動地重新啟動電腦系統以及切換基板 管理控制器與專用網路介面控制器或共享網路介面控制器 之間的連線,來對基板管理控制器的網路連線功能進行測 φ 試,可以節省人力測試的成本。 雖然本揭示内容已以實施方式揭露如上,然其並非用 以限定本揭示内容,任何熟習此技藝者,在不脫離本揭示 内容之精神和範圍内,當可作各種之更動與潤飾,因此本 揭示内容之保護範圍當視後附之申請專利範圍所界定者為 準。 【圖式簡單說明】 • 為讓本揭示内容之上述和其他目的、特徵、優點與實 施例能更明顯易懂,所附圖式之說明如下: 第1圖係為本揭示内容之一實施例之網路連線測試方 法之流程圖;以及 第2圖係為本揭示内容之一實施例之網路連線測試方 法中,重新啟動待測電腦系統之步驟之更詳細的流程圖。 201-203 :步驟 【主要元件符號說明】 101-109 :步驟The baseboard management controller has the function of channeling the system management software to the device hardware. The baseboard management controller can grasp various conditions in the server according to various detectors in the server, such as temperature, fan speed, power supply, operating system status, and so on. In addition, since the baseboard management control state has its own Internet Protocol address, it can be used by a dedicated network interface controller (not shown) and a shared network interface controller (not shown). One is to access the network. The dedicated network interface controller and shared network interface controller are in one embodiment a RJ45 interface. Among them, the dedicated network interface controller is dedicated to the baseboard management control to use, read the network connection and access channels. The shared network interface controller is a channel through which the baseboard management controller and the job j can be shared to access and access the network. Based on the same time, you can only control the H and share the network interface (4) the towel through the dedicated network to connect to the network. 2 Test the baseboard management controller and network connection. Whether the function is positive ~ step 103, check the substrate management controller: = interface: controller or shared network interface controller, the second test method can be transmitted through the network, the network interface controller receives Or by the Baseboard Management Control = 201114219 package and check if it can be transmitted by the dedicated network interface controller or the shared network interface controller. In other embodiments, it is also possible to test whether the connection between the test board management controller and the network is normal by other means, and is not limited to the above manner. When the connection between the dedicated network interface controller or the shared network interface controller of the computer system to be tested is abnormal, step 104 is executed to record an inspection number and determine whether the number of inspections exceeds the preset number of inspections. For example, the preset number of checks can be set to three times in one embodiment, and if it does not exceed three φ times, then return to step 103 for repeated checks until three times. When the number of inspections exceeds the preset number of inspections, for example, if the number of inspections mentioned above has reached the fourth time, but the connection is still abnormal, the process proceeds to step 105 to terminate the test. When the check result of the above step 103 indicates that the baseboard management controller and the dedicated network interface controller are normally connected, the step 106 of the solid line in step 103 in FIG. 1 is executed to switch the baseboard management controller to The shared network interface controller is connected. Next, in step 107, the test loop is counted, and the number of test loops is determined to exceed the preset number of tests. The number of test loops indicates that the entire network connection test method has been executed several times in total, and the number of test loops increases each time it is executed. When the number of test loops has been accumulated and exceeds the preset number of tests, it means that the test has been completed, and step 105 is executed to terminate the test. When the number of test loops has not exceeded the preset number of tests, step 108 is executed to restart the computer system to be tested to continue the test. In another case, when the check result of step 103 above indicates that the connection between the baseboard management controller and the shared network interface controller is normal, step 1〇9 of the dotted line in step 103 in the figure 201114219 1 is performed. Switch the baseboard management controller to connect to the dedicated network interface controller. After the switching action = complete, perform steps 107 and 1 to restart the computer system to be tested. In this way, steps 106 and 1〇9 will be alternately executed in successive test loops, and another network channel is tested after the computer system to be tested is restarted to achieve the purpose of the handover test. In an embodiment, in step 1 重新8, the computer system to be tested is restarted, and the steps as shown in FIG. 2 are further included. Please refer to FIG. 2, which is a more detailed flowchart of the steps of restarting the computer system to be tested in the network connection test method according to an embodiment of the present disclosure. In step 201, the DC power of the computer system to be tested is turned off, so that the operating system of the computer system to be tested stops operating. Next, in step 202, the AC power of the computer system to be tested is turned off to stop the baseboard management controller from operating. After the AC power is turned off, in an embodiment, it is substantially necessary to wait for tens of seconds. The power supply in all the modules included in the entire computer system under test is truly completely turned off. Then, step 203 is executed to provide the computer system AC power to be tested, and the computer system to be tested is started, and the restarting step is completed. The above AC power supply is provided by a power module (not shown) of the computer system to be tested. In an embodiment, the supply and shutdown of the AC power source can be controlled by a remote host (not shown) to transmit the intelligent platform management interface (IPMI) command to control the remote power controller (not shown) After that, the remote power controller controls the power module to complete. In essence, since the baseboard management controller only needs to receive AC power, 201114219 can be started. However, after the baseboard management controller is operated, the power supply module will continue to convert the AC power to DC power to make the computer system to be tested. The other modules are in operation, and the operating system of the computer system under test is further activated. It can be seen from the above embodiments of the present disclosure that the application of the present disclosure has the advantages of automatically restarting the computer system by repeatedly and switching the connection between the baseboard management controller and the dedicated network interface controller or the shared network interface controller. To test the network connection function of the baseboard management controller, the cost of the manpower test can be saved. The present disclosure has been disclosed in the above embodiments, but it is not intended to limit the disclosure, and any person skilled in the art can make various changes and refinements without departing from the spirit and scope of the disclosure. The scope of protection of the disclosure is subject to the definition of the scope of the patent application. BRIEF DESCRIPTION OF THE DRAWINGS The above and other objects, features, advantages and embodiments of the present invention will become more apparent and understood. A flowchart of a network connection test method; and FIG. 2 is a more detailed flowchart of the steps of restarting the computer system to be tested in the network connection test method according to an embodiment of the disclosure. 201-203 : Procedure [Explanation of main component symbols] 101-109 : Step