TWI847064B - Equipment detection method and equipment detection device - Google Patents
Equipment detection method and equipment detection device Download PDFInfo
- Publication number
- TWI847064B TWI847064B TW110137947A TW110137947A TWI847064B TW I847064 B TWI847064 B TW I847064B TW 110137947 A TW110137947 A TW 110137947A TW 110137947 A TW110137947 A TW 110137947A TW I847064 B TWI847064 B TW I847064B
- Authority
- TW
- Taiwan
- Prior art keywords
- detection
- self
- detected
- alarm
- module
- Prior art date
Links
- 238000001514 detection method Methods 0.000 title claims abstract description 307
- 230000004044 response Effects 0.000 claims abstract description 36
- 230000014509 gene expression Effects 0.000 claims description 3
- 238000012360 testing method Methods 0.000 abstract description 8
- 238000000034 method Methods 0.000 abstract description 6
- 230000000875 corresponding effect Effects 0.000 description 23
- 238000010586 diagram Methods 0.000 description 14
- 230000009471 action Effects 0.000 description 11
- 238000012423 maintenance Methods 0.000 description 9
- 230000006870 function Effects 0.000 description 5
- 230000008439 repair process Effects 0.000 description 5
- 238000012544 monitoring process Methods 0.000 description 3
- 101001121408 Homo sapiens L-amino-acid oxidase Proteins 0.000 description 2
- 102100026388 L-amino-acid oxidase Human genes 0.000 description 2
- 230000002159 abnormal effect Effects 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 2
- 230000007246 mechanism Effects 0.000 description 2
- 238000012954 risk control Methods 0.000 description 2
- 101000827703 Homo sapiens Polyphosphoinositide phosphatase Proteins 0.000 description 1
- 102100023591 Polyphosphoinositide phosphatase Human genes 0.000 description 1
- 101100233916 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) KAR5 gene Proteins 0.000 description 1
- 230000002354 daily effect Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 230000003203 everyday effect Effects 0.000 description 1
- 238000007689 inspection Methods 0.000 description 1
- 230000015654 memory Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 238000011895 specific detection Methods 0.000 description 1
Images
Landscapes
- Alarm Systems (AREA)
- Selective Calling Equipment (AREA)
Abstract
Description
本發明是有關於一種設備管理機制,且特別是有關於一種設備檢測裝置及設備檢測方法。 The present invention relates to an equipment management mechanism, and in particular to an equipment detection device and an equipment detection method.
網路設備的自檢測與修復功能在虛實網路中扮演關鍵作用,自檢測功能主要負責檢測網路設備的軟/硬體是否正常運作以及確保網路設備各項功能的完整性和可靠性,是提高網路設備穩定性的重要手段。網路設備自檢測功能通常由多項功能檢測項組成,不同的網路設備由於硬體環境不同,自檢測的具體檢測項有很大差別,且各檢測項之間相對獨立、判別方式也不盡相同。 The self-detection and repair functions of network equipment play a key role in virtual and real networks. The self-detection function is mainly responsible for detecting whether the software/hardware of network equipment is operating normally and ensuring the integrity and reliability of various functions of network equipment. It is an important means to improve the stability of network equipment. The self-detection function of network equipment is usually composed of multiple functional detection items. Due to different hardware environments, different network equipment has very different specific detection items of self-detection, and each detection item is relatively independent and the judgment method is also different.
因此,對於本領域技術人員而言,如何設計一種可提供虛實網路環境下各式網路設備的大量定期檢測作業,靈活控制自檢測檢測項的執行與否、檢測順序、告警條件以及後續修復動作的機制實為一項重要議題。 Therefore, for technical personnel in this field, how to design a mechanism that can provide a large number of regular detection operations for various network devices in virtual and real network environments, and flexibly control the execution of self-detection test items, detection sequence, alarm conditions, and subsequent repair actions is an important issue.
有鑑於此,本發明提供一種設備檢測裝置及設備檢測方法,其可用於解決上述技術問題。 In view of this, the present invention provides a device detection apparatus and a device detection method, which can be used to solve the above technical problems.
本發明提供一種設備檢測裝置,包括檢測設定檔讀取模組、設備資訊擷取模組、檢測分析解譯模組及告警與自修復模組。檢測設定檔讀取模組讀取一第一檢測設定檔,其中第一檢測設定檔指示一第一設備型號。設備資訊擷取模組因應於檢測設定檔讀取模組的呼叫而基於第一檢測設定檔對屬於第一設備型號的一第一待檢測設備下達一第一檢測指令,其中第一待檢測設備因應於第一檢測指令而執行一第一自檢測操作,且設備資訊擷取模組從第一待檢測設備接收關聯於第一自檢測操作的一第一設備回傳訊息。檢測分析解譯模組分析第一設備回傳訊息而產生第一自檢測操作的一第一檢測結果。反應於判定第一檢測結果指示第一待檢測設備出現一第一告警,告警與自修復模組據以發送一第一特定告警或執行一第一自修復操作。 The present invention provides a device detection apparatus, including a detection profile reading module, a device information acquisition module, a detection analysis and interpretation module, and an alarm and self-repair module. The detection profile reading module reads a first detection profile, wherein the first detection profile indicates a first device model. In response to a call from the detection profile reading module, the device information acquisition module issues a first detection instruction to a first device to be detected belonging to the first device model based on the first detection profile, wherein the first device to be detected performs a first self-detection operation in response to the first detection instruction, and the device information acquisition module receives a first device feedback message associated with the first self-detection operation from the first device to be detected. The detection analysis and interpretation module analyzes the message returned by the first device to generate a first detection result of the first self-detection operation. In response to determining that the first detection result indicates that a first alarm occurs in the first device to be detected, the alarm and self-repair module sends a first specific alarm or performs a first self-repair operation accordingly.
本發明提出一種設備檢測方法,包括:讀取一第一檢測設定檔,其中第一檢測設定檔指示一第一設備型號;基於第一檢測設定檔對屬於第一設備型號的一第一待檢測設備下達一第一檢測指令,其中第一待檢測設備因應於第一檢測指令而執行一第一自檢測操作;從第一待檢測設備接收關聯於第一自檢測操作的一第一設備回傳訊息;分析第一設備回傳訊息而產生第一自檢測操作的一第一檢測結果;以及反應於判定第一檢測結果指示第一待檢測設備出現一第一告警,據以發送一第一特定告警或執行一第 一自修復操作。 The present invention proposes a device detection method, comprising: reading a first detection configuration file, wherein the first detection configuration file indicates a first device model; issuing a first detection instruction to a first device to be detected belonging to the first device model based on the first detection configuration file, wherein the first device to be detected performs a first self-detection operation in response to the first detection instruction; receiving a first device return message associated with the first self-detection operation from the first device to be detected; analyzing the first device return message to generate a first detection result of the first self-detection operation; and responding to determining that the first detection result indicates that a first alarm occurs in the first device to be detected, sending a first specific alarm or performing a first self-repair operation accordingly.
110:設備檢測裝置 110: Equipment detection device
111:檢測設定檔讀取模組 111: Detection configuration file reading module
112:設備資訊擷取模組 112: Equipment information acquisition module
113:檢測分析解譯模組 113: Detection, analysis and interpretation module
114:告警與自修復模組 114: Alarm and self-repair module
115:輸出模組 115: Output module
121~12N:待檢測設備 121~12N: Equipment to be tested
C1,C2:檢測指令 C1, C2: detection instructions
R1,R2,RN:設備回傳訊息 R1, R2, RN: Device returns message
S210~S250:步驟 S210~S250: Steps
圖1是依據本發明之一實施例繪示的設備檢測裝置及待檢測設備示意圖。 Figure 1 is a schematic diagram of a device detection apparatus and a device to be detected according to one embodiment of the present invention.
圖2是依據本發明之一實施例繪示的設備檢測方法流程圖。 Figure 2 is a flow chart of a device detection method according to one embodiment of the present invention.
圖3是依據本發明之一實施例繪示的檢測設定檔及其樹狀階層的示意圖。 FIG3 is a schematic diagram of a detection profile and its tree hierarchy according to an embodiment of the present invention.
圖4是依據本發明第一實施例繪示的檢測設定檔及其樹狀階層的示意圖。 FIG4 is a schematic diagram of a detection profile and its tree hierarchy according to the first embodiment of the present invention.
圖5是依據本發明第一實施例繪示的設備回應訊息示意圖。 Figure 5 is a schematic diagram of a device response message drawn according to the first embodiment of the present invention.
圖6是依據本發明第二實施例繪示的檢測設定檔及其樹狀階層的示意圖。 FIG6 is a schematic diagram of a detection profile and its tree hierarchy according to the second embodiment of the present invention.
圖7是依據本發明第二實施例繪示的設備回應訊息示意圖。 Figure 7 is a schematic diagram of a device response message drawn according to the second embodiment of the present invention.
圖8是依據本發明第二實施例繪示的報表示意圖。 Figure 8 is a schematic diagram of a report drawn according to the second embodiment of the present invention.
請參照圖1,其是依據本發明之一實施例繪示的設備檢測裝置及待檢測設備示意圖。如圖1所示,設備檢測裝置110包括檢測設定檔讀取模組111、設備資訊擷取模組112、檢測分析解譯模組113、告警與自修復模組114及輸出模組115。在一實施例中,
檢測設定檔讀取模組111、設備資訊擷取模組112、檢測分析解譯模組113、告警與自修復模組114及輸出模組115個別可以是硬體模組,其中設備資訊擷取模組112可耦接於檢測設定檔讀取模組111及檢測分析解譯模組113之間,而告警與自修復模組114可耦接於檢測分析解譯模組113及輸出模組115之間。在此情況下,檢測設定檔讀取模組111、設備資訊擷取模組112、檢測分析解譯模組113、告警與自修復模組114及輸出模組115可協同運作以實現本發明提出的設備檢測方法。
Please refer to FIG1, which is a schematic diagram of a device detection device and a device to be detected according to an embodiment of the present invention. As shown in FIG1, the
在另一實施例中,設備檢測裝置110可包括儲存電路(例如硬碟或各式記憶體)及處理器(例如CPU),而檢測設定檔讀取模組111、設備資訊擷取模組112、檢測分析解譯模組113、告警與自修復模組114及輸出模組115個別可實現為儲存於所述儲存電路中的軟體模組。在此情況下,所述處理器可存取檢測設定檔讀取模組111、設備資訊擷取模組112、檢測分析解譯模組113、告警與自修復模組114及輸出模組115以實現本發明提出的設備檢測方法,但可不限於此。
In another embodiment, the
請參照圖2,其是依據本發明之一實施例繪示的設備檢測方法流程圖。本實施例的方法可由圖1的設備檢測裝置110執行,以下即搭配圖1所示的元件說明圖2各步驟的細節。
Please refer to FIG. 2, which is a flow chart of a device detection method according to an embodiment of the present invention. The method of this embodiment can be executed by the
首先,在步驟S210中,檢測設定檔讀取模組111讀取一第一檢測設定檔,其中第一檢測設定檔可指示第一設備型號。在本發明的實施例中,第一檢測檔可具有通用資料格式,例如JSON
(JavaScript Object Notation)檔,但可不限於此。
First, in step S210, the detection
概略而言,在讀取第一檢測設定檔之後,設備檢測裝置110可相應地控制屬於待檢測設備121~12N中屬於第一設備型號的一或多者進行自檢測操作。在不同的實施例中,各待檢測設備121~12N可為實體設備或虛擬設備。為便於說明,以下假設待檢測設備121及122即屬於第一設備型號,但可不限於此。在待檢測設備121及122完成自檢測操作之後,可相應地回傳對應的設備回應至設備檢測裝置110。
In general, after reading the first detection configuration file, the
在一實施例中,維運人員可針對所欲檢測的第一設備型號以上述通用資料格式編輯所述第一檢測設定檔。在一些實施例中,第一檢測設定檔還可包括對應於第一設備型號的介接應用程式介面及關聯於第一設備型號的第一檢測清單。 In one embodiment, the maintenance personnel can edit the first detection configuration file in the above-mentioned universal data format for the first device model to be detected. In some embodiments, the first detection configuration file may also include an interface application program interface corresponding to the first device model and a first detection list associated with the first device model.
在一實施例中,介接應用程式介面例如是簡易網路管理通訊協定(Simple Network Management Protocol,SNMP)、安全外殼(Secure Shell,SSH)協定及RestAPI的至少其中之一所對應的傳輸介面,但可不限於此。舉例而言,假設第一設備型號對應的介接應用程式介面經記錄為SNMP介面,則設備檢測裝置110可透過SNMP與屬於第一設備型號的待檢測設備進行溝通/控制。舉另一例而言,假設第一設備型號對應的介接應用程式介面經記錄為SSH協定介面,則設備檢測裝置110可透過SSH協定介面與屬於第一設備型號的待檢測設備進行溝通/控制,但可不限於此。
In one embodiment, the interface application program interface is, for example, a transmission interface corresponding to at least one of the Simple Network Management Protocol (SNMP), the Secure Shell (SSH) protocol, and the RestAPI, but is not limited thereto. For example, assuming that the interface application program interface corresponding to the first device model is recorded as an SNMP interface, the
在一實施例中,關聯於第一設備型號的第一檢測清單可
包括適用於屬於第一設備型號的待檢測設備121及122的檢測週期(例如每15分鐘/每天/每月檢測等)、檢測指令(其例如是欲對待檢測設備121及122下達的指令或參數)、檢測關鍵字組、檢測邏輯、檢測告警原則及檢測告警動作的至少其中之一。
In one embodiment, the first detection list associated with the first device model may include at least one of the detection cycle applicable to the
在一實施例中,由於各待檢測設備121及122所提供的設備回應可能僅有部分內容可為設備檢測裝置110所用,因此維運人員可透過在所述檢測關鍵字組中定義所需的關鍵字組,藉以從上述設備回應中提取所需的內容。
In one embodiment, since only part of the equipment response provided by each of the equipment to be tested 121 and 122 may be used by the
在一些實施例中,由於所擷取的檢測關鍵字組可能多於一組,因此當維運人員認為只要一組檢測關鍵字組符合即符合需求時,可相應地將檢測邏輯設定為「One」。另外,當維運人員認為需全部檢測關鍵字組皆符合才符合需求時,可相應地將檢測邏輯設定為「All」,但可不限於此。 In some embodiments, since there may be more than one detection keyword group captured, when the maintenance personnel believe that only one detection keyword group meets the requirements, the detection logic can be set to "One" accordingly. In addition, when the maintenance personnel believe that all detection keyword groups must meet the requirements to meet the requirements, the detection logic can be set to "All" accordingly, but it is not limited to this.
在一實施例中,檢測告警原則中可界定有檢測原則及檢測運算元(例如ANR/OR),藉以界定判定為正常或需告警的情況。例如,當檢測告警原則中記錄有「檢測原則A AND檢測原則B」時,此即代表在同時滿足檢測原則A及檢測原則B時即判定存在告警。另一方面,當檢測告警原則中記錄有「檢測原則A OR檢測原則B」時,此即代表在滿足檢測原則A及檢測原則B的任一時即判定存在告警,但可不限於此。 In one embodiment, the detection alarm policy may define a detection policy and a detection operator (such as ANR/OR) to define the situation that is determined to be normal or requires an alarm. For example, when the detection alarm policy records "detection policy A AND detection policy B", it means that an alarm is determined to exist when both detection policy A and detection policy B are satisfied. On the other hand, when the detection alarm policy records "detection policy A OR detection policy B", it means that an alarm is determined to exist when either detection policy A or detection policy B is satisfied, but it is not limited to this.
在一實施例中,檢測告警動作可記錄有在判定存在告警時所採取的對應動作,例如發送告警或是執行自修復操作,但可 不限於此。 In one embodiment, the alarm detection action may record the corresponding action taken when it is determined that an alarm exists, such as sending an alarm or performing a self-repair operation, but it is not limited to this.
在讀取第一檢測設定檔之後,檢測設定檔讀取模組111可相應地呼叫設備資訊擷取模組112對屬於第一設備型號的一或多個待檢測設備下達第一檢測指令。
After reading the first detection profile, the detection
相應地,在步驟S220中,設備資訊擷取模組112因應於檢測設定檔讀取模組111的呼叫而基於第一檢測設定檔對屬於第一設備型號的第一待檢測設備下達第一檢測指令C1,其中第一待檢測設備因應於第一檢測指令C1而執行第一自檢測操作。
Correspondingly, in step S220, the device
為便於說明,以下假設待檢測設備111即為屬於第一設備型號的第一待檢測設備,但此僅用以舉例,並非用以限定本發明可能的實施方式。在此情況下,待檢測設備111可因應於第一檢測指令C1而執行對應的第一自檢測操作,並可相應地提供關聯於第一自檢測操作的第一設備回傳訊息R1至設備檢測裝置110。
For the sake of explanation, it is assumed that the device to be detected 111 is the first device to be detected belonging to the first device model, but this is only used as an example and is not used to limit the possible implementation methods of the present invention. In this case, the device to be detected 111 can execute the corresponding first self-detection operation in response to the first detection instruction C1, and can correspondingly provide the first device return message R1 related to the first self-detection operation to the
因此,在步驟S230中,設備資訊擷取模組112從第一待檢測設備接收關聯於第一自檢測操作的第一設備回傳訊息R1。
Therefore, in step S230, the device
之後,在步驟S240中,檢測分析解譯模組113分析第一設備回傳訊息R1而產生第一自檢測操作的第一檢測結果。
Afterwards, in step S240, the detection analysis and
在一實施例中,檢測分析解譯模組113可採用正規表示式從第一設備回傳訊息R1取得檢測關鍵字組,並依據上述檢測原則及上述檢測運算元分析此檢測關鍵字組以取得第一檢測結果,其中第一檢測結果例如可指示第一待檢測設備是否存在告警。相關細節可參照先前的說明,於此不另贅述。
In one embodiment, the detection analysis and
在步驟S250中,反應於判定第一檢測結果指示第一待檢測設備出現第一告警,告警與自修復模組114據以發送第一特定告警或執行第一自修復操作。
In step S250, in response to determining that the first detection result indicates that the first device to be detected has a first alarm, the alarm and self-
在一實施例中,告警與自修復模組114可依據第一檢測設定檔中記錄的檢測告警動作而針對第一告警進行發送第一特定告警或執行第一自修復操作等行為,但可不限於此。在一實施例中,告警與自修復模組114例如可將第一特定告警發送予相關的維運人員,以通知維運人員對第一待檢測設備上的第一告警進行相應的處理。在其他實施例中,告警與自修復模組114例如可控制第一待檢測設備執行所述第一自修復操作,以試圖讓第一待檢測設備自行排除所述第一告警,但可不限於此。
In one embodiment, the alarm and self-
在圖1情境中,假設待檢測設備122亦屬於第一檢測設定檔中指示的第一設備型號,則設備資訊擷取模組112亦可基於上述第一檢測設定檔而對屬於第一設備型號的待檢測設備122下達第一檢測指令C1以控制待檢測設備122執行第二自檢測操作,並從待檢測設備112接收對應於第二自檢測操作的第二設備回傳訊息R2。之後,檢測分析解譯模組113可分析第二設備回傳訊息R2而產生第二自檢測操作的第二檢測結果。接著,可反應於判定第二檢測結果指示待檢測設備122出現第二告警,告警與自修復模組114可據以發送第二特定告警或執行第二自修復操作。相關細節可參照先前實施例中的說明,於此不另贅述。
In the scenario of FIG. 1 , assuming that the device to be detected 122 also belongs to the first device model indicated in the first detection profile, the device
在一實施例中,檢測設定檔讀取模組111還可讀取第二
檢測設定檔,其中第二檢測設定檔可指示第二設備型號。設備資訊擷取模組112可因應於檢測設定檔讀取模組111的呼叫而基於第二檢測設定檔對屬於第二設備型號的第三待檢測設備下達第二檢測指令C2。在一實施例中,假設待檢測設備12N屬於第二設備型號,則設備資訊擷取模組112可向待檢測設備12N發送第二檢測指令C2,並因應於第二檢測指令C2而執行第三自檢測操作。之後,設備資訊擷取模組112可從待檢測設備12N接收關聯於第三自檢測操作的第三設備回傳訊息RN。接著,檢測分析解譯模組113可分析第三設備回傳訊息RN而產生第三自檢測操作的第三檢測結果。反應於判定第三檢測結果指示待檢測設備12N出現第三告警,告警與自修復模組114據以發送第三特定告警或執行第三自修復操作。相關細節可參照先前實施例中的說明,於此不另贅述。
In one embodiment, the detection
在一實施例中,在完成對於各待檢測設備121~12N的相關檢測之後,輸出模組115可產製對應的報表,以供維運人員參考,但可不限於此。
In one embodiment, after completing the relevant tests on each of the devices to be tested 121~12N, the
請參照圖3,其是依據本發明之一實施例繪示的檢測設定檔及其樹狀階層的示意圖。在圖3情境中,所示的檢測設定檔共可對設備A(即,DeviceA)執行兩種自檢測,而其細節分別可記載於「DeviceA_Alarm_Level_1」及「DeviceA_Alarm_Level_2」中,而其細節將輔以以下的第一實施例及第二實施例作進一步說明。 Please refer to FIG. 3, which is a schematic diagram of a detection profile and its tree hierarchy according to an embodiment of the present invention. In the scenario of FIG. 3, the detection profile shown can perform two types of self-detection on device A (i.e., Device A), and the details can be recorded in "DeviceA_Alarm_Level_1" and "DeviceA_Alarm_Level_2", and the details will be further explained with the help of the following first embodiment and second embodiment.
請參照圖4,其是依據本發明第一實施例繪示的檢測設定
檔及其樹狀階層的示意圖。在圖4的情境中,假設設備檢測裝置110欲每5分鐘檢查設備A的多協定標籤交換(英語:Multi-Protocol Label Switching,MPLS)狀態,並且會在Status與State不為up即發送告警。相應地,名為「DeviceA_Alarm_Level_1」的檢測設定檔即可經編輯為具有如圖4左側所示內容。例如,由對應於檢測週期的「”interval”」及「”intervalUnit”」等參數可看出檢測週期為5分鐘。由對應於檢測指令的「”cmd”」可看出,檢測指令為「show mpls traffic-eng tunnels role head brief」。由對應於檢測關鍵字組的「”candidateRE”」可看出,檢測關鍵字組為「([a-zA-Z0-9_\-\*]+)\s+([0-9\.]+)\s+([a-zA-Z]+)\s+([a-zA-Z]+)$」。由對應於檢測邏輯的「”checkPolicy”」可看出,每個關鍵字皆需符合。由對應於檢測告警原則的「”rule”」及「”operator”」可看出,在所取得的檢測關鍵字組中,若第3欄及第4欄皆為「up」即為正常,反之則為存在告警。由對應於檢測告警動作的「”alarmAction”」可看出,可發送「MSER MPLS告警」的告警。
Please refer to FIG. 4, which is a schematic diagram of a detection profile and its tree hierarchy according to the first embodiment of the present invention. In the scenario of FIG. 4, it is assumed that the
請參照圖5,其是依據本發明第一實施例繪示的設備回應訊息示意圖。在圖5情境中,設備回應訊息共包括標示為灰底的9組檢測關鍵字組,其中由於各檢測關鍵字組的第3欄及第4欄皆為「up」,故設備檢測裝置110可判定正常,故不需發送告警。
Please refer to FIG. 5, which is a schematic diagram of a device response message according to the first embodiment of the present invention. In the scenario of FIG. 5, the device response message includes 9 detection keyword groups marked with a gray background, wherein the third and fourth columns of each detection keyword group are both "up", so the
請參照圖6,其是依據本發明第二實施例繪示的檢測設定檔及其樹狀階層的示意圖。在圖6的情境中,假設設備檢測裝置110欲每日檢查設備A的組態備份檔(即,config.cfg),並且在判
定日期不為昨日或今日即告警,並立即執行組態備份作業。
Please refer to FIG. 6, which is a schematic diagram of a detection configuration file and its tree hierarchy according to the second embodiment of the present invention. In the scenario of FIG. 6, it is assumed that the
相應地,名為「DeviceA_Alarm_Level_2」的檢測設定檔即可經編輯為具有如圖6左側所示內容。例如,由對應於檢測週期的「”interval”」及「”intervalUnit”」等參數可看出檢測週期為1天。由對應於檢測指令的「”cmd”」可看出,檢測指令為「dir config.cfg」。由對應於檢測關鍵字組的「”candidateRE”」可看出,檢測關鍵字組為「\d+\s+[a-zA-Z\-\.]+\s+[\d\s]+(.+)\s+config.cfg」。由對應於檢測邏輯的「”checkPolicy”」可看出,僅需1個關鍵字符合即為正常。 Correspondingly, the detection profile named "DeviceA_Alarm_Level_2" can be edited to have the content shown on the left side of Figure 6. For example, from the parameters "interval" and "intervalUnit" corresponding to the detection cycle, it can be seen that the detection cycle is 1 day. From the "cmd" corresponding to the detection command, it can be seen that the detection command is "dir config.cfg". From the "candidateRE" corresponding to the detection keyword group, it can be seen that the detection keyword group is "\d+\s+[a-zA-Z\-\.]+\s+[\d\s]+(.+)\s+config.cfg". From the "checkPolicy" corresponding to the detection logic, it can be seen that only one keyword must be matched to be normal.
在第二實施例中,須檢測組態備份檔的儲存時間須為昨日或今日。由於日期比對邏輯較為複雜(例如:需衡量4/1的昨日為3/31,而非4/0),需特殊定義該欄為日期比對並進一步定義設備回應的日期格式,如對應於檢測告警原則的「”rule”」及「”operator”」所示。由對應於檢測告警動作的「”alarmAction”」可看出,可發送「DeviceA備份日期異常」的告警,並可進行組態備份(即,「copy running-config config.cfg」)。 In the second embodiment, the storage time of the configuration backup file to be detected must be yesterday or today. Since the date comparison logic is more complicated (for example, it is necessary to measure that yesterday of 4/1 is 3/31, not 4/0), it is necessary to specially define this column as date comparison and further define the date format of the device response, as shown in "rule" and "operator" corresponding to the detection alarm rule. From the "alarmAction" corresponding to the detection alarm action, it can be seen that the alarm of "DeviceA backup date is abnormal" can be sent, and the configuration backup can be performed (that is, "copy running-config config.cfg").
請參照圖7,其是依據本發明第二實施例繪示的設備回應訊息示意圖。在圖7情境中,設備回應訊息共包括標示為灰底的1組檢測關鍵字組,且其執行日期為「Fri Oct 30 04:46:37 2020」。在第二實施例中,若此日期未在所設定的「昨日或今日時間區段」內則會發送「DeviceA備份日期異常」告警並執行組態備份。在檢測完畢後可產出如圖8所示的報表。 Please refer to FIG. 7, which is a schematic diagram of a device response message according to the second embodiment of the present invention. In the scenario of FIG. 7, the device response message includes a set of detection keyword groups marked with a gray background, and its execution date is "Fri Oct 30 04:46:37 2020". In the second embodiment, if this date is not within the set "yesterday or today's time period", a "DeviceA backup date abnormal" alarm will be sent and configuration backup will be performed. After the detection is completed, a report as shown in FIG. 8 can be generated.
請參照圖8,其是依據本發明第二實施例繪示的報表示意圖。由圖8可看出,報表可可完整記錄檢測指令、檢測結果、設備回應訊息以及執行時間,但可不限於此。。 Please refer to FIG8, which is a schematic diagram of a report according to the second embodiment of the present invention. As can be seen from FIG8, the report can completely record the detection instructions, detection results, equipment response messages and execution time, but is not limited to this. .
綜上所述,在本發明的實施例中,維運人員可運用其專業識能編輯所需的檢測設定檔,而設備檢測裝置可在讀取並解析檢測設定檔中的相應參數之後控制待檢測設備執行自檢測操作。並且,本發明可提供維運人員在檢測設定檔中彈性設定所需的各項檢測條件,包含:候選字串、檢測原則、檢測欄位、檢測欄位格式、檢測運算元、檢測值等。透過通用型檢測框架功能之解譯模組,採用正規表示式取出關鍵字組進行檢測,並依據檢測原則、檢測運算元計算結果,當檢測結果為告警時,可依據處置動作設定欄位敘明之動作進行自修復。 In summary, in the embodiment of the present invention, maintenance personnel can use their professional knowledge to edit the required detection setting file, and the equipment detection device can control the equipment to be detected to perform self-detection operations after reading and parsing the corresponding parameters in the detection setting file. In addition, the present invention can provide maintenance personnel with the flexibility to set the required detection conditions in the detection setting file, including: candidate strings, detection principles, detection fields, detection field formats, detection operators, detection values, etc. Through the interpretation module of the universal detection framework function, regular expressions are used to extract keyword groups for detection, and the results are calculated according to the detection principles and detection operators. When the detection result is an alarm, self-repair can be performed according to the action described in the treatment action setting field.
本發明所實施例的方法可提供虛實網路環境下各式網路設備的大量定期檢測作業,靈活控制自檢測檢測項的執行與否、檢測順序、告警條件以及後續修復動作,無需修改軟體,有效偵測隱藏障礙並縮短障礙及人員查修時間,滿足客戶監測設備與風險管控需求。 The method implemented in the present invention can provide a large number of regular detection operations for various network devices in virtual and real network environments, flexibly control the execution of self-detection detection items, detection sequence, alarm conditions and subsequent repair actions, without modifying the software, effectively detect hidden faults and shorten the fault and personnel inspection time, and meet the customer's monitoring equipment and risk control needs.
基於上述,本發明至少具備以下特點:(1)可以靈活控制自檢測檢測項的執行與否、檢測順序、告警條件以及後續修復動作,只需要更改檢測設定檔即可實現,無需修改軟體;(2)可支援執行具時序性之連續性檢測,具備高度彈性;(3)可支援通用型資料驅動設定傳送結構化資料,採用極輕量級資料交換格式JSON 但不限於此格式;(4)可支援設備之各式介面,包含SNMP、SSH、RestAPI,但不限於此類方式;(5)可彈性支援參數化之檢測指令、各項正/負向表列之檢測邏輯以及多種檢測格式(包含字串、數值以及日期比對),減少各項監測之客製化處理;(6)可在檢測結果為告警時依據預先敘明之處置動作進行自修復,有效偵測隱藏障礙並縮短障礙及人員查修時間;(7)可應用於虛實網路中各式網路設備進行大量定期檢測作業,滿足客戶監測設備與風險管控需求。 Based on the above, the present invention has at least the following features: (1) It can flexibly control the execution of self-detection test items, the detection sequence, alarm conditions and subsequent repair actions, which can be achieved by simply changing the detection configuration file without modifying the software; (2) It can support the execution of sequential continuous detection and has high flexibility; (3) It can support the transmission of structured data in general data driver settings, using the extremely lightweight data exchange format JSON but not limited to this format; (4) It can support various interfaces of the device, including SNMP, SSH, Re stAPI, but not limited to this type of method; (5) It flexibly supports parameterized detection instructions, detection logic of various positive/negative lists, and multiple detection formats (including string, value, and date comparison), reducing the customization of various monitoring processes; (6) When the detection result is an alarm, it can perform self-repair according to the pre-specified treatment actions, effectively detect hidden faults and shorten the fault and personnel repair time; (7) It can be applied to various network devices in virtual and real networks to perform a large number of regular detection operations to meet customers' monitoring equipment and risk control needs.
雖然本發明已以實施例揭露如上,然其並非用以限定本發明,任何所屬技術領域中具有通常知識者,在不脫離本發明的精神和範圍內,當可作些許的更動與潤飾,故本發明的保護範圍當視後附的申請專利範圍所界定者為準。 Although the present invention has been disclosed as above by the embodiments, it is not intended to limit the present invention. Anyone with ordinary knowledge in the relevant technical field can make some changes and modifications without departing from the spirit and scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the scope defined by the attached patent application.
S210~S250:步驟 S210~S250: Steps
Claims (6)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW110137947A TWI847064B (en) | 2021-10-13 | 2021-10-13 | Equipment detection method and equipment detection device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW110137947A TWI847064B (en) | 2021-10-13 | 2021-10-13 | Equipment detection method and equipment detection device |
Publications (2)
Publication Number | Publication Date |
---|---|
TW202316271A TW202316271A (en) | 2023-04-16 |
TWI847064B true TWI847064B (en) | 2024-07-01 |
Family
ID=86943189
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW110137947A TWI847064B (en) | 2021-10-13 | 2021-10-13 | Equipment detection method and equipment detection device |
Country Status (1)
Country | Link |
---|---|
TW (1) | TWI847064B (en) |
Citations (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7181360B1 (en) * | 2004-01-30 | 2007-02-20 | Spirent Communications | Methods and systems for generating test plans for communication devices |
US20090064251A1 (en) * | 2007-08-29 | 2009-03-05 | At&T Knowledge Ventures, Lp | System and Method for Troubleshooting a Set Top Box |
CN103049365A (en) * | 2012-11-07 | 2013-04-17 | 北京宏德信智源信息技术有限公司 | Monitoring and evaluating method for information and application resource operating states |
TW201413472A (en) * | 2012-09-17 | 2014-04-01 | Tencent Tech Shenzhen Co Ltd | Method for recovering system file in computer and apparatus thereof |
US20150186206A1 (en) * | 2013-12-31 | 2015-07-02 | Ciena Corporation | Method and system for intelligent distributed health monitoring in switching system equipment |
CN104980317A (en) * | 2015-06-18 | 2015-10-14 | 南京南瑞集团公司 | Automatic test system and test method for dispatching data network equipment |
TW201738747A (en) * | 2016-03-10 | 2017-11-01 | Alibaba Group Services Ltd | Physical machine failure classification handling method and device, and virtual machine recovery method and system |
CN109257218A (en) * | 2018-09-19 | 2019-01-22 | 上海电子信息职业技术学院 | One kind being based on snmp protocol network system isolated island self-healing method |
CN109768882A (en) * | 2018-12-21 | 2019-05-17 | 杭州全维技术股份有限公司 | A kind of automatic network-building system and its failure based on the network equipment is from method of checking |
CN110380907A (en) * | 2019-07-26 | 2019-10-25 | 京信通信系统(中国)有限公司 | A kind of network fault diagnosis method, device, the network equipment and storage medium |
US10462023B1 (en) * | 2018-06-20 | 2019-10-29 | Mitel Networks Corporation | Communication method and system including built-in self test |
CN110430071A (en) * | 2019-07-19 | 2019-11-08 | 云南电网有限责任公司信息中心 | Service node fault self-recovery method, apparatus, computer equipment and storage medium |
CN110535710A (en) * | 2019-09-09 | 2019-12-03 | 锐捷网络股份有限公司 | Remote diagnosis method and system, the network equipment and Cloud Server of the network equipment |
CN111181763A (en) * | 2019-11-28 | 2020-05-19 | 泰康保险集团股份有限公司 | Network fault reporting method and device |
US20210067366A1 (en) * | 2019-08-29 | 2021-03-04 | International Business Machines Corporation | Testing automated smart device functions within smart environments |
-
2021
- 2021-10-13 TW TW110137947A patent/TWI847064B/en active
Patent Citations (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7181360B1 (en) * | 2004-01-30 | 2007-02-20 | Spirent Communications | Methods and systems for generating test plans for communication devices |
US20090064251A1 (en) * | 2007-08-29 | 2009-03-05 | At&T Knowledge Ventures, Lp | System and Method for Troubleshooting a Set Top Box |
TW201413472A (en) * | 2012-09-17 | 2014-04-01 | Tencent Tech Shenzhen Co Ltd | Method for recovering system file in computer and apparatus thereof |
CN103049365A (en) * | 2012-11-07 | 2013-04-17 | 北京宏德信智源信息技术有限公司 | Monitoring and evaluating method for information and application resource operating states |
US20150186206A1 (en) * | 2013-12-31 | 2015-07-02 | Ciena Corporation | Method and system for intelligent distributed health monitoring in switching system equipment |
CN104980317A (en) * | 2015-06-18 | 2015-10-14 | 南京南瑞集团公司 | Automatic test system and test method for dispatching data network equipment |
TW201738747A (en) * | 2016-03-10 | 2017-11-01 | Alibaba Group Services Ltd | Physical machine failure classification handling method and device, and virtual machine recovery method and system |
US10462023B1 (en) * | 2018-06-20 | 2019-10-29 | Mitel Networks Corporation | Communication method and system including built-in self test |
CN109257218A (en) * | 2018-09-19 | 2019-01-22 | 上海电子信息职业技术学院 | One kind being based on snmp protocol network system isolated island self-healing method |
CN109768882A (en) * | 2018-12-21 | 2019-05-17 | 杭州全维技术股份有限公司 | A kind of automatic network-building system and its failure based on the network equipment is from method of checking |
CN110430071A (en) * | 2019-07-19 | 2019-11-08 | 云南电网有限责任公司信息中心 | Service node fault self-recovery method, apparatus, computer equipment and storage medium |
CN110380907A (en) * | 2019-07-26 | 2019-10-25 | 京信通信系统(中国)有限公司 | A kind of network fault diagnosis method, device, the network equipment and storage medium |
US20210067366A1 (en) * | 2019-08-29 | 2021-03-04 | International Business Machines Corporation | Testing automated smart device functions within smart environments |
CN110535710A (en) * | 2019-09-09 | 2019-12-03 | 锐捷网络股份有限公司 | Remote diagnosis method and system, the network equipment and Cloud Server of the network equipment |
CN111181763A (en) * | 2019-11-28 | 2020-05-19 | 泰康保险集团股份有限公司 | Network fault reporting method and device |
Also Published As
Publication number | Publication date |
---|---|
TW202316271A (en) | 2023-04-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110928772B (en) | A test method and device | |
CN107171819B (en) | Network fault diagnosis method and device | |
US7698691B2 (en) | Server application state | |
US12061703B2 (en) | OpenTelemetry security extensions | |
US9588834B1 (en) | Methods and apparatus for improved fault analysis | |
CN103069749B (en) | The method and system of the isolation of the problem in virtual environment | |
CN105677572B (en) | Based on self organizing maps model cloud software performance exception error diagnostic method and system | |
CN110224874A (en) | A kind of processing method and processing device of equipment fault | |
Zeng et al. | Traceark: Towards actionable performance anomaly alerting for online service systems | |
WO2024066506A1 (en) | Data monitoring and analysis method and apparatus, and server, operation and maintenance system, and storage medium | |
WO2016178661A1 (en) | Determining idle testing periods | |
Chen et al. | Using runtime paths for macroanalysis | |
CN110245052A (en) | A kind of hot spot component of data system determines method, apparatus, electronic equipment and storage medium | |
TWI847064B (en) | Equipment detection method and equipment detection device | |
US11675647B2 (en) | Determining root-cause of failures based on machine-generated textual data | |
CN105991322B (en) | A processing method and device for a collection adapter management system | |
CN111324516B (en) | Method and device for automatically recording abnormal events, storage medium, and electronic device | |
CN117493179A (en) | Flow recording and playback method and device, storage medium and electronic equipment | |
CN113626288A (en) | Fault processing method, system, device, storage medium and electronic equipment | |
CN114513398B (en) | Network equipment alarm processing methods, devices, equipment and storage media | |
CN114629786A (en) | Log real-time analysis method, device, storage medium and system | |
CN112181759A (en) | Method for monitoring micro-service performance and diagnosing abnormity | |
JP3271676B2 (en) | Communication protocol failure analysis method and apparatus | |
US20240242031A1 (en) | Apparatus and method for performing forensic activity through automatic log analysis | |
CN110912919B (en) | Network data acquisition method for network health condition modeling analysis |