[go: up one dir, main page]

TWI815722B - System and method for pre-judging situation of server before test according to server log data - Google Patents

System and method for pre-judging situation of server before test according to server log data Download PDF

Info

Publication number
TWI815722B
TWI815722B TW111142328A TW111142328A TWI815722B TW I815722 B TWI815722 B TW I815722B TW 111142328 A TW111142328 A TW 111142328A TW 111142328 A TW111142328 A TW 111142328A TW I815722 B TWI815722 B TW I815722B
Authority
TW
Taiwan
Prior art keywords
server
data
abnormal
module
log data
Prior art date
Application number
TW111142328A
Other languages
Chinese (zh)
Other versions
TW202420094A (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 TW111142328A priority Critical patent/TWI815722B/en
Application granted granted Critical
Publication of TWI815722B publication Critical patent/TWI815722B/en
Publication of TW202420094A publication Critical patent/TW202420094A/en

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)
  • Hardware Redundancy (AREA)

Abstract

A system and method is provided for pre-judging situation of a server before test according to a server log data. In the system and method, before executing a test flow, when an abnormal character string data comparison unit compares a configuration text of the server log data includes at least one abnormal-related character string, the server is defined as an abnormal server, which does not comply with a test requirement. Moreover, when a monitoring data comparison unit compares at least one monitoring data of the server log data being out of the at least one respective requirement range for test, the server is also defined as the abnormal server, and further more an abnormal-information generation module generates an abnormal information when the server is finally determined as the abnormal server before executing the test flow.

Description

利用伺服器日誌資料於測試前預先判 斷伺服器狀態之判斷系統與判斷方法 Use server log data to predict before testing Judgment system and method for disconnecting server status

本發明係有關於一種判斷系統與判斷方法,尤其是指一種利用伺服器日誌資料於測試前預先判斷伺服器狀態之判斷系統與判斷方法。The present invention relates to a judgment system and a judgment method, and in particular to a judgment system and judgment method that utilizes server log data to pre-judge server status before testing.

隨著電子產品的精緻化,有越來越多功能精密的模組建構在電子產品內,為了更有效率地監控與管理電子產品生產線,必須結合使用大量的監視與控制模組,並利用物聯網、區域網路與網際網路等管道來傳遞大量的監視與控制數據,並加以儲存與管理。在此情況下,每一條生產線多半會配置至少一工作伺服器,且每一工作伺服器最少用於支援該條生產線之至少一個工作站的監視、控制與管制工作。With the sophistication of electronic products, more and more modules with sophisticated functions are built into electronic products. In order to monitor and manage electronic product production lines more efficiently, a large number of monitoring and control modules must be used in conjunction with the use of physical Networks, local area networks and the Internet are used to transmit a large amount of monitoring and control data, and to store and manage them. In this case, each production line is likely to be configured with at least one work server, and each work server is used to support the monitoring, control and management of at least one workstation of the production line.

因應產線監控與管理的需要,產線伺服器記載了大量的控制與管理規則。為了確保產線伺服器能夠依據適當的控制與管理規則來對產線進行正確而有效的管理,通常會利用至少一控制伺服器所提供之測試工具軟體來進行檢測。特別是在工作伺服器在特定工作站所提供的工作內容或服務內容發生問題時,通常會利用控制伺服器對應於該工作站所提供的測試工具軟體來對工作伺服器進行測試以排除錯誤。In response to the needs of production line monitoring and management, the production line server records a large number of control and management rules. In order to ensure that the production line server can correctly and effectively manage the production line according to appropriate control and management rules, testing tool software provided by at least one control server is usually used for detection. Especially when there is a problem with the work content or service content provided by the work server on a specific workstation, the test tool software provided by the control server corresponding to the workstation is usually used to test the work server to eliminate errors.

然而,利用測試工具軟體的方式,往往需要花費較長的時間來逐一執行各項測試;因此,在某些情況下,會採用調閱並解析伺服器日誌資料中的配置文件以在測試前預先判斷伺服器之狀態。在現有對伺服器日誌資料多半採用字串比對的方式來進行判斷,也就是比對伺服器日誌資料的配置文件中是否存在與異常狀態相關聯的字串,若存在與異常狀態相關聯的字串,就判斷伺服器處於不符合測試需求的異常狀態。接著,可利用比對所得到的異常信息,對伺服器進行軟體、韌體或硬體方面的適度調整與修改而符合測試需求,藉以將低測試結果為失敗的機率。However, using testing tool software often takes a long time to execute each test one by one; therefore, in some cases, configuration files in server log data are read and parsed to pre-test before testing. Determine the status of the server. Most of the existing server log data are judged by string comparison, that is, whether there is a string associated with the abnormal state in the configuration file of the server log data. If there is a string associated with the abnormal state, String, it is judged that the server is in an abnormal state that does not meet the test requirements. Then, the abnormal information obtained from the comparison can be used to make appropriate adjustments and modifications to the server's software, firmware, or hardware to meet the test requirements, thereby reducing low test results to the probability of failure.

