TWI689811B - Method of periodical record for event - Google Patents

Method of periodical record for event Download PDF

Info

Publication number
TWI689811B
TWI689811B TW107126740A TW107126740A TWI689811B TW I689811 B TWI689811 B TW I689811B TW 107126740 A TW107126740 A TW 107126740A TW 107126740 A TW107126740 A TW 107126740A TW I689811 B TWI689811 B TW I689811B
Authority
TW
Taiwan
Prior art keywords
management controller
power supply
substrate management
preset
logical variable
Prior art date
Application number
TW107126740A
Other languages
Chinese (zh)
Other versions
TW202008110A (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 TW107126740A priority Critical patent/TWI689811B/en
Publication of TW202008110A publication Critical patent/TW202008110A/en
Application granted granted Critical
Publication of TWI689811B publication Critical patent/TWI689811B/en

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

A method of periodic record for events including the following steps: accessing a register of a power supply unit by a baseboard management controller to obtain message related to the power supply unit; checking a status of a logical sensor of the power supply unit to determine whether a predictive failure status related to the power supply unit is detected or not according to the message and monitoring a preset logical variable by the baseboard management controller; when the predictive failure status related to the power supply unit is detected, generating an event log; determine whether the preset logical variable is true or not by the baseboard management controller; according to a result of monitoring the preset logical variable, executing a timing task selectively so as to determine whether to generate a control command by the baseboard management controller; generating another event log according to the control command by the baseboard management controller, with the another event log is different from the event log.

Description

週期性事件紀錄方法Periodic event recording method

本發明係關於一種週期性事件紀錄方法,特別是一種針對電源供應器的週期性事件紀錄方法。The invention relates to a periodic event recording method, in particular to a periodic event recording method for a power supply.

一般來說,伺服器內配置有基板管理控制器(Baseboard Management Controller, BMC),可用於監控感測器狀態,以產生相應的事件紀錄。舉例來說,基板管理控制器會把當前的感測器狀態與感應器資料記錄(SDR)內的相關資料參數進行比較。若是兩者匹配,則對應產生一個事件紀錄檔。Generally speaking, the server is equipped with a baseboard management controller (Baseboard Management Controller, BMC), which can be used to monitor the status of the sensor to generate corresponding event records. For example, the baseboard management controller compares the current sensor status with the relevant data parameters in the sensor data record (SDR). If the two match, an event log file is generated.

電源供應器預測故障(PSU predictive failure)係為一種告警狀態,主要是用於提示用戶電源供應器即將損壞,使用戶可以察覺以判斷更換電源供應器的時機。由於伺服器可儲存的事件紀錄檔的數量係為有限的,當數量達到上限時,舊的事件紀錄檔會被新的事件紀錄檔所覆蓋。PSU predictive failure (PSU predictive failure) is an alarm state, which is mainly used to prompt the user that the power supply is about to be damaged, so that the user can detect the timing of replacing the power supply. Since the number of event log files that can be stored by the server is limited, when the number reaches the upper limit, the old event log files will be overwritten by the new event log files.

假如當基板管理控制器檢測到電源供應器預測故障狀態時,會記錄一次事件的發生,亦即產生一個事件紀錄檔。若是用戶沒即時查看到此電源供應器的事件紀錄檔,則此事件紀錄檔會遭到其他的事件紀錄檔所覆蓋而導致無法有效提醒用戶。If the baseboard management controller detects that the power supply predicts a fault state, it will record the occurrence of an event, that is, generate an event log file. If the user does not see the event log file of the power supply in real time, the event log file will be overwritten by other event log files and the user cannot be effectively reminded.

本發明提出一種週期性事件紀錄方法,主要是當基板管理控制器檢測到電源供應器預測故障狀態時,週期性地產生事件紀錄,以反覆地警示用戶對電源供應器進行更換。The present invention proposes a periodic event recording method, which is mainly to generate an event record periodically when the substrate management controller detects the predicted failure state of the power supply to repeatedly warn the user to replace the power supply.

依據本發明之一實施例揭露一種週期性事件紀錄方法,包含以下步驟。以基板管理控制器讀取電源供應器的寄存器,以取得關聯於電源供應器的信息;以基板管理控制器依據信息確認電源供應器的邏輯感測器狀態以判斷是否偵測到電源供應器的預測失效狀態,且基板管理控制器監控預設邏輯變量;當基板管理控制器偵測到電源供應器的預測失效狀態時,對應產生一個事件紀錄;以基板管理控制器判斷預設邏輯變量是否為真;當判斷預設邏輯變量為真時,以基板管理控制器選擇性地執行計時任務,以決定是否產生控制命令;以及以基板管理控制器依據控制命令增加另一個事件紀錄,其中此另一個事件紀錄相異於前述的事件紀錄。According to one embodiment of the present invention, a periodic event recording method is disclosed, which includes the following steps. The baseboard management controller reads the power supply register to obtain the information related to the power supply; the baseboard management controller confirms the logic state of the power supply according to the information to determine whether the power supply is detected Predict failure status, and the baseboard management controller monitors the preset logic variables; when the baseboard management controller detects the predicted failure status of the power supply, an event record is generated accordingly; the baseboard management controller determines whether the preset logic variable is True; when it is judged that the preset logic variable is true, the baseboard management controller selectively executes timing tasks to determine whether to generate a control command; and the baseboard management controller adds another event record according to the control command, where the other The event record is different from the aforementioned event record.

綜上所述,於本發明提供的週期性事件紀錄方法中,以基板管理控制器判斷是否有檢測到電源供應器預測故障狀態。若有,則以基板管理控制器先產生一個事件紀錄,並且透過計時任務以決定是否增加下一個事件紀錄。基板管理控制器以此週期性的方式產生關於電源供應器的事件紀錄,可以避免被其他類型的事件所覆蓋,而達到反覆地將電源供應器即將失效的資訊提供予用戶得目的,進而驅使用戶盡早更換電源供應器。In summary, in the periodic event recording method provided by the present invention, the substrate management controller is used to determine whether the power supply is detected to have a predicted failure state. If there is, the baseboard management controller first generates an event record, and determines whether to add the next event record through the timing task. The baseboard management controller generates event records about the power supply in a periodic manner, which can avoid being covered by other types of events, and achieve the purpose of repeatedly providing information about the power supply's failure to the user, thereby driving the user Replace the power supply as soon as possible.

以上之關於本揭露內容之說明及以下之實施方式之說明係用以示範與解釋本發明之精神與原理,並且提供本發明之專利申請範圍更進一步之解釋。The above description of the disclosure and the following description of the embodiments are used to demonstrate and explain the spirit and principle of the present invention, and provide a further explanation of the scope of the patent application of the present invention.

以下在實施方式中詳細敘述本發明之詳細特徵以及優點,其內容足以使任何熟習相關技藝者了解本發明之技術內容並據以實施,且根據本說明書所揭露之內容、申請專利範圍及圖式,任何熟習相關技藝者可輕易地理解本發明相關之目的及優點。以下之實施例係進一步詳細說明本發明之觀點,但非以任何觀點限制本發明之範疇。The following describes in detail the detailed features and advantages of the present invention in the embodiments. The content is sufficient for any person skilled in the relevant art to understand and implement the technical content of the present invention, and according to the contents disclosed in this specification, the scope of patent application and the drawings Anyone skilled in the relevant art can easily understand the purpose and advantages of the present invention. The following examples further illustrate the views of the present invention in detail, but do not limit the scope of the present invention in any way.

請一併參照圖1與圖2,圖1係依據本發明之一實施例所繪示的伺服器的功能方塊圖,而圖2係依據本發明之一實施例所繪示的週期性事件紀錄方法的方法流程圖。圖2的週期性事件紀錄方法可由圖1的伺服器來執行。如圖1所示,伺服器1包含基板管理控制器(Baseboard Management Controller, BMC)10以及電源供應器12。於此實施例中,基板管理控制器10通過電源管理匯流排(Power Management Bus, PMbus)與電源供應器12進行通訊。實務上,伺服器1可包含其他基本元件,例如處理器、記憶體等,其為所屬領域習知的技術,在此不予贅述。Please refer to FIGS. 1 and 2 together. FIG. 1 is a functional block diagram of a server according to an embodiment of the present invention, and FIG. 2 is a periodic event record according to an embodiment of the present invention. Method flowchart of the method. The periodic event recording method of FIG. 2 can be executed by the server of FIG. 1. As shown in FIG. 1, the server 1 includes a baseboard management controller (Baseboard Management Controller, BMC) 10 and a power supply 12. In this embodiment, the baseboard management controller 10 communicates with the power supply 12 through a power management bus (Power Management Bus, PMbus). In practice, the server 1 may include other basic components, such as a processor, a memory, etc., which are conventional technologies in the art and will not be repeated here.

本發明之方法如圖2所示,於步驟S201中,一開始伺服器1的基板管理控制器10會先進行初使化的程序,以啟用基板管理控制器10的各項功能。接著,於步驟S202中,以基板管理控制器10讀取電源供應器12內的寄存器121,以取得關聯於電源供應器12的信息。於實際的例子中,所述的信息係為溫度信息、輸入/輸出功耗信息、輸入/輸出電壓信息或電源供應器的狀態信息其中之一。於實務上,電源供應器12具有寄存器121,其中寄存器121定義有一個關於電源供應器12運作訊息,例如前述的溫度信息、輸入/輸出功耗信息、輸入/輸出電壓信息或電源供應器的狀態信息等。在實際運作時,基板管理控制器10會每隔一段時間(例如每秒)讀取電源供應器12內的寄存器121以持續取得此訊息。於此例子中,僅以一個寄存器為例。然而,在實務上,電源供應器12可具有多個寄存器。The method of the present invention is shown in FIG. 2. In step S201, the substrate management controller 10 of the server 1 will first perform an initial program to enable various functions of the substrate management controller 10. Next, in step S202, the board management controller 10 reads the register 121 in the power supply 12 to obtain information related to the power supply 12. In a practical example, the information is one of temperature information, input/output power consumption information, input/output voltage information, or status information of the power supply. In practice, the power supply 12 has a register 121, where the register 121 defines a message about the operation of the power supply 12, such as the aforementioned temperature information, input/output power consumption information, input/output voltage information, or the status of the power supply Information etc. During actual operation, the BMC 10 will read the register 121 in the power supply 12 at regular intervals (for example, every second) to continuously obtain this information. In this example, only one register is used as an example. However, in practice, the power supply 12 may have multiple registers.

於步驟S203中,以基板管理控制器10依據此信息確認電源供應器12的邏輯感測器(logical sensor)狀態,以判斷是否偵測到電源供應器12的預測失效狀態(PSU predictive failure)。具體來說,當基板管理控制器10獲取電源供應器12內的寄存器121的訊息時,會根據此信息來確認對應此信息的邏輯感測器狀態,進而判斷電源供應器12內是否發生預測失效狀態。於步驟S204中,當基板管理控制器10判斷偵測到電源供應器12的預測失效狀態時,對應產生一個事件紀錄(event log)。於實務上,若基板管理控制器10確認對應此訊息的位元為1時,則判斷偵測到電源供應器12的預測失效狀態。反之,對應此訊息的位元為0時,則判斷未偵測到電源供應器12的預測失效狀態。In step S203, the board management controller 10 confirms the status of the logical sensor of the power supply 12 according to the information to determine whether the PSU predictive failure status is detected. Specifically, when the board management controller 10 obtains the information of the register 121 in the power supply 12, it will confirm the status of the logical sensor corresponding to this information according to this information, and then determine whether the predicted failure occurs in the power supply 12 status. In step S204, when the substrate management controller 10 determines that the predicted failure state of the power supply 12 is detected, an event log is generated correspondingly. In practice, if the substrate management controller 10 confirms that the bit corresponding to this message is 1, it determines that the predicted failure state of the power supply 12 is detected. On the contrary, when the bit corresponding to this message is 0, it is determined that the predicted failure state of the power supply 12 is not detected.

除了步驟S203之外,另一方面,此方法更包含:於步驟S205中,以基板管理控制器10監控預設邏輯變量。於步驟S206中,以基板管理控制器10依據預設邏輯變量的監控結果,選擇性地執行計時任務,以決定是否產生控制命令。若是基板管理控制器10根據前述的監控結果而決定產生控制命令,則於步驟S207中,以基板管理控制器10依據此控制命令增加另一個事件紀錄。於此實施例中,所述的另一事件紀錄與前述的事件紀錄係為二個獨立不同的事件紀錄。於本發明的方法中,一方面,基板管理控制器10可根據預測失效狀態將預設邏輯變量設定為真(TRUE)。另一方面,基板管理控制器10監控到預設邏輯變量為真(TRUE)時,判斷需要執行計時任務。接著,基板管理控制器10再依據計時任務的結果來決定是否產生控制命令以增加另一個事件紀錄。關於基板管理控制器10於本發明之方法中的運作方式將於下述段落中有詳細的描述。In addition to step S203, on the other hand, the method further includes: in step S205, the substrate management controller 10 monitors the preset logical variable. In step S206, the substrate management controller 10 selectively executes the timing task according to the monitoring result of the preset logical variable to determine whether to generate the control command. If the substrate management controller 10 determines to generate a control command according to the foregoing monitoring result, then in step S207, the substrate management controller 10 adds another event record according to the control command. In this embodiment, the another event record and the foregoing event record are two independent and different event records. In the method of the present invention, on the one hand, the baseboard management controller 10 may set the preset logical variable to TRUE according to the predicted failure state. On the other hand, when the substrate management controller 10 monitors that the preset logical variable is TRUE, it determines that the timing task needs to be performed. Then, the baseboard management controller 10 determines whether to generate a control command to add another event record according to the result of the timing task. The operation mode of the board management controller 10 in the method of the present invention will be described in detail in the following paragraphs.

請一併參照圖3A與圖3B,圖3A與圖3B係依據本發明之一實施例所繪示的週期性事件紀錄方法的細部方法流程圖。如圖所示,步驟S203所示的「以基板管理控制器10依據此信息確認電源供應器12的邏輯感測器狀態,以判斷是否偵測到電源供應器12的預測失效狀態」包含步驟S2031與S2032。於步驟S2031中,以基板管理控制器10將此信息與基板管理控制器10內存的預設參數進行比較,以產生比較結果。於步驟S2032中,以基板管理控制器10依據此比較結果判斷是否偵測到電源供應器12的預測失效狀態。詳細來說,基板管理控制器10可將讀取到的寄存器121內的訊息與存放於基板管理控制器10的感測器資料紀錄器102 (Sensor Data Record, SDR)的預設參數進行比較。若是比較結果顯示兩者相符合,則基板管理控制器10判斷偵測到電源供應器12的預測失效狀態,進而對應產生一個事件紀錄。Please refer to FIG. 3A and FIG. 3B together. FIG. 3A and FIG. 3B are detailed method flowcharts of a periodic event recording method according to an embodiment of the invention. As shown, step S203 "Confirming the logic sensor state of the power supply 12 based on this information with the board management controller 10 to determine whether the predicted failure state of the power supply 12 is detected" includes step S2031 With S2032. In step S2031, the board management controller 10 compares this information with preset parameters in the memory of the board management controller 10 to generate a comparison result. In step S2032, the substrate management controller 10 determines whether the predicted failure state of the power supply 12 is detected according to the comparison result. In detail, the baseboard management controller 10 can compare the information in the read register 121 with the preset parameters stored in the sensor data record 102 (SDR) of the baseboard management controller 10. If the comparison result shows that the two match, the substrate management controller 10 determines that the predicted failure state of the power supply 12 is detected, and accordingly generates an event record.

於一實施例中,步驟S204所述的「當基板管理控制器10偵測到電源供應器12的預測失效狀態時,對應產生一個事件紀錄」包含步驟S2041與S2042。於步驟S2041中,以基板管理控制器10將邏輯感測器狀態設定為失效狀態。於步驟S2042中,以基板管理控制器10將預設邏輯變量設置為真(TRUE)。亦即,當基板管理控制器10確認檢測到電源供應器12的預測失效狀態時,會把邏輯感測器狀態設定為失效狀態並且將預設邏輯變量設置為真(TRUE),藉此可對應產生前述的事件紀錄。於另一實施例中,此方法更包含步驟S208。當基板管理控制器10未偵測到電源供應器12的預測失效狀態時,於步驟S208中,以基板管理控制器10將感測器狀態設定為非失效狀態,且將預設邏輯變量設置為偽(FALSE),接著回到以基板管理控制器10確認是否偵測到電源供應器12的預測失效狀態的步驟。In one embodiment, the “when the substrate management controller 10 detects a predicted failure state of the power supply 12 corresponding to the event record” described in step S204 includes steps S2041 and S2042. In step S2041, the board management controller 10 sets the logic sensor state to the failure state. In step S2042, the baseboard management controller 10 sets the preset logical variable to TRUE. That is, when the substrate management controller 10 confirms that the predicted failure state of the power supply 12 is detected, it will set the logic sensor state to the failure state and set the preset logic variable to TRUE, which can correspond to Generate the aforementioned event record. In another embodiment, the method further includes step S208. When the board management controller 10 does not detect the predicted failure state of the power supply 12, in step S208, the board management controller 10 sets the sensor state to a non-failed state and sets the preset logic variable to FALSE, and then return to the step of using the board management controller 10 to confirm whether the predicted failure state of the power supply 12 is detected.

於一實施例中,步驟S205所示的「以基板管理控制器10監控預設邏輯變量」包含步驟S2051與S2052。於步驟S2051中,以基板管理控制器10偵測預設邏輯變量。於步驟S2052中,以基板管理控制器10判斷預設邏輯變量是否設置為真。也就是說,基板管理控制器10於監控程序中會持續偵測預設邏輯變量。當基板管理控制器10檢測到電源供應器12的預測失效狀態而將預設邏輯變量設置為真(TRUE)時,同一時間,基板管理控制器10藉由前述的監控程序而可得知預設邏輯變量係為真。In one embodiment, the "monitoring of preset logic variables with the board management controller 10" shown in step S205 includes steps S2051 and S2052. In step S2051, the substrate management controller 10 detects the preset logic variable. In step S2052, the board management controller 10 determines whether the preset logical variable is set to true. In other words, the baseboard management controller 10 continuously detects the preset logical variables in the monitoring process. When the board management controller 10 detects the predicted failure state of the power supply 12 and sets the preset logical variable to TRUE, at the same time, the board management controller 10 can learn the preset by the aforementioned monitoring procedure The logical variable is true.

於一實施例中,步驟S206的「以基板管理控制器10依據預設邏輯變量的監控結果,選擇性地執行計時任務,以決定是否產生控制命令」包含步驟S2061~S2064。當基板管理控制器10判斷預設邏輯變量設置為真時,於步驟S2061中,以基板管理控制器10執行計時任務以開始進行累加計時。於步驟S2062中,以基板管理控制器10判斷此累加計時是否達到預設時間。當基板管理控制器10的此累加計時達到所述的預設時間時,於步驟S2063中,以基板管理控制器10產生控制命令。實務上,如圖1所示,基板管理控制器10內部具有計時器101,可用於執行所述的計時任務。以實際例子來說明上述步驟,當基板管理控制器10判斷預設邏輯變量設置為真時,代表電源供應器12處於即將失效的狀態,因此基板管理控制器10會對應產生一個事件紀錄,亦即第一個事件紀錄。同時間,基板管理控制器10會啟用計時器101開始進行計時,例如計時器101以每秒加1的方式由0開始依序往上累加。In one embodiment, step S206 of "using the board management controller 10 to selectively execute a timing task to determine whether to generate a control command according to the monitoring result of the preset logical variable" includes steps S2061 to S2064. When the baseboard management controller 10 determines that the preset logical variable is set to true, in step S2061, the baseboard management controller 10 executes a timing task to start accumulating time. In step S2062, the substrate management controller 10 determines whether the accumulated timing reaches a preset time. When the accumulated timing of the board management controller 10 reaches the preset time, in step S2063, the board management controller 10 generates a control command. In practice, as shown in FIG. 1, the baseboard management controller 10 has a timer 101 inside, which can be used to perform the timing task. Taking a practical example to illustrate the above steps, when the substrate management controller 10 determines that the preset logical variable is set to true, it means that the power supply 12 is in the state of impending failure, so the substrate management controller 10 will correspondingly generate an event record, that is, The first event record. At the same time, the baseboard management controller 10 will enable the timer 101 to start timing. For example, the timer 101 increments by 1 every second and starts accumulating sequentially from 0.

假設於此例子中,所述的預設時間設為259200秒(即3天),當計時器101由0累加計時至259200時,基板管理控制器10便對應產生一個控制命令,且透過應用程式介面(Application Programming Interface, API)給自我發送此控制命令。接著,如同步驟S207所示,基板管理控制器10便可依據此控制命令增加另一個事件紀錄,亦即第二事件紀錄。所述的第二事件紀錄與前述的第一個事件紀錄係為於不同時間所產生之獨立的二個事件紀錄。此例子所述的預設時間僅係用於舉例說明,本發明不以此預設時間為限,用戶可根據實際所需決定週期的長度。Suppose that in this example, the preset time is set to 259200 seconds (that is, 3 days). When the timer 101 counts up from 0 to 259200, the baseboard management controller 10 correspondingly generates a control command, and through the application The interface (Application Programming Interface, API) sends this control command to self. Then, as shown in step S207, the substrate management controller 10 can add another event record according to the control command, that is, the second event record. The second event record and the aforementioned first event record are two independent event records generated at different times. The preset time described in this example is for illustration only. The present invention is not limited to this preset time, and the user can determine the length of the cycle according to actual needs.

換言之,於本發明的方法中,倘若用戶因未察覺第一個事件紀錄而導致未更換電源供應器12,則計時器101的累加計時可能會達到預設時間(例如3天)而使基板管理控制器10依據此控制命令產生第二事件紀錄,用於再次警示用戶應該對電源供應器12進行更換。以此週期性的事件紀錄方式反覆提醒用戶,可以避免因第一個事件紀錄被其他類型的事件紀錄所覆蓋,而導致用戶未察覺電源供應器12即將失效的資訊。於實際運作時,當基板管理控制器10增加第二事件紀錄之後,計時器101的計時歸零且回到判斷預設邏輯變量設置為真的步驟。若是用戶仍未對電源供應器12進行更換,則基板管理控制器10會於下一個週期(即再次計數達到259200秒)產生第三個事件紀錄。反之,若是用戶在計時器101的累加計時達到預設時間之前對電源供應器12進行更換,則計時器101便停止計時並使計時歸零,且回到步驟S2052。此時,由於電源供應器12已更換而偵測不到預測失效狀態,基板管理控制器10會將感測器狀態設定為非失效狀態,且將預設邏輯變量設置為偽(FALSE)。In other words, in the method of the present invention, if the user does not replace the power supply 12 due to the failure to notice the first event record, the accumulated time of the timer 101 may reach a preset time (for example, 3 days) to allow the substrate management The controller 10 generates a second event record according to the control command, which is used to warn the user again that the power supply 12 should be replaced. By reminding the user repeatedly in this periodic event recording mode, it is possible to avoid that the first event record is overwritten by other types of event records, causing the user to be unaware of the information that the power supply 12 is about to fail. In actual operation, after the baseboard management controller 10 adds the second event record, the timer 101 returns to zero and returns to the step of determining that the preset logical variable is set to true. If the user has not yet replaced the power supply 12, the baseboard management controller 10 will generate a third event record in the next cycle (ie, the count reaches 259200 seconds again). On the contrary, if the user replaces the power supply 12 before the accumulated time of the timer 101 reaches the preset time, the timer 101 stops counting and resets the time to zero, and returns to step S2052. At this time, since the power supply 12 has been replaced and the predicted failure state cannot be detected, the board management controller 10 sets the sensor state to the non-failure state and sets the preset logical variable to FALSE.

於一實施例中,當基板管理控制器10判斷預設邏輯變量設置為偽時,於步驟S2064中,基板管理控制器10將不執行此計時任務(計時器101的計時歸零),且回到以基板管理控制器10判斷預設邏輯變量是否為真的步驟。也就是說,預設邏輯變量設置為偽代表電源供應器12並處於非失效狀態,因此計時器101不需要進行計時來產生事件紀錄提醒用戶進行更換。In one embodiment, when the substrate management controller 10 determines that the preset logical variable is set to false, in step S2064, the substrate management controller 10 will not perform this timing task (the timer 101 returns to zero), and returns It is the step for the substrate management controller 10 to determine whether the preset logical variable is true. That is to say, the preset logical variable is set to be a pseudo representative power supply 12 and is in a non-failed state, so the timer 101 does not need to be timed to generate an event record to remind the user to replace it.

綜上所述,於本發明提供的週期性事件紀錄方法中,主要係以基板管理控制器判斷是否有檢測到電源供應器預測故障狀態。若有,則以基板管理控制器先產生一個事件紀錄,並且透過計時任務以決定是否增加下一個事件紀錄。基板管理控制器以此週期性的方式產生關於電源供應器的事件紀錄,可以避免被其他類型的事件所覆蓋,而達到反覆地將電源供應器即將失效的資訊提供予用戶得目的,進而驅使用戶盡早更換電源供應器。In summary, in the periodic event recording method provided by the present invention, the baseboard management controller is mainly used to determine whether a power supply failure condition is detected. If there is, the baseboard management controller first generates an event record, and determines whether to add the next event record through the timing task. The baseboard management controller generates event records about the power supply in a periodic manner, which can avoid being covered by other types of events, and achieve the purpose of repeatedly providing information about the power supply's failure to the user, thereby driving the user Replace the power supply as soon as possible.

雖然本發明以前述之實施例揭露如上,然其並非用以限定本發明。在不脫離本發明之精神和範圍內,所為之更動與潤飾,均屬本發明之專利保護範圍。關於本發明所界定之保護範圍請參考所附之申請專利範圍。Although the present invention is disclosed as the foregoing embodiments, it is not intended to limit the present invention. Without departing from the spirit and scope of the present invention, all modifications and retouching are within the scope of patent protection of the present invention. For the protection scope defined by the present invention, please refer to the attached patent application scope.

1  伺服器 10  基板管理控制器 12  電源供應器 101  計時器 102  感測器資料記錄器 121  寄存器1 Server 10 Baseboard management controller 12 Power supply 101 Timer 102 Sensor data recorder 121 Register

圖1係依據本發明之一實施例所繪示的伺服器的功能方塊圖。 圖2係依據本發明之一實施例所繪示的週期性事件紀錄方法的方法流程圖。 圖3A與圖3B係依據本發明之一實施例所繪示的週期性事件紀錄方法的細部方法流程圖。FIG. 1 is a functional block diagram of a server according to an embodiment of the invention. FIG. 2 is a flowchart of a method for recording a periodic event according to an embodiment of the invention. 3A and 3B are detailed method flowcharts of a periodic event recording method according to an embodiment of the invention.

Claims (9)

一種週期性事件紀錄方法,包含:以一基板管理控制器讀取一電源供應器的一寄存器,以取得關聯於該電源供應器的一信息;以該基板管理控制器依據該信息確認該電源供應器的一邏輯感測器狀態以判斷是否偵測到該電源供應器的一預測失效狀態,且以該基板管理控制器監控一預設邏輯變量;當該基板管理控制器偵測到該電源供應器的該預測失效狀態時,對應產生一事件紀錄;以該基板管理控制器依據該預設邏輯變量的監控結果,選擇性地執行一計時任務,以決定是否產生一控制命令;以及以該基板管理控制器依據該控制命令增加另一事件紀錄,其中該另一事件紀錄相異於該事件紀錄。A periodic event recording method includes: reading a register of a power supply with a substrate management controller to obtain a message associated with the power supply; confirming the power supply with the substrate management controller based on the information A logic sensor state of the device to determine whether a predicted failure state of the power supply is detected, and the substrate management controller monitors a preset logic variable; when the substrate management controller detects the power supply When the predicted failure status of the device is generated, an event record is correspondingly generated; the substrate management controller selectively executes a timing task according to the monitoring result of the preset logical variable to determine whether to generate a control command; and the substrate The management controller adds another event record according to the control command, wherein the other event record is different from the event record. 如請求項1所述的週期性事件紀錄方法,其中當該基板管理控制器偵測到該電源供應器的該預測失效狀態時,對應產生該事件紀錄包含以該基板管理控制器將該邏輯感測器狀態設定為一失效狀態且將該預設邏輯變量設置為真,以對應產生該事件紀錄。The periodic event recording method according to claim 1, wherein when the substrate management controller detects the predicted failure state of the power supply, correspondingly generating the event record includes using the substrate management controller to The state of the detector is set to a failure state and the preset logical variable is set to true to correspondingly generate the event record. 如請求項1所述的週期性事件紀錄方法,其中以該基板管理控制器監控該預設邏輯變量包含:以該基板管理控制器偵測該預設邏輯變量;以及以該基板管理控制器判斷該預設邏輯變量是否設置為真。The periodic event recording method according to claim 1, wherein monitoring the preset logical variable with the substrate management controller includes: detecting the preset logical variable with the substrate management controller; and determining with the substrate management controller Whether the preset logical variable is set to true. 如請求項3所述的週期性事件紀錄方法,其中以該基板管理控制器依據該預設邏輯變量的監控結果,選擇性地執行該計時任務,以決定是否產生該控制命令包含:當該基板管理控制器判斷該預設邏輯變量設置為真時,以該基板管理控制器執行該計時任務以開始進行一累加計時;以及當該基板管理控制器的該累加計時達到一預設時間時,以該基板管理控制器產生該控制命令。The periodic event recording method according to claim 3, wherein the substrate management controller selectively executes the timing task according to the monitoring result of the preset logic variable to determine whether to generate the control command includes: when the substrate When the management controller determines that the preset logical variable is set to true, the baseboard management controller executes the timing task to start an accumulated time; and when the accumulated time of the baseboard management controller reaches a preset time, the The baseboard management controller generates the control command. 如請求項4所述的週期性事件紀錄方法,其中以該基板管理控制器依據該預設邏輯變量的監控結果,選擇性地執行該計時任務,以決定是否產生該控制命令更包含:當該基板管理控制器的該累加計時未達到該預設時間時,回到以該基板管理控制器判斷該預設邏輯變量是否為真的步驟。The periodic event recording method according to claim 4, wherein the substrate management controller selectively executes the timing task according to the monitoring result of the preset logical variable to determine whether to generate the control command further includes: When the accumulated timing of the baseboard management controller does not reach the preset time, it returns to the step of using the baseboard management controller to determine whether the preset logical variable is true. 如請求項3所述的週期性事件紀錄方法,其中以該基板管理控制器依據該預設邏輯變量的監控結果,選擇性地執行該計時任務,以決定是否產生該控制命令更包含:當該基板管理控制器判斷該預設邏輯變量設置為偽時,該基板管理控制器不執行該計時任務,且回到以該基板管理控制器判斷該預設邏輯變量是否為真的步驟。The periodic event recording method according to claim 3, wherein the substrate management controller selectively executes the timing task according to the monitoring result of the preset logical variable to determine whether to generate the control command further includes: When the substrate management controller determines that the preset logical variable is set to false, the substrate management controller does not perform the timing task, and returns to the step of determining whether the preset logical variable is true by the substrate management controller. 如請求項1所述的週期性事件紀錄方法,更包含:當該基板管理控制器未偵測到該電源供應器的該預測失效狀態時,以該基板管理控制器將該感測器狀態設定為一非失效狀態且將該預設邏輯變量設置為偽,且回到以該基板管理控制器確認是否偵測到該電源供應器的該預測失效狀態的步驟。The periodic event recording method according to claim 1, further comprising: when the substrate management controller does not detect the predicted failure state of the power supply, the substrate management controller sets the sensor state It is a non-failure state and the preset logical variable is set to false, and the process returns to the step of confirming whether the predicted failure state of the power supply is detected by the substrate management controller. 如請求項1所述的週期性事件紀錄方法,其中以該基板管理控制器依據該信息確認該電源供應器的該邏輯感測器狀態以判斷是否偵測到該電源供應器的該預測失效狀態包含:以該基板管理控制器將該信息與該基板管理控制器內存的一預設參數進行比較,以產生一比較結果;以及以該基板管理控制器依據該比較結果判斷是否偵測到該電源供應器的該預測失效狀態。The periodic event recording method of claim 1, wherein the substrate management controller confirms the logic sensor state of the power supply according to the information to determine whether the predicted failure state of the power supply is detected The method includes: comparing the information with the substrate management controller to a preset parameter in the memory of the substrate management controller to generate a comparison result; and determining whether the power supply is detected according to the comparison result with the substrate management controller This predicted failure status of the supplier. 如請求項1所述的週期性事件紀錄方法,其中該信息包含一溫度信息、一輸入/輸出功耗信息、一輸入/輸出電壓信息或一狀態信息其中之一。The periodic event recording method according to claim 1, wherein the information includes one of temperature information, input/output power consumption information, input/output voltage information, or status information.
TW107126740A 2018-08-01 2018-08-01 Method of periodical record for event TWI689811B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW107126740A TWI689811B (en) 2018-08-01 2018-08-01 Method of periodical record for event

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW107126740A TWI689811B (en) 2018-08-01 2018-08-01 Method of periodical record for event

Publications (2)

Publication Number Publication Date
TW202008110A TW202008110A (en) 2020-02-16
TWI689811B true TWI689811B (en) 2020-04-01

Family

ID=70412733

Family Applications (1)

Application Number Title Priority Date Filing Date
TW107126740A TWI689811B (en) 2018-08-01 2018-08-01 Method of periodical record for event

Country Status (1)

Country Link
TW (1) TWI689811B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI809448B (en) * 2021-07-13 2023-07-21 光寶科技股份有限公司 Event recorder and method thereof

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI830573B (en) * 2023-01-09 2024-01-21 信驊科技股份有限公司 Baseboard management controller and control method thereof

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW201508464A (en) * 2013-08-28 2015-03-01 Inventec Corp Filtration method for abnormal sensing data of monitoring chip
TW201508622A (en) * 2013-08-23 2015-03-01 Ibm Electronic apparatus and data rolling method thereof
TW201533581A (en) * 2014-02-27 2015-09-01 Acer Inc Server monitoring device and server monitoring method
TW201617911A (en) * 2014-11-03 2016-05-16 廣達電腦股份有限公司 Computer-readable medium and multiple-protocol-system-management method and system
TW201714432A (en) * 2015-10-14 2017-04-16 廣達電腦股份有限公司 Management methods, service controller devices and non-stransitory, computer-readable media
TW201714108A (en) * 2015-10-14 2017-04-16 廣達電腦股份有限公司 Security management method, computing system and non-transitory computer-readable storage medium
TW201715395A (en) * 2015-10-16 2017-05-01 廣達電腦股份有限公司 Method for recovering a baseboard management controller and baseboard management controller
TW201715386A (en) * 2015-10-30 2017-05-01 信驊科技股份有限公司 Server system with BMC having hard disk drive monitoring function
TW201727500A (en) * 2016-01-27 2017-08-01 廣達電腦股份有限公司 Fan management method, server system and non-transitory computer-readable medium
TW201730831A (en) * 2016-02-24 2017-09-01 神達電腦股份有限公司 Error detection system, error detection method and power management system

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW201508622A (en) * 2013-08-23 2015-03-01 Ibm Electronic apparatus and data rolling method thereof
TW201508464A (en) * 2013-08-28 2015-03-01 Inventec Corp Filtration method for abnormal sensing data of monitoring chip
TW201533581A (en) * 2014-02-27 2015-09-01 Acer Inc Server monitoring device and server monitoring method
TW201617911A (en) * 2014-11-03 2016-05-16 廣達電腦股份有限公司 Computer-readable medium and multiple-protocol-system-management method and system
TW201714432A (en) * 2015-10-14 2017-04-16 廣達電腦股份有限公司 Management methods, service controller devices and non-stransitory, computer-readable media
TW201714108A (en) * 2015-10-14 2017-04-16 廣達電腦股份有限公司 Security management method, computing system and non-transitory computer-readable storage medium
TW201715395A (en) * 2015-10-16 2017-05-01 廣達電腦股份有限公司 Method for recovering a baseboard management controller and baseboard management controller
TW201715386A (en) * 2015-10-30 2017-05-01 信驊科技股份有限公司 Server system with BMC having hard disk drive monitoring function
TW201727500A (en) * 2016-01-27 2017-08-01 廣達電腦股份有限公司 Fan management method, server system and non-transitory computer-readable medium
TW201730831A (en) * 2016-02-24 2017-09-01 神達電腦股份有限公司 Error detection system, error detection method and power management system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI809448B (en) * 2021-07-13 2023-07-21 光寶科技股份有限公司 Event recorder and method thereof

Also Published As

Publication number Publication date
TW202008110A (en) 2020-02-16

Similar Documents

Publication Publication Date Title
CN109116963B (en) Periodic event recording method
KR100750030B1 (en) Method and apparatus to establish, report and adjust system memory usage
US9317350B2 (en) Method and apparatus for faulty memory utilization
US8423718B2 (en) Low-overhead run-time memory leak detection and recovery
US8677189B2 (en) Recovering from stack corruption faults in embedded software systems
JP2006107430A (en) Method, system and device for identification of no response section of computer program
WO2014043667A1 (en) Logic based approach for system behavior diagnosis
TWI689811B (en) Method of periodical record for event
CN107145410A (en) After a kind of system exception power down it is automatic on establish the method, system and equipment of machine by cable
US7788543B2 (en) Methods and systems for generating and storing computer program execution trace data
US8150655B2 (en) Characterizing a computer system using a pattern-recognition model
KR20210065301A (en) Method for designing software of based autosar and apparatus for executing the method
JP5504604B2 (en) RAM diagnostic device
JP6880961B2 (en) Information processing device and log recording method
JP2016066139A (en) Vehicle control unit
JP2010257340A (en) Information processor, information processing method and program
JP2011076344A (en) Information processing apparatus, method of controlling information processing apparatus and control program
JP5133649B2 (en) Electronic device and memory management program
JP2013003633A (en) Failure reproduction device and failure reproduction method
GB2590416A (en) Logistic model for code management
JP6677119B2 (en) Electronic control unit
JP6914430B2 (en) Memory diagnostic device and memory diagnostic method
JP7117948B2 (en) Electronics
JP4930080B2 (en) Fault monitoring device for timer circuit
JPH05346883A (en) Management system for file and program