然而,有些配置文件中多半只定義了伺服器的存取路徑、連結路徑、連結位址與支援硬體等配置信息,並無法完全從中判斷伺服器目前的狀態是否滿足測試需求,導致誤判率高,失去早期預知狀態的實質意義。However, some configuration files mostly only define configuration information such as the server's access path, link path, link address, and supporting hardware. It is impossible to fully determine whether the current status of the server meets the test requirements, resulting in a high misjudgment rate. , losing the substantial meaning of early prediction state.

有鑒於在先前技術中,普遍存在對伺服器目前的狀態是否滿足測試需求的誤判率偏高的潛在問題,本發明為解決先前技術之問題所採用之其中一種必要技術手段為提供一種利用伺服器日誌資料於測試前預先判斷伺服器狀態之判斷系統(以下簡稱「判斷系統」)。In view of the common potential problem in the prior art that the misjudgment rate of whether the current status of the server meets the test requirements is relatively high, one of the necessary technical means adopted by the present invention to solve the problems of the prior art is to provide a method for using the server A judgment system (hereinafter referred to as the "Judgment System") that uses log data to pre-judge the status of the server before testing.

判斷系統包含一資料擷取模組、一儲存模組、一比對模組與一異常信息生成模組。資料擷取模組係用以在一伺服器進行測試前,預先擷取伺服器所儲存之一伺服器日誌資料,伺服器日誌資料包含一配置文件與對應於至少一監控項目之至少一前次監控數據。The judgment system includes a data acquisition module, a storage module, a comparison module and an abnormal information generation module. The data retrieval module is used to pre-retrieve a server log data stored in the server before testing the server. The server log data includes a configuration file and at least one previous time corresponding to at least one monitoring item. Monitor data.

儲存模組係建立有一異常字串資料庫與一測試要求資料庫,異常字串資料庫中定義了複數個異常關聯字串,測試要求資料庫中定義了對應於監控項目之至少一要求數據範圍。比對模組係耦接於資料擷取模組與儲存模組,並且包含一異常字串資料比對單元與一監控數據比對單元。The storage module establishes an exception string database and a test requirement database. The exception string database defines a plurality of exception-related strings, and the test requirement database defines at least one requirement data range corresponding to the monitoring project. . The comparison module is coupled to the data acquisition module and the storage module, and includes an abnormal string data comparison unit and a monitoring data comparison unit.

異常字串資料比對單元係在比對出配置文件中具備該些異常關聯字串中之至少一者時,將伺服器定義為狀態不符合測試要求之一異常伺服器。監控數據比對單元,係在比對出該配置文件中不具備該些異常關聯字串中之至少一者,繼續比對出前次監控數據落於對應之要求數據範圍外時,將伺服器亦定義為異常伺服器。異常信息生成模組係耦接於比對模組,藉以在伺服器進行測試前,依據比對模組所定義之異常伺服器生成一異常信息。The abnormal string data comparison unit defines the server as an abnormal server whose status does not meet the test requirements when the compared configuration file contains at least one of the abnormal related strings. The monitoring data comparison unit, after comparing that the configuration file does not contain at least one of the abnormal related strings, continues to compare and finds that the previous monitoring data falls outside the corresponding required data range, the server will also Defined as an exception server. The exception information generation module is coupled to the comparison module to generate an exception information based on the abnormal server defined by the comparison module before the server is tested.

在上述必要技術手段的基礎下,所延伸出之附屬技術手段中,較佳者,判斷系統更包含一列印模組,列印模組係通信連接於異常信息生成模組,藉以列印異常信息。資料擷取模組可為一伺服器日誌資料讀取器。監控項目包含伺服器之伺服器核心溫度、硬碟殘餘可用容量與資料存取速度中之至少一者。On the basis of the above necessary technical means, among the extended auxiliary technical means, preferably, the judgment system further includes a printing module. The printing module is communicatively connected to the abnormal information generation module to print the abnormal information. . The data retrieval module may be a server log data reader. The monitoring items include at least one of the server core temperature, hard disk remaining available capacity, and data access speed of the server.

本發明為解決先前技術之問題所採用之另一種必要技術手段為提供一種利用伺服器日誌資料於測試前預先判斷伺服器狀態之判斷方法(以下簡稱「判斷方法」)。在此判斷方法中,首先,在一儲存模組預先建立一異常字串資料庫與一測試要求資料庫,異常字串資料庫中定義了複數個異常關聯字串,且測試要求資料庫中定義了對應於監控項目之至少一要求數據範圍。Another necessary technical means used by the present invention to solve the problems of the prior art is to provide a judgment method (hereinafter referred to as the "judgment method") that uses server log data to pre-judge the server status before testing. In this judgment method, first, an exception string database and a test requirement database are pre-established in a storage module. A plurality of exception-related strings are defined in the exception string database, and a plurality of exception-related strings are defined in the test requirement database. At least one required data range corresponding to the monitoring item is specified.

接著,在一伺服器進行測試前,利用一資料擷取模組預先擷取伺服器所儲存之一伺服器日誌資料,伺服器日誌資料包含一配置文件與對應於監控項目之至少一前次監控數據。在利用一比對模組之一異常字串資料比對單元比對出配置文件中具備該些異常關聯字串中之至少一者時,將伺服器定義為狀態不符合測試要求之一異常伺服器。此外,若比對出該配置文件中不具備該些異常關聯字串中之至少一者,繼續利用比對模組之一監控數據比對單元,在比對出前次監控數據落於對應之要求數據範圍外時,將伺服器亦定義為異常伺服器。最後,利用一異常信息生成模組,在伺服器進行測試前,依據比對模組所定義之異常伺服器生成一異常信息。Then, before a server is tested, a data retrieval module is used to pre-retrieve a server log data stored in the server. The server log data includes a configuration file and at least one previous monitoring corresponding to the monitoring item. data. When the abnormal string data comparison unit of a comparison module is used to compare the configuration file with at least one of the abnormal related strings, the server is defined as an abnormal server whose status does not meet the test requirements. device. In addition, if the comparison shows that the configuration file does not contain at least one of the abnormal related strings, continue to use one of the monitoring data comparison units of the comparison module to compare and find that the previous monitoring data falls within the corresponding requirements. When the data is outside the range, the server is also defined as an abnormal server. Finally, an exception information generation module is used to generate an exception information based on the abnormal server defined by the comparison module before the server is tested.

在上述必要技術手段的基礎下,所延伸出之附屬技術手段中,較佳者,可利用一列印模組列印出異常信息。On the basis of the above necessary technical means, among the extended auxiliary technical means, the best one is to use a printing module to print out the abnormal information.

承上所述,由於在本發明所提供之利用伺服器日誌資料判斷伺服器狀態之判斷技術(包含判斷系統與判斷方法)中,係結合異常關聯字串比對與監控數據比對這二種比對技術,因此,可在進行全面測試之前,即可對伺服器目前的狀態是否滿足測試需求進行精準的判斷,並作為測試前進行調整與修改的參考依據,以便有效提升後續通過全面性測試的機率,藉以降低重新進行全面性測試的機率而提升整體效率。As mentioned above, in the judgment technology (including judgment system and judgment method) for using server log data to judge server status provided by the present invention, the two types of abnormality-related string comparison and monitoring data comparison are combined. Comparison technology, therefore, before conducting a comprehensive test, you can accurately judge whether the current status of the server meets the test requirements, and use it as a reference for adjustments and modifications before the test, so as to effectively improve the subsequent comprehensive test. probability, thereby reducing the probability of re-conducting comprehensive testing and improving overall efficiency.

由於本發明所提供之利用伺服器日誌資料於測試前預先判斷伺服器狀態之判斷技術(包含判斷系統及判斷方法),可廣泛運用於判斷各種伺服器之狀況為正常或異常,故在此不再一一贅述,僅列舉其中較佳的一個實施例來加以具體說明。此外,在各實施例中的圖式均採用非常簡化的形式,各元件之間並非使用絕對精準的比例加以呈現,僅用以方便、明晰地輔助說明本發明實施例的目的與功效。Since the judgment technology (including judgment system and judgment method) provided by the present invention for using server log data to pre-judge server status before testing can be widely used to judge whether the status of various servers is normal or abnormal, it will not be discussed here. Again, only one of the preferred embodiments will be listed for detailed description. In addition, the drawings in each embodiment are in a very simplified form, and the components are not presented in absolutely precise proportions. They are only used to conveniently and clearly assist in explaining the purpose and effect of the embodiments of the present invention.

請參閱第一圖,其係顯示本發明較佳實施例所提供之利用伺服器日誌資料於測試前預先判斷伺服器狀態之判斷系統之功能方塊示意圖。如第一圖所示,一種利用伺服器日誌資料於測試前預先判斷伺服器狀態之判斷系統(以下簡稱「判斷系統」)100,包含一資料擷取模組1、一儲存模組2、一比對模組3、一異常信息生成模組4與一列印模組5。Please refer to the first figure, which is a schematic functional block diagram of a judgment system that uses server log data to pre-judge server status before testing provided by a preferred embodiment of the present invention. As shown in the first figure, a judgment system (hereinafter referred to as the "judgment system") 100 that uses server log data to pre-judge server status before testing includes a data retrieval module 1, a storage module 2, and a Comparison module 3, an exception information generation module 4 and a printing module 5.

資料擷取模組1係用以擷取一伺服器200所儲存之一伺服器日誌資料201;因此,資料擷取模組1可為用以讀取伺服器日誌資料201之一伺服器日誌資料讀取器。伺服器日誌資料201包含一配置文件201a與對應於至少一監控項目之至少一前次監控數據201b。監控項目包含伺服器200之伺服器核心溫度、硬碟殘餘可用容量與資料存取速度中之至少一者。The data retrieval module 1 is used to retrieve a server log data 201 stored in a server 200; therefore, the data retrieval module 1 can be a server log data used to read the server log data 201 reader. The server log data 201 includes a configuration file 201a and at least one previous monitoring data 201b corresponding to at least one monitoring item. The monitoring items include at least one of server core temperature, hard disk remaining available capacity, and data access speed of the server 200 .

儲存模組2係預先建立一異常字串資料庫21與一測試要求資料庫22。異常字串資料庫21中定義了複數個異常關聯字串211,且測試要求資料庫22中定義了對應於監控項目之至少一要求數據範圍221。The storage module 2 pre-establishes an exception string database 21 and a test request database 22. A plurality of exception-related strings 211 are defined in the exception string database 21, and at least one requirement data range 221 corresponding to the monitoring item is defined in the test requirement database 22.

比對模組3係耦接於資料擷取模組1與儲存模組2,並且包含一異常字串資料比對單元31與一監控數據比對單元32。異常字串資料比對單元31係在比對出配置文件201a中具備該些異常關聯字串211中之至少一者時,將伺服器200定義為狀態不符合測試要求之一異常伺服器。監控數據比對單元32在係比對出前次監控數據201b落於對應之要求數據範圍221外時,將伺服器200亦定義為異常伺服器。異常信息生成模組4係耦接於比對模組3,藉以在伺服器200進行測試前,依據比對模組3所定義之異常伺服器生成一異常信息。The comparison module 3 is coupled to the data acquisition module 1 and the storage module 2, and includes an abnormal string data comparison unit 31 and a monitoring data comparison unit 32. When the abnormal string data comparison unit 31 compares the configuration file 201a with at least one of the abnormal related strings 211, it defines the server 200 as an abnormal server whose status does not meet the test requirements. When the monitoring data comparison unit 32 compares and finds that the previous monitoring data 201b falls outside the corresponding required data range 221, the server 200 is also defined as an abnormal server. The exception information generation module 4 is coupled to the comparison module 3 to generate an exception information based on the abnormal server defined by the comparison module 3 before the server 200 is tested.

列印模組5係通信連接於異常信息生成模組4,藉以列印異常信息。此外,異常信息還可被傳送至一管理者所操作之一終端裝置(如工業電腦、個人電腦或行動通信裝置),使管理者能即時知悉異常信息。The printing module 5 is communicatively connected to the exception information generation module 4 to print the exception information. In addition, the abnormal information can also be transmitted to a terminal device (such as an industrial computer, a personal computer or a mobile communication device) operated by a manager, so that the manager can be informed of the abnormal information in real time.

舉例而言,若在其中一種狀況下,伺服器200之伺服器日誌資料201之配置文件201a中之內容包含「$path/$file_err」字串;在異常字串資料庫21中定義出之異常關聯字串211包含「$path/$file_err」。此時,異常字串資料比對單元31會比對出伺服器日誌資料201之配置文件201a中具備異常關聯字串211「$path/$file_err」,表示配置文件201a中存在檔案路徑錯誤的問題,不符合測試要求;因而將伺服器200定義為狀態不符合測試要求之異常伺服器。For example, if in one of the situations, the content in the configuration file 201a of the server log data 201 of the server 200 includes the string "$path/$file_err"; the exception defined in the exception string database 21 The associated string 211 includes "$path/$file_err". At this time, the abnormal string data comparison unit 31 will compare and find that the configuration file 201a of the server log data 201 contains the exception-related string 211 "$path/$file_err", indicating that there is a file path error in the configuration file 201a. , does not meet the test requirements; therefore, the server 200 is defined as an abnormal server whose status does not meet the test requirements.

舉例而言,若在另一種狀況下,即便伺服器日誌資料201之配置文件201a完全不具備異常關聯字串211,若前次監控數據201b顯示硬碟殘餘可用容量10Gb,測試要求資料庫22中定義了對應於硬碟殘餘可用容量之至少一要求數據範圍221為大於20 Gb,此時,監控數據比對單元32會比對出前次監控數據201b落於對應之要求數據範圍221外,也一樣會將伺服器200定義為狀態不符合測試要求之異常伺服器。For example, if in another situation, even if the configuration file 201a of the server log data 201 does not have the exception-related string 211 at all, if the last monitoring data 201b shows that the remaining available capacity of the hard disk is 10Gb, the test request database 22 At least one required data range 221 corresponding to the remaining available capacity of the hard disk is defined to be greater than 20 Gb. At this time, the monitoring data comparison unit 32 will compare and find that the previous monitoring data 201b falls outside the corresponding required data range 221, and the same is true Server 200 will be defined as an abnormal server whose status does not meet the test requirements.

呈上所述,若比對模組3因為比對出配置文件201a中之內容包含「$path/$file_err」之異常關聯字串211,且比對出前次監控數據201b中之硬碟殘餘可用容量落於對應之要求數據範圍221所定義之硬碟殘餘可用容量外,異常信息生成模組4就會依據比對模組3所定義之異常伺服器(包含上述異常原因)生成一異常信息。As mentioned above, if the comparison module 3 compares the content in the configuration file 201a with the abnormal related string 211 of "$path/$file_err", and compares the hard disk residue in the previous monitoring data 201b, it is available. If the capacity falls outside the remaining available capacity of the hard disk defined by the corresponding required data range 221, the exception information generation module 4 will generate an exception message based on the exception server defined by the comparison module 3 (including the above exception reasons).

若結合以上兩種異常情況,在管理者閱讀到以上異常信息後,可重新設定配置文件201a中之檔案路徑,並且清理伺服器200之硬碟中的資料,使伺服器200之硬碟殘餘可用容量大於20 Gb後,更新伺服器日誌資料201中之配置文件201a與前次監控數據201b,然後再利用比對模組重新比對判斷伺服器200是否已恢復至符合測試要求之正常狀態,並在確定已恢復至符合測試要求之正常狀態後,再執行完整的測試腳本以進行全面性的測試。If the above two abnormal situations are combined, after the administrator reads the above abnormal information, he can reset the file path in the configuration file 201a and clear the data in the hard disk of the server 200 so that the remaining hard disk of the server 200 can be used. After the capacity exceeds 20 Gb, update the configuration file 201a and the previous monitoring data 201b in the server log data 201, and then use the comparison module to compare again to determine whether the server 200 has returned to a normal state that meets the test requirements, and After confirming that it has returned to a normal state that meets the test requirements, execute the complete test script for a comprehensive test.

依據以上之內容,本發明較佳實施例還可利用一種利用伺服器日誌資料於測試前預先判斷伺服器狀態之判斷方法來加以呈現。請參閱第一圖與第二圖,其中,第二圖其係顯示本發明較佳實施例所提供之利用伺服器日誌資料於測試前預先判斷伺服器狀態之判斷方法之簡化流程圖。Based on the above content, the preferred embodiment of the present invention can also be presented by using a judgment method that uses server log data to pre-judge the server status before testing. Please refer to the first and second figures. The second figure is a simplified flow chart showing a method for pre-determining server status before testing by using server log data according to a preferred embodiment of the present invention.

如第一圖與第二圖所示,在一種利用伺服器日誌資料於測試前預先判斷伺服器狀態之判斷方法中,首先,可在一儲存模組2預先建立一異常字串資料庫21與一測試要求資料庫22,異常字串資料庫21中定義了複數個異常關聯字串211,且測試要求資料庫22中定義了對應於監控項目之至少一要求數據範圍221(步驟S110)。As shown in the first and second figures, in a judgment method that uses server log data to pre-judge the server status before testing, first, a storage module 2 can pre-create an abnormal string database 21 and A test requirement database 22. A plurality of exception-related strings 211 are defined in the exception string database 21, and at least one requirement data range 221 corresponding to the monitoring item is defined in the test requirement database 22 (step S110).

接著,在伺服器200進行測試前,利用一資料擷取模組1預先擷取伺服器200所儲存之一伺服器日誌資料201,伺服器日誌資料201包含一配置文件201a與對應於監控項目之至少一前次監控數據201b(步驟S120)。利用一比對模組3之一異常字串資料比對單元31比對出配置文件201a中是否具備該些異常關聯字串211中之至少一者(步驟S130)?。若步驟S130的比對結果為是,則將伺服器200定義為狀態不符合測試要求之一異常伺服器(步驟S140)。若步驟S130的比對結果為否,繼續利用比對模組3之一監控數據比對單元32,比對出前次監控數據是否落於對應之要求數據範圍外(步驟S150)?Next, before the server 200 is tested, a data retrieval module 1 is used to pre-retrieve a server log data 201 stored in the server 200. The server log data 201 includes a configuration file 201a and a configuration file corresponding to the monitoring item. At least one previous monitoring data 201b (step S120). The abnormal string data comparison unit 31 of the comparison module 3 is used to compare whether the configuration file 201a contains at least one of the abnormal related strings 211 (step S130). If the comparison result in step S130 is yes, the server 200 is defined as an abnormal server whose status does not meet the test requirements (step S140 ). If the comparison result in step S130 is negative, continue to use the monitoring data comparison unit 32 of one of the comparison modules 3 to compare whether the previous monitoring data falls outside the corresponding required data range (step S150)?

若步驟S150的比對結果為是,則將伺服器200定義為狀態不符合測試要求之異常伺服器(步驟S140)。若步驟S150的比對結果為否,則將伺服器200定義為狀態符合測試要求之正常伺服器(步驟S160)。If the comparison result in step S150 is yes, the server 200 is defined as an abnormal server whose status does not meet the test requirements (step S140 ). If the comparison result in step S150 is negative, the server 200 is defined as a normal server whose status meets the test requirements (step S160 ).

在步驟S140後,可利用一異常信息生成模組4,在伺服器進行測試前,依據比對模組3所定義之異常伺服器生成一異常信息(步驟S170),並可利用列印模組5列印出異常信息(步驟S180)。After step S140, an exception information generation module 4 can be used to generate an exception information based on the abnormal server defined by the comparison module 3 before the server is tested (step S170), and a printing module can be used 5. Print out the exception information (step S180).

綜合以上所述,由於在本發明所提供之利用伺服器日誌資料判斷伺服器狀態之判斷技術(包含判斷系統與判斷方法)中,係結合異常關聯字串比對與監控數據比對這二種比對技術,因此,可在進行全面測試之前,即可對伺服器目前的狀態是否滿足測試需求進行精準的判斷,並作為測試前進行調整與修改的參考依據,以便有效提升後續通過全面性測試的機率,藉以降低重新進行全面性測試的機率而提升整體效率。Based on the above, in the judgment technology (including judgment system and judgment method) for judging server status by using server log data provided by the present invention, the two types of abnormality-related string comparison and monitoring data comparison are combined. Comparison technology, therefore, before conducting a comprehensive test, you can accurately judge whether the current status of the server meets the test requirements, and use it as a reference for adjustments and modifications before the test, so as to effectively improve the subsequent comprehensive test. probability, thereby reducing the probability of re-conducting comprehensive testing and improving overall efficiency.

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

100:判斷系統 200:伺服器 201:伺服器日誌資料 201a:配置文件 201b:前次監控數據 1:資料擷取模組 2:儲存模組 21:異常字串資料庫 211:異常關聯字串 22:測試要求資料庫 221:要求數據範圍 3:比對模組 31:異常字串資料比對單元 32:監控數據比對單元 4:異常信息生成模組 5:列印模組 S110~S180:步驟 100:Judgment system 200:server 201:Server log data 201a:Configuration file 201b: Last monitoring data 1: Data acquisition module 2:Storage module 21:Exception string database 211:Exception associated string 22:Testing requirements database 221: Request data range 3: Comparison module 31: Abnormal string data comparison unit 32: Monitoring data comparison unit 4: Exception information generation module 5: Printing module S110~S180: steps

第一圖係顯示本發明較佳實施例所提供之利用伺服器日誌資料於測試前預先判斷伺服器狀態之判斷系統之功能方塊示意圖;以及 第二圖係顯示本發明較佳實施例所提供之利用伺服器日誌資料於測試前預先判斷伺服器狀態之判斷方法之簡化流程圖。 The first figure is a functional block diagram showing a judgment system for pre-judging server status before testing by using server log data according to a preferred embodiment of the present invention; and The second figure is a simplified flow chart showing a method for pre-determining server status before testing by using server log data according to a preferred embodiment of the present invention.

100:判斷系統 100:Judgment system

200:伺服器 200:server

201:伺服器日誌資料 201:Server log data

201a:配置文件 201a:Configuration file

201b:前次監控數據 201b: Last monitoring data

1:資料擷取模組 1: Data acquisition module

2:儲存模組 2:Storage module

21:異常字串資料庫 21:Exception string database

211:異常關聯字串 211:Exception related string

22:測試要求資料庫 22:Testing requirements database

221:要求數據範圍 221: Request data range

3:比對模組 3: Comparison module

31:異常字串資料比對單元 31: Abnormal string data comparison unit

32:監控數據比對單元 32: Monitoring data comparison unit

4:異常信息生成模組 4: Exception information generation module

5:列印模組 5: Printing module

Claims (6)

一種利用伺服器日誌資料於測試前預先判斷伺服器狀態之判斷系統,包含: 一資料擷取模組,係用以在一伺服器進行測試前,預先擷取該伺服器所儲存之一伺服器日誌資料,該伺服器日誌資料包含一配置文件與對應於至少一監控項目之至少一前次監控數據; 一儲存模組,係建立有一異常字串資料庫與一測試要求資料庫,該異常字串資料庫中定義了複數個異常關聯字串,該測試要求資料庫中定義了對應於該至少一監控項目之至少一要求數據範圍; 一比對模組,係耦接於該資料擷取模組與該儲存模組,包含: 一異常字串資料比對單元,係在比對出該配置文件中具備該些異常關聯字串中之至少一者時,將該伺服器定義為狀態不符合測試要求之一異常伺服器;以及 一監控數據比對單元,係在比對出該配置文件中不具備該些異常關聯字串中之至少一者,繼續比對出該至少一前次監控數據落於對應之該至少一要求數據範圍外時,將該伺服器亦定義為該異常伺服器;以及 一異常信息生成模組,係耦接於該比對模組,藉以在該伺服器進行測試前,依據該比對模組所定義之該異常伺服器生成一異常信息。 A judgment system that uses server log data to pre-judge server status before testing, including: A data retrieval module is used to pre-retrieve a server log data stored in a server before testing the server. The server log data includes a configuration file and information corresponding to at least one monitoring item. At least one previous monitoring data; A storage module establishes an exception string database and a test requirement database. The exception string database defines a plurality of exception-related strings, and the test requirement database defines a string corresponding to the at least one monitoring At least one of the items requires a data range; A comparison module is coupled between the data retrieval module and the storage module, including: An abnormal string data comparison unit defines the server as an abnormal server whose status does not meet the test requirements when the configuration file is compared with at least one of the abnormal related strings; and A monitoring data comparison unit, after comparing that the configuration file does not contain at least one of the abnormal related strings, continues to compare the at least one previous monitoring data to the corresponding at least one required data. When out of range, the server is also defined as the abnormal server; and An exception information generating module is coupled to the comparison module to generate an exception information based on the abnormal server defined by the comparison module before the server is tested. 如請求項1所述之利用伺服器日誌資料於測試前預先判斷伺服器狀態之判斷系統,更包含一列印模組,該列印模組係通信連接於該異常信息生成模組,藉以列印該異常信息。The judgment system that uses server log data to pre-judge server status before testing as described in request 1 further includes a printing module that is communicatively connected to the exception information generation module to print The exception information. 如請求項1所述之利用伺服器日誌資料於測試前預先判斷伺服器狀態之判斷系統,其中,該資料擷取模組係為一伺服器日誌資料讀取器。The judgment system for pre-judging server status before testing by using server log data as described in claim 1, wherein the data acquisition module is a server log data reader. 如請求項1所述之利用伺服器日誌資料於測試前預先判斷伺服器狀態之判斷系統,其中,該至少一監控項目包含該伺服器之伺服器核心溫度、硬碟殘餘可用容量與資料存取速度中之至少一者。The judgment system that uses server log data to pre-judge server status before testing as described in request 1, wherein the at least one monitoring item includes the server core temperature, hard disk remaining available capacity and data access of the server At least one of the speeds. 一種利用伺服器日誌資料於測試前預先判斷伺服器狀態之判斷方法,包含以下步驟: (a) 在一儲存模組預先建立一異常字串資料庫與一測試要求資料庫,該異常字串資料庫中定義了複數個異常關聯字串,且該測試要求資料庫中定義了對應於至少一監控項目之至少一要求數據範圍; (b) 在一伺服器進行測試前,利用一資料擷取模組預先擷取該伺服器所儲存之一伺服器日誌資料,該伺服器日誌資料包含一配置文件與對應於該至少一監控項目之至少一前次監控數據; (c) 利用一比對模組之一異常字串資料比對單元,在比對出該配置文件中具備該些異常關聯字串中之至少一者時,將該伺服器定義為狀態不符合測試要求之一異常伺服器; (d) 若比對出該配置文件中不具備該些異常關聯字串中之至少一者,繼續利用該比對模組之一監控數據比對單元,在比對出該至少一前次監控數據落於對應之該至少一要求數據範圍外時,將該伺服器亦定義為該異常伺服器;以及 (e) 利用一異常信息生成模組,在該伺服器進行測試前,依據該比對模組所定義之該異常伺服器生成一異常信息。 A method of using server log data to pre-judge server status before testing, including the following steps: (a) Pre-create an exception string database and a test requirement database in a storage module. A plurality of exception-related strings are defined in the exception string database, and the test requirement database defines a corresponding At least one required data range of at least one monitoring item; (b) Before testing a server, use a data retrieval module to pre-retrieve a server log data stored in the server. The server log data includes a configuration file and corresponding to the at least one monitoring item. At least one previous monitoring data; (c) Using an abnormal string data comparison unit of a comparison module to compare the configuration file with at least one of the abnormal related strings, the server is defined as having a status that does not meet the requirements. One of the test requirements is an abnormal server; (d) If the comparison shows that the configuration file does not contain at least one of the abnormal related strings, continue to use one of the monitoring data comparison units of the comparison module to compare at least one of the previous monitoring data. When the data falls outside the corresponding at least one required data range, the server is also defined as the abnormal server; and (e) Use an exception information generation module to generate an exception information based on the abnormal server defined by the comparison module before the server is tested. 如請求項5所述之利用伺服器日誌資料於測試前預先判斷伺服器狀態之判斷方法,更包含一步驟(f),且該步驟(f)係利用一列印模組列印該異常信息。The method of using server log data to pre-judge the server status before testing as described in request 5 further includes a step (f), and the step (f) uses a printing module to print the exception information.
TW111142328A 2022-11-07 2022-11-07 System and method for pre-judging situation of server before test according to server log data TWI815722B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW111142328A TWI815722B (en) 2022-11-07 2022-11-07 System and method for pre-judging situation of server before test according to server log data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW111142328A TWI815722B (en) 2022-11-07 2022-11-07 System and method for pre-judging situation of server before test according to server log data

Publications (2)

Publication Number Publication Date
TWI815722B true TWI815722B (en) 2023-09-11
TW202420094A TW202420094A (en) 2024-05-16

Family

ID=88966162

Family Applications (1)

Application Number Title Priority Date Filing Date
TW111142328A TWI815722B (en) 2022-11-07 2022-11-07 System and method for pre-judging situation of server before test according to server log data

Country Status (1)

Country Link
TW (1) TWI815722B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI510917B (en) * 2009-11-18 2015-12-01 Insyde Software Corp Server management system and method thereof
TWI696080B (en) * 2018-03-05 2020-06-11 劉國良 System and implementing method for managing security of information based on inspection of database log file
TWI732410B (en) * 2020-01-02 2021-07-01 中華電信股份有限公司 System and method for automatic reporting of detecting a set-top box abnormally
TWI769240B (en) * 2017-12-23 2022-07-01 日商科力思股份有限公司 Comparison server, comparison method and computer program

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI510917B (en) * 2009-11-18 2015-12-01 Insyde Software Corp Server management system and method thereof
TWI769240B (en) * 2017-12-23 2022-07-01 日商科力思股份有限公司 Comparison server, comparison method and computer program
TWI696080B (en) * 2018-03-05 2020-06-11 劉國良 System and implementing method for managing security of information based on inspection of database log file
TWI732410B (en) * 2020-01-02 2021-07-01 中華電信股份有限公司 System and method for automatic reporting of detecting a set-top box abnormally

Also Published As

Publication number Publication date
TW202420094A (en) 2024-05-16

Similar Documents

Publication Publication Date Title
US7664986B2 (en) System and method for determining fault isolation in an enterprise computing system
CN111858240B (en) Monitoring method, system, equipment and medium of distributed storage system
CN112988439B (en) Server fault discovery method and device, electronic equipment and storage medium
CN112732477B (en) Method for fault isolation by out-of-band self-checking
CN109491819A (en) A kind of method and system of diagnosis server failure
CN109120522B (en) Multipath state monitoring method and device
CN115509978A (en) Method, device, equipment and storage medium for determining physical position of external plug-in equipment
CN113608908A (en) Server fault processing method, system, equipment and readable storage medium
TWI815722B (en) System and method for pre-judging situation of server before test according to server log data
JP7082285B2 (en) Monitoring system, monitoring method and monitoring program
US7844863B2 (en) Ramped error logging system
US6622257B1 (en) Computer network with swappable components
CN119806960A (en) A server status monitoring method, device and server cluster system
CN115695159B (en) Equipment diagnosis method, device, equipment and storage medium
TWI815715B (en) System and method for judging situation of server according to server log data
CN116932324A (en) Memory stick failure prediction method, device and electronic equipment
CN116431453A (en) Method, device and equipment for detecting system faults through BIOS
CN115640236A (en) Script quality detection method and computing device
US20070055913A1 (en) Facilitating detection of hardware service actions
CN115328762A (en) Automatic diagnosis method for hbase cluster fault, terminal equipment and storage medium
CN115269307A (en) A method and device for monitoring batch processing
CN114691400A (en) Fault processing method and fault processing device
CN114647524A (en) Method, apparatus and computer program product for managing a storage system
CN111309532A (en) PCIE equipment abnormity detection method, system, electronic equipment and storage medium
CN119484247B (en) Automatic operation and maintenance method, device, server and storage medium