JP5186043B2 - SNMP agent device and SNMP agent control method - Google Patents
SNMP agent device and SNMP agent control method Download PDFInfo
- Publication number
- JP5186043B2 JP5186043B2 JP2011522631A JP2011522631A JP5186043B2 JP 5186043 B2 JP5186043 B2 JP 5186043B2 JP 2011522631 A JP2011522631 A JP 2011522631A JP 2011522631 A JP2011522631 A JP 2011522631A JP 5186043 B2 JP5186043 B2 JP 5186043B2
- Authority
- JP
- Japan
- Prior art keywords
- trap
- message
- unit
- transmission
- processing
- Prior art date
- Legal status (The legal status 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 status listed.)
- Expired - Fee Related
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/0604—Management of faults, events, alarms or notifications using filtering, e.g. reduction of information by using priority, element types, position or time
- H04L41/0627—Management of faults, events, alarms or notifications using filtering, e.g. reduction of information by using priority, element types, position or time by acting on the notification or alarm source
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/02—Standardisation; Integration
- H04L41/0213—Standardised network management protocols, e.g. simple network management protocol [SNMP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/04—Network management architectures or arrangements
- H04L41/046—Network management architectures or arrangements comprising network management agents or mobile agents therefor
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
- Small-Scale Networks (AREA)
Description
この発明は、データ処理技術に関し、特に、機器の動作状態をSNMP(Simple Network Management Protocol)により管理するマネージャ装置と接続されたエージェント装置およびその制御方法に関する。 The present invention relates to a data processing technique, and more particularly, to an agent device connected to a manager device that manages an operation state of a device using SNMP (Simple Network Management Protocol) and a control method thereof.
機器の動作状態をSNMPにより管理するシステムでは、そのエージェント装置からマネージャ装置に対して自発的にTRAPメッセージを送信することにより、監視対象項目における異常の発生を通知することがある。 In a system that manages the operation state of a device by SNMP, the agent device may spontaneously transmit a TRAP message to the manager device to notify the occurrence of an abnormality in the monitored item.
エージェント装置において、複数の監視対象項目における異常の発生が短時間のうちにそれぞれ検出され、マネージャ装置に対する複数のTRAPメッセージの送信処理が輻輳することがある。この場合、一部のTRAPメッセージがマネージャ装置に通知されることなく破棄されてしまうことがあった。 In the agent device, occurrence of anomalies in a plurality of items to be monitored may be detected in a short time, and transmission processing of a plurality of TRAP messages to the manager device may be congested. In this case, some TRAP messages may be discarded without being notified to the manager device.
本発明は、こうした課題に鑑みてなされたものであり、その主たる目的は、SNMPのエージェント装置にて生成された複数のTRAPメッセージを、マネージャ装置に対して漏れなく通知する技術を提供することである。 The present invention has been made in view of these problems, and its main object is to provide a technique for notifying the manager device of a plurality of TRAP messages generated by an SNMP agent device without omission. is there.
上記課題を解決するために、本発明のある態様のSNMPエージェント装置は、機器の動作状態をSNMPにより管理するマネージャ装置と接続されたエージェント装置であって、TRAPメッセージの通知条件が充足されたとき、マネージャ装置へ通知すべきTRAPメッセージを生成するTRAP発行部と、TRAP発行部において生成されたTRAPメッセージをマネージャ装置へ送信するTRAP送信部と、を備える。TRAP送信部は、複数のTRAPメッセージの処理が輻輳した場合、当該複数のTRAPメッセージのうち少なくとも1つの処理を中止するものであり、TRAP発行部は、TRAP送信部がアイドル状態であることを条件として、TRAP送信部へTRAPメッセージを出力する。 In order to solve the above-described problem, an SNMP agent device according to an aspect of the present invention is an agent device connected to a manager device that manages an operation state of a device by SNMP, and when a notification condition of a TRAP message is satisfied A TRAP issuing unit that generates a TRAP message to be notified to the manager device, and a TRAP transmitting unit that transmits the TRAP message generated in the TRAP issuing unit to the manager device. The TRAP transmission unit stops at least one of the plurality of TRAP messages when the processing of the plurality of TRAP messages is congested. To output a TRAP message to the TRAP transmission unit.
「TRAPメッセージの通知条件」は、システムの運用担当者の知見や、システムに対する要求条件に基づいて決定されてよい。例えば、エージェント装置の動作状態や動作環境等の監視対象項目が所定態様になることでもよい。「複数のTRAPメッセージの処理が輻輳した」とは、複数のTRAPメッセージの送信依頼がTRAP送信部において略同時に受け付けられたことでもよい。例えば、TRAP送信部において第1のTRAPメッセージの送信処理中に、その第1のTRAPメッセージとは異なる第2のTRAPメッセージの送信依頼がTRAP発行部から受け付けられたことでもよい。「TRAP送信部がアイドル状態である」とは、TRAP送信部の動作状態が、新たなTRAPメッセージを受け付けても送信処理の輻輳が発生しない状態を示す。例えば、他のTRAPメッセージの送信処理を未実行の状態であってもよい。 The “TRAP message notification condition” may be determined based on the knowledge of the person in charge of the system operation or the requirements for the system. For example, the monitoring target items such as the operating state and operating environment of the agent device may be in a predetermined mode. “The processing of a plurality of TRAP messages is congested” may mean that transmission requests for a plurality of TRAP messages are accepted substantially simultaneously by the TRAP transmission unit. For example, a transmission request for a second TRAP message different from the first TRAP message may be received from the TRAP issuing unit during the transmission process of the first TRAP message in the TRAP transmission unit. “The TRAP transmission unit is in an idle state” indicates a state in which the operation state of the TRAP transmission unit does not cause congestion in transmission processing even when a new TRAP message is received. For example, another TRAP message transmission process may be in an unexecuted state.
この態様によると、TRAP送信部は、自身がアイドル状態であるときに、TRAP発行部からのTRAP送信依頼を受け付けることになる。したがって、TRAP送信部において、複数のTRAPメッセージの送信処理が輻輳することを回避できる。これにより、TRAPメッセージの通知条件が略同時に複数充足された場合でも、複数のTRAPメッセージのそれぞれは廃棄されることなく、マネージャ装置へ漏れなく送信される。 According to this aspect, the TRAP transmitting unit accepts a TRAP transmission request from the TRAP issuing unit when the TRAP transmitting unit is in an idle state. Therefore, it is possible to avoid congestion of transmission processing of a plurality of TRAP messages in the TRAP transmission unit. Thus, even when a plurality of TRAP message notification conditions are satisfied substantially simultaneously, each of the plurality of TRAP messages is transmitted to the manager device without being discarded.
TRAP送信部は、自身の動作状態が変化したことを契機として、その動作状態をTRAP発行部へ通知し、TRAP発行部は、TRAP送信部からの通知内容を参照して、TRAP送信部がアイドル状態であるか否かを検出してもよい。「自身の動作状態が変化したこと」とは、TRAP送信部の動作状態が、アイドル状態からTRAPメッセージの送信処理を実行中の状態へ移行したことでもよく、TRAPメッセージの送信処理を実行中の状態からアイドル状態へ移行したことでもよい。この態様によると、TRAP発行部はTRAP送信部の動作状態をTRAP送信部に問い合わせる必要がなく、TRAPメッセージを送出すべき際にその動作状態を即座に検出できる。 The TRAP transmitting unit notifies the TRAP issuing unit of the operating state triggered by the change in its operating state. The TRAP issuing unit refers to the notification content from the TRAP transmitting unit, and the TRAP transmitting unit is idle. You may detect whether it is a state. “The operation state of the device itself has changed” may be that the operation state of the TRAP transmission unit has shifted from the idle state to a state in which a TRAP message transmission process is being executed. It may be a transition from the state to the idle state. According to this aspect, the TRAP issuing unit does not need to inquire the TRAP transmission unit about the operation state of the TRAP transmission unit, and can immediately detect the operation state when the TRAP message should be transmitted.
TRAP発行部は、TRAPメッセージを一時的に保持するバッファを含んでもよい。TRAP発行部は、TRAP送信部が他のTRAPメッセージの処理中である場合、TRAP送信部へ出力すべきTRAPメッセージをバッファに保持してもよい。「バッファ」は、TRAPメッセージのデータを記憶する記憶領域であってもよく、RAM等のメモリとして実装されてもよい。この態様によると、TRAP送信部に対してTRAPメッセージを出力すべきでない間、TRAP発行部は、自身のバッファにTRAPメッセージを保持しておくことができる。 The TRAP issuing unit may include a buffer that temporarily holds the TRAP message. The TRAP issuing unit may hold a TRAP message to be output to the TRAP transmitting unit in a buffer when the TRAP transmitting unit is processing another TRAP message. The “buffer” may be a storage area for storing TRAP message data, or may be implemented as a memory such as a RAM. According to this aspect, while the TRAP message should not be output to the TRAP transmitting unit, the TRAP issuing unit can hold the TRAP message in its own buffer.
TRAP発行部は、TRAP送信部の動作状態がTRAPメッセージの処理中からアイドル状態へ移行した場合、バッファが保持するTRAPメッセージをTRAP送信部へ出力してもよい。この態様によると、TRAP送信部における他のTRAPメッセージの送信処理が完了してから、TRAP発行部はTRAPメッセージをTRAP送信部へ出力する。これにより、TRAP送信部にて複数のTRAPメッセージの送信処理が輻輳することを回避できる。 The TRAP issuing unit may output the TRAP message held in the buffer to the TRAP transmitting unit when the operation state of the TRAP transmitting unit shifts from the processing of the TRAP message to the idle state. According to this aspect, the TRAP issuing unit outputs the TRAP message to the TRAP transmitting unit after the processing for transmitting another TRAP message in the TRAP transmitting unit is completed. Thereby, it is possible to avoid congestion of transmission processing of a plurality of TRAP messages in the TRAP transmission unit.
このSNMPエージェント装置は、複数のTRAP発行部を備えてもよい。複数のTRAP発行部のそれぞれは、TRAP送信部がTRAPメッセージの処理中である場合に、TRAP送信部へ出力すべきTRAPメッセージを保持するためのバッファを含んでもよい。「複数のTRAP発行部」のそれぞれは、互いに異なる監視対象項目の状態変化を検出してTRAPメッセージを生成するものであってもよい。 The SNMP agent device may include a plurality of TRAP issuing units. Each of the plurality of TRAP issuing units may include a buffer for holding a TRAP message to be output to the TRAP transmitting unit when the TRAP transmitting unit is processing the TRAP message. Each of the “plurality of TRAP issuing units” may generate a TRAP message by detecting a change in state of different monitoring target items.
この態様によれば、複数種のTRAPメッセージをマネージャ装置へ通知するエージェント装置においても、TRAP送信部にて複数のTRAPメッセージの送信処理が輻輳することを回避できる。また、個々のTRAP発行部がバッファを含むことにより、TRAP送信部がバッファを含む場合と比べて、TRAP送信部の処理負荷を低減できる。また、複数のTRAPメッセージは個々のTRAP発行部のバッファに分散されて格納されるため、バッファ容量を超えてTRAPメッセージが格納されることを防止しやすくなる。 According to this aspect, even in the agent device that notifies the manager device of a plurality of types of TRAP messages, it is possible to avoid congestion of transmission processing of the plurality of TRAP messages in the TRAP transmission unit. Further, since each TRAP issuing unit includes a buffer, the processing load on the TRAP transmitting unit can be reduced as compared with the case where the TRAP transmitting unit includes a buffer. Further, since the plurality of TRAP messages are distributed and stored in the buffers of the individual TRAP issuing units, it is easy to prevent the TRAP messages from being stored exceeding the buffer capacity.
本発明の別の態様は、SNMPエージェント制御方法である。この方法は、機器の動作状態をSNMPにより管理するマネージャ装置と接続されたエージェント装置を制御する方法であって、TRAPメッセージの通知条件が充足されたとき、TRAP発行部が、マネージャ装置へ通知すべきTRAPメッセージを生成するステップと、複数のTRAPメッセージの処理が輻輳した場合、当該複数のTRAPメッセージのうち少なくとも1つの処理を中止するTRAP送信部がアイドル状態であることを条件として、TRAP発行部が、TRAP送信部へTRAPメッセージを出力するステップと、TRAP送信部が、マネージャ装置へTRAPメッセージを送信するステップと、をエージェント装置に実行させる。この態様によると、上記の効果を奏するエージェント装置を実現できる。 Another aspect of the present invention is an SNMP agent control method. This method is a method of controlling an agent device connected to a manager device that manages the operation state of a device by SNMP, and when a TRAP message notification condition is satisfied, a TRAP issuing unit notifies the manager device. Generating a TRAP message to be processed, and when a plurality of TRAP messages are congested, a TRAP issuing unit is provided on condition that a TRAP transmission unit that stops at least one of the plurality of TRAP messages is in an idle state. Causes the agent device to execute a step of outputting a TRAP message to the TRAP transmission unit and a step of the TRAP transmission unit transmitting the TRAP message to the manager device. According to this aspect, it is possible to realize an agent device that exhibits the above effects.
なお、以上の構成要素の任意の組合せ、本発明の表現を装置、方法、システム、プログラム、プログラムを格納した記録媒体などの間で変換したものもまた、本発明の態様として有効である。 It should be noted that any combination of the above-described constituent elements and a representation of the present invention converted between an apparatus, a method, a system, a program, a recording medium storing the program, and the like are also effective as an aspect of the present invention.
本発明によれば、SNMPのエージェント装置にて生成された複数のTRAPメッセージについて、マネージャ装置に対する通知漏れの発生を防止しやすくなる。 ADVANTAGE OF THE INVENTION According to this invention, it becomes easy to prevent generation | occurrence | production of the notification omission with respect to a manager apparatus about the several TRAP message produced | generated in the agent apparatus of SNMP.
図1は、本発明の実施の形態であるSNMP管理システム10の構成を示す。SNMP管理システム10は、エージェント装置12で総称される第1のエージェント装置12a、第2のエージェント装置12bと、マネージャ装置14とを備える。エージェント装置12とマネージャ装置14とは、LAN(Local Area Network)16を介して相互に接続されている。
FIG. 1 shows a configuration of an SNMP management system 10 according to an embodiment of the present invention. The SNMP management system 10 includes a
マネージャ装置14は、SNMPマネージャソフトウェアが搭載されたコンピュータ端末である。マネージャ装置14は、所定の監視対象項目の状態を示すデータをエージェント装置12から取得する。そして、監視対象項目の状態をSNMP管理システム10の運用担当者へ適宜通知することで、SNMP管理システム10の監視および運用を支援する。
The
エージェント装置12は、SNMPエージェントソフトウェアが搭載された、または、そのソフトウェアと同様の機能を提供する電子回路等のハードウェアが搭載されたSNMPのエージェント装置である。例えば、レイヤ2スイッチやルータ等の通信機器であってもよく、一般的なPC端末であってもよい。
The
エージェント装置12は、所定の監視対象項目の状態を通知するためのTRAPメッセージを自発的にマネージャ装置14へ通知する。例えば、エージェント装置12は、TRAPメッセージの通知条件が充足されたとき、典型的には、所定の監視対象項目についてその状態変化を検出したとき、その状態変化の内容を含むTRAPメッセージのデータをマネージャ装置14へ送信する。
The
TRAPメッセージの送信に際して、エージェント装置12は、TRAP発行部においてTRAPメッセージを生成し、TRAP送信部においてそのTRAPメッセージをマネージャ装置14へ送信する。これまでのエージェント装置では、複数のTRAPメッセージそれぞれの送信処理がTRAP送信部において輻輳したとき、少なくとも1つのTRAPメッセージが廃棄された。その結果、マネージャ装置に対するTRAPメッセージの通知漏れが生じることがあった。以下、その具体例を示す。
When transmitting the TRAP message, the
図2は、TRAPメッセージの送信について従来の処理シーケンスを示す。ある監視対象項目に関する所定イベントの発生を検出すると、第1のTRAP発行部は、TRAPメッセージ#1を生成する。そして、そのTRAPメッセージ#1の送信依頼をTRAP送信部へ出力する(S10)。TRAP送信部は、TRAPメッセージ#1の送信処理を開始して、マネージャ装置のアドレスを解決するためのARP(Address Resolution Protocol)リクエストをLAN側へ送出する(S12)。
FIG. 2 shows a conventional processing sequence for transmission of a TRAP message. When the occurrence of a predetermined event related to a certain monitoring target item is detected, the first TRAP issuing unit generates a
ここで、第2のTRAP発行部は、別の監視対象項目に関する所定イベントの発生を検出して、TRAPメッセージ#2の送信依頼をTRAP送信部へ出力する(S14)。TRAP送信部は、TRAPメッセージ#1の送信処理中にTRAPメッセージ#2の送信依頼を受け付けると、TRAPメッセージ#1を廃棄する(S16)。そして、TRAP送信部は、ARPリプライを受け付けて、TRAPメッセージ#2をLAN側へ送出することにより、TRAPメッセージ#2をマネージャ装置へ送信する(S18)。
Here, the second TRAP issuing unit detects the occurrence of a predetermined event related to another monitoring target item, and outputs a request for transmitting the
また、このようなTRAPメッセージ廃棄の問題は、1つのTRAP発行部が短時間のうちに複数のTRAPメッセージを生成した場合にも生じていた。この例を図3で説明する。 Further, such a problem of discarding the TRAP message also occurs when one TRAP issuing unit generates a plurality of TRAP messages within a short time. This example will be described with reference to FIG.
図3は、TRAPメッセージの送信について従来の処理シーケンスを示す。第1のTRAP発行部はTRAPメッセージ#1の送信依頼をTRAP送信部へ出力し(S20)、TRAP送信部はARPリクエストをLAN側へ送出する(S22)。ここで、第1のTRAP発行部は、別のイベントの発生を検出して、TRAPメッセージ#2の送信依頼をTRAP送信部へ出力する(S24)。TRAP送信部は、TRAPメッセージ#1の送信処理中にTRAPメッセージ#2の送信依頼を受け付けると、TRAPメッセージ#1を廃棄する(S26)。そして、TRAP送信部は、ARPリプライを受け付けて、TRAPメッセージ#2をLAN側へ送出する(S28)。
FIG. 3 shows a conventional processing sequence for transmission of a TRAP message. The first TRAP issuing unit outputs a transmission request for
なお、TRAP送信部にTRAPメッセージを保持するバッファを設けることで、TRAP送信部におけるTRAPメッセージ送信処理の輻輳を回避することも考えられる。この態様の場合、第1のTRAP発行部および第2のTRAP発行部は、マネージャ装置へ通知すべきTRAPメッセージをこのバッファに格納する。そして、TRAP送信部は、このバッファからTRAPメッセージを順次取得してマネージャ装置へ送信する。 It is also conceivable to avoid congestion of the TRAP message transmission process in the TRAP transmission unit by providing a buffer for holding the TRAP message in the TRAP transmission unit. In the case of this aspect, the first TRAP issuing unit and the second TRAP issuing unit store the TRAP message to be notified to the manager device in this buffer. Then, the TRAP transmission unit sequentially acquires TRAP messages from this buffer and transmits them to the manager device.
しかし、この態様では、TRAP送信部は常にバッファからTRAPメッセージを取得するため、バッファに対するアクセス時間がオーバーヘッドとして生じることとなる。また、TRAP送信部は、TRAPメッセージの送信処理を一元的に行うため処理負荷が比較的高いが、バッファの空き状態等の管理処理を加重して実行する場合、その処理負荷はさらに高くなってしまう。また、TRAP送信部の実装規模、例えば回路規模が大きくなってしまうことがあった。 However, in this aspect, since the TRAP transmission unit always obtains the TRAP message from the buffer, access time to the buffer occurs as overhead. In addition, the TRAP transmission unit performs a TRAP message transmission process in a centralized manner, so the processing load is relatively high. However, when a management process such as a buffer free state is weighted and executed, the processing load becomes even higher End up. Moreover, the mounting scale of the TRAP transmission unit, for example, the circuit scale may be increased.
このようなTRAPメッセージ廃棄の問題を解決するために、本実施の形態のエージェント装置12においては、そのTRAP送信部が、随時、自身の動作状態をTRAP発行部へ通知する。TRAP発行部は、TRAP送信部がアイドル状態であることを条件として、TRAPメッセージの送信依頼をTRAP送信部へ出力する。これにより、TRAP送信部において複数のTRAPメッセージの送信処理が輻輳することを回避でき、マネージャ装置に対してTRAPメッセージを漏れなく送信可能となる。また、エージェント装置12においては、個々のTRAP発行部にバッファを設けることで、TRAPメッセージの送信依頼の一時的な保留と、TRAP送信部における処理負荷の増大防止との両方を実現する。
In order to solve such a problem of discarding the TRAP message, in the
図4は、図1のエージェント装置12の機能構成を示すブロック図である。本明細書のブロック図において示される各ブロックは、ハードウェア的には、コンピュータのCPUをはじめとする素子や機械装置で実現でき、ソフトウェア的にはコンピュータプログラム等によって実現されるが、ここでは、それらの連携によって実現される機能ブロックを描いている。したがって、これらの機能ブロックはハードウェア、ソフトウェアの組合せによっていろいろなかたちで実現できることは、当業者には理解されるところである。
FIG. 4 is a block diagram showing a functional configuration of the
エージェント装置12は、TRAP発行部30で総称される第1のTRAP発行部30a、第2のTRAP発行部30bと、TRAP送信部20とを備える。TRAP送信部20は、マネージャ装置14に対するTRAPメッセージの送信処理を実行する。TRAP送信部20は、送信実行部22と、状態通知部24とを有する。
The
送信実行部22は、TRAP発行部30からTRAPメッセージの送信依頼データを受け付ける。そして、その送信依頼データに含まれるTRAPメッセージのデータを、LAN16を介して、マネージャ装置14へ送信する。
The
状態通知部24は、送信実行部22の動作状態を示す状態データにより、後述するTRAP発行部30の状態レジスタ32における記憶データを随時上書き更新する。この状態データは、TRAPメッセージの送信処理中でない状態を示す「アイドル状態」と、TRAPメッセージの送信処理中を示す「送信処理中状態」とのいずれかを示す。具体的には、状態通知部24は、送信実行部22の動作状態について、アイドル状態から送信処理中状態への移行、もしくは、送信処理中状態からアイドル状態への移行を検出したときに、移行後の動作状態を状態レジスタ32へ随時記録する。
The
TRAP発行部30は、マネージャ装置14へ通知すべきTRAPメッセージの生成処理を実行する。第1のTRAP発行部30aは、第1の監視対象項目に関するTRAPメッセージ(以下、「TRAPメッセージ#1」とも呼ぶ。)を生成する。第2のTRAP発行部30bは、第2の監視対象項目に関するTRAPメッセージ(以下、「TRAPメッセージ#2」とも呼ぶ。)を生成する。
The
TRAP発行部30は、状態レジスタ32と、TRAPバッファ34と、TRAP契機検出部36と、TRAP生成部38と、送信依頼部40とを有する。状態レジスタ32は、TRAP送信部20の動作状態を示すフラグを記憶するレジスタであり、少なくとも1ビットを記憶する。例えば、フラグ「0」はTRAP送信部20がアイドル状態であることを示し、フラグ「1」はTRAP送信部20が送信処理中状態であることを示してもよい。TRAPバッファ34は、TRAPメッセージのデータを一時的に記憶する記憶領域である。
The
TRAP契機検出部36は、TRAPメッセージ通知の条件となる所定イベントの発生、具体的には、所定の監視対象項目における所定の状態変化をマネージャ装置14に対するTRAPメッセージの通知契機として検出する。そして、その状態変化を示すデータを含むTRAPメッセージの生成要求をTRAP生成部38へ送出する。例えば、外部装置との接続状態を監視対象項目とする場合、外部装置とのリンク断が発生したことをTRAPメッセージの通知契機として検出してもよい。また、ラインカードの動作状態を監視対象項目とする場合、ラインカードにおける故障の発生をTRAPメッセージの通知契機として検出してもよい。
The TRAP
TRAP生成部38は、TRAPメッセージの生成要求をTRAP契機検出部36から受け付ける。そして、監視対象項目の状態変化の内容を、あらかじめ定められた形式のTRAPメッセージのデータとして設定することにより、マネージャ装置14へ通知すべきTRAPメッセージを生成する。
The
送信依頼部40は、マネージャ装置14へ通知すべきTRAPメッセージがTRAP生成部38において生成されると、状態レジスタ32を参照して、TRAP送信部20の動作状態を識別する。TRAP送信部20がアイドル状態である場合、送信依頼部40は、マネージャ装置14へ通知すべきTRAPメッセージを含むその送信依頼のデータを送信実行部22へ出力する。TRAP送信部20が送信処理中状態である場合、送信依頼部40は、送信実行部22に対するTRAPメッセージの送信依頼を保留し、そのTRAPメッセージのデータをTRAPバッファ34へ記録する。
When a TRAP message to be notified to the
また送信依頼部40は、TRAPバッファ34を定期的に参照して、TRAPバッファ34に保持されたTRAPメッセージの有無を定期的に判定する。そして、TRAPバッファ34にTRAPメッセージが保持され、かつ、TRAP送信部20がアイドル状態であるとき、TRAPバッファ34からTRAPメッセージを取得して、その送信依頼のデータを送信実行部22へ出力する。
The
以上の構成による動作を以下説明する。
図5は、図4のエージェント装置12の動作を示すフローチャートである。同図は、TRAP送信部20の処理フローを示している。送信実行部22は、送信依頼部40からTRAPメッセージの送信依頼を受け付ける(S30)。状態通知部24は、送信実行部22の送信処理中状態を示すフラグを状態レジスタ32へ設定する(S32)。送信実行部22は、マネージャ装置14に対してTRAPメッセージのデータを送信する(S34)。送信処理が完了すると、状態通知部24は、送信実行部22のアイドル状態を示すフラグを状態レジスタ32へ設定する(S36)。The operation of the above configuration will be described below.
FIG. 5 is a flowchart showing the operation of the
図6は、図4のエージェント装置12の動作を示すフローチャートである。同図は、TRAP発行部30の処理フローを示している。TRAP契機検出部36は、TRAPメッセージ通知のトリガとなる所定イベントの発生を検出する(S40)。TRAP生成部38は、検出されたイベントの内容を示すTRAPメッセージのデータを生成する(S42)。送信依頼部40は、状態レジスタ32を参照して、送信実行部22の動作状態を特定する。送信実行部22がアイドル状態である場合(S44のY)、送信依頼部40は、TRAPメッセージの送信依頼を送信実行部22へ直ちに送出する(S46)。送信実行部22が送信処理中状態である場合(S44のN)、送信依頼部40は、TRAPメッセージの送信依頼の送出に代えて、そのTRAPメッセージをTRAPバッファ34へ記録する(S48)。
FIG. 6 is a flowchart showing the operation of the
図7は、図4のエージェント装置12の動作を示すフローチャートである。同図は、TRAP発行部30において定期的に実行される処理フローを示している。送信依頼部40は、TRAPバッファ34を定期的に参照し、TRAPメッセージが保持されているか否かを判定する。TRAPバッファ34にTRAPメッセージが保持されており(S50のY)、送信実行部22がアイドル状態である場合(S52のY)、送信依頼部40は、TRAPバッファ34に保持されたTRAPメッセージの送信依頼を送信実行部22へ送出する。TRAPバッファ34にTRAPメッセージが保持されておらず(S50のN)、もしくは、送信実行部22が送信処理中状態である場合(S52のN)、図7の処理フローを終了する。
FIG. 7 is a flowchart showing the operation of the
図8は、TRAPメッセージの送信について本実施の形態の処理シーケンスを示す。第1のTRAP発行部30aは、ある監視対象項目に関する所定イベントの発生を検出すると、TRAPメッセージ#1を生成する。そして、そのTRAPメッセージ#1の送信依頼をTRAP送信部20へ出力する(S60)。TRAP送信部20は、TRAPメッセージ#1の送信処理を開始する際に、送信処理中である旨を第1のTRAP発行部30aおよび第2のTRAP発行部30bへ通知する(S62)。具体的には、送信処理中状態を示すフラグデータを第1のTRAP発行部30aおよび第2のTRAP発行部30bの状態レジスタ32へ記録する。TRAP送信部20は、TRAPメッセージ#1の送信処理においてARPリクエストをLAN側へ送出する(S64)。
FIG. 8 shows a processing sequence of the present embodiment regarding transmission of a TRAP message. When the first
ここで、第2のTRAP発行部30bは、別の監視対象項目に関する所定イベントの発生を検出して、TRAPメッセージ#2を生成する。そして、TRAP送信部20が送信処理中状態であると判別して、TRAPメッセージ#2をTRAPバッファ34へ記録する(S66)。TRAP送信部20は、ARPリプライを受け付けて、TRAPメッセージ#1をマネージャ装置14へ送信する(S68)。TRAPメッセージ#1の送信処理が完了すると、TRAP送信部20は、アイドル状態である旨を第1のTRAP発行部30aおよび第2のTRAP発行部30bへ通知する(S70)。
Here, the second
続いて、第2のTRAP発行部30bは、TRAPバッファ34にTRAPメッセージ#2が保持されていること、および、TRAP送信部20がアイドル状態であることを検出して、TRAPメッセージ#2の送信依頼をTRAP送信部20へ出力する(S72)。TRAP送信部20は、TRAPメッセージ#2の送信処理を開始する際に、送信処理中である旨を第1のTRAP発行部30aおよび第2のTRAP発行部30bへ通知する(S74)。以降、TRAPメッセージ#2の送信処理が実行される。
Subsequently, the second
本実施の形態のエージェント装置12によれば、TRAP送信部20の動作状態がTRAP発行部30へ随時通知される。TRAP発行部30は、TRAP送信部20がアイドル状態であることを条件として、TRAPメッセージの送信をTRAP送信部20へ依頼する。これにより、TRAP送信部20において複数のTRAPメッセージの送信処理が輻輳することを回避できる。また、TRAP発行部30側でTRAPバッファ34を保持することにより、TRAP送信部20におけるバッファ管理が不要となる。また、TRAP送信部20がアイドル状態であれば、TRAPバッファ34へのアクセスそのものが不要となる。すなわち、バッファへのアクセス回数が低減されてエージェント装置12の処理性能を向上できる。
According to the
以上、本発明を実施の形態をもとに説明した。この実施の形態は例示であり、それらの各構成要素や各処理プロセスの組合せにいろいろな変形例が可能なこと、またそうした変形例も本発明の範囲にあることは当業者に理解されるところである。 The present invention has been described based on the embodiments. This embodiment is an exemplification, and it will be understood by those skilled in the art that various modifications can be made to combinations of the respective constituent elements and processing processes, and such modifications are also within the scope of the present invention. is there.
変形例を説明する。複数のTRAP発行部30のそれぞれには、TRAP送信部20に対してTRAPメッセージの送信依頼を出力可能な期間として、互いに異なるタイムスロットがあらかじめ割り当てられてもよい。このタイムスロットは、所定の単位時間を複数区間に分割したものであってもよい。この場合、複数のTRAP発行部30それぞれの送信依頼部40は、自身に割り当てられたタイムスロットにおいて、送信実行部22の動作状態を識別し、送信実行部22に対してTRAPメッセージの送信依頼を実行する。
A modification will be described. Different time slots may be assigned to each of the plurality of
さらに、複数のTRAP発行部30のそれぞれに割り当てられるタイムスロットの間には、いずれのTRAP発行部30にもTRAPメッセージの送信依頼が許容されない依頼不可期間が設定されてもよい。この依頼不可期間は、TRAP発行部30からTRAP送信部20へTRAPメッセージの送信依頼が出力されて、TRAP送信部20からTRAP発行部30へ送信処理中状態が通知されるまでの期間以上であることが望ましい。この変形例によれば、複数のTRAP発行部30のそれぞれにおいてTRAPメッセージが同時に生成された場合でも、TRAP送信部20においてTRAPメッセージの送信処理が輻輳することをより確実に回避できる。
Further, between the time slots assigned to each of the plurality of
請求項に記載の各構成要件が果たすべき機能は、実施の形態および変形例において示された各構成要素の単体もしくはそれらの連携によって実現されることも当業者には理解されるところである。 It should also be understood by those skilled in the art that the functions to be fulfilled by the constituent elements described in the claims are realized by the individual constituent elements shown in the embodiments and the modification examples or by their cooperation.
10 SNMP管理システム、 12 エージェント装置、 14 マネージャ装置、 20 TRAP送信部、 22 送信実行部、 24 状態通知部、 30 TRAP発行部、 32 状態レジスタ、 34 TRAPバッファ、 36 TRAP契機検出部、 38 TRAP生成部、 40 送信依頼部。 10 SNMP management system, 12 agent device, 14 manager device, 20 TRAP transmission unit, 22 transmission execution unit, 24 status notification unit, 30 TRAP issue unit, 32 status register, 34 TRAP buffer, 36 TRAP trigger detection unit, 38 TRAP generation Part, 40 transmission request part.
本発明は、機器の動作状態をSNMPにより管理するシステムにおいて利用できる。 The present invention can be used in a system that manages the operation state of a device by SNMP.
Claims (3)
監視対象項目が互いに異なり、TRAPメッセージの通知条件が充足されたとき、前記マネージャ装置へ通知すべきTRAPメッセージを生成する複数のTRAP発行部と、
前記複数のTRAP発行部のそれぞれにおいて生成されたTRAPメッセージを前記マネージャ装置へ送信するTRAP送信部と、
を備え、
前記TRAP送信部は、複数のTRAPメッセージの処理が輻輳した場合、当該複数のTRAPメッセージのうち少なくとも1つの処理を中止するものであり、
前記複数のTRAP発行部のそれぞれは、
前記TRAP送信部がTRAPメッセージの処理中である場合に、前記TRAP送信部へ出力すべきTRAPメッセージを保持するためのバッファを含み、
前記TRAP送信部が他のTRAPメッセージの処理中である場合、前記TRAP送信部へ出力すべきTRAPメッセージを前記バッファへ記録し、
前記TRAP送信部の動作状態がTRAPメッセージの処理中からアイドル状態へ移行した場合、前記バッファに保持されたTRAPメッセージを前記TRAP送信部へ出力することを特徴とするSNMPエージェント装置。An agent device connected to a manager device that manages the operation state of the device by SNMP (Simple Network Management Protocol),
A plurality of TRAP issuing units for generating a TRAP message to be notified to the manager device when the monitoring target items are different from each other and the notification condition of the TRAP message is satisfied;
A TRAP transmitter that transmits the TRAP message generated in each of the plurality of TRAP issuing units to the manager device;
With
The TRAP transmission unit, when processing of a plurality of TRAP messages is congested, stops at least one of the plurality of TRAP messages,
Each of the plurality of TRAP issuing units is
A buffer for holding a TRAP message to be output to the TRAP transmitter when the TRAP transmitter is processing a TRAP message;
If the TRAP transmitter is processing another TRAP message, record the TRAP message to be output to the TRAP transmitter in the buffer,
An SNMP agent device that outputs the TRAP message held in the buffer to the TRAP transmission unit when the operation state of the TRAP transmission unit shifts from the processing of the TRAP message to the idle state .
前記複数のTRAP発行部のそれぞれは、前記TRAP送信部からの通知内容を参照して、前記TRAP送信部がアイドル状態であるか否かを検出することを特徴とする請求項1に記載のSNMPエージェント装置。The TRAP transmission unit notifies each of the plurality of TRAP issuing units of the operation state triggered by a change in its operation state,
2. The SNMP according to claim 1, wherein each of the plurality of TRAP issuing units detects whether or not the TRAP transmitting unit is in an idle state with reference to a notification content from the TRAP transmitting unit. Agent device.
監視対象項目が互いに異なる複数のTRAP発行部のそれぞれが、TRAPメッセージの通知条件が充足されたとき、前記マネージャ装置へ通知すべきTRAPメッセージを生成するステップと、
TRAP送信部が、前記複数のTRAP発行部のそれぞれにおいて生成されたTRAPメッセージを前記マネージャ装置へ送信するステップと、
を備え、
前記TRAP送信部は、複数のTRAPメッセージの処理が輻輳した場合、当該複数のTRAPメッセージのうち少なくとも1つの処理を中止するものであり、
前記複数のTRAP発行部のそれぞれが、前記TRAP送信部が他のTRAPメッセージの処理中である場合、前記TRAP送信部へ出力すべきTRAPメッセージを自身に設けられたバッファへ記録するステップと、
前記複数のTRAP発行部のそれぞれが、前記TRAP送信部の動作状態がTRAPメッセージの処理中からアイドル状態へ移行した場合、前記バッファに保持されたTRAPメッセージを前記TRAP送信部へ出力するステップと、
をさらに備えることを特徴とするSNMPエージェント制御方法。 An SNMP agent control method executed by an agent device connected to a manager device that manages an operation state of a device by SNMP ,
And Step monitored item, each of a plurality of different TRAP issuing unit together, when the notification condition of TRAP message is satisfied, to generate a TRAP message to be notified to the prior Symbol manager device,
A TRAP transmitting unit transmitting a TRAP message generated in each of the plurality of TRAP issuing units to the manager device;
With
The TRAP transmission unit, when processing of a plurality of TRAP messages is congested, stops at least one of the plurality of TRAP messages,
Each of the plurality of TRAP issuing units records a TRAP message to be output to the TRAP transmitting unit in a buffer provided therein when the TRAP transmitting unit is processing another TRAP message;
Each of the plurality of TRAP issuing units outputs the TRAP message held in the buffer to the TRAP transmitting unit when the operating state of the TRAP transmitting unit shifts from the processing of the TRAP message to the idle state;
Further comprising SNMP agent control method comprising Rukoto a.
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/JP2009/003390 WO2011007399A1 (en) | 2009-07-17 | 2009-07-17 | Snmp agent device and snmp agent control method |
Publications (2)
Publication Number | Publication Date |
---|---|
JPWO2011007399A1 JPWO2011007399A1 (en) | 2012-12-20 |
JP5186043B2 true JP5186043B2 (en) | 2013-04-17 |
Family
ID=43449020
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2011522631A Expired - Fee Related JP5186043B2 (en) | 2009-07-17 | 2009-07-17 | SNMP agent device and SNMP agent control method |
Country Status (2)
Country | Link |
---|---|
JP (1) | JP5186043B2 (en) |
WO (1) | WO2011007399A1 (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH11143800A (en) * | 1997-11-05 | 1999-05-28 | Nec Corp | Communication flow control system for computer and method therefor and recording medium |
JP2000347712A (en) * | 1999-03-30 | 2000-12-15 | Fuji Electric Co Ltd | Programmable controller |
JP2004080397A (en) * | 2002-08-19 | 2004-03-11 | Nec Corp | Snmp agent provided with lan monitor function |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2001025933A1 (en) * | 1999-10-01 | 2001-04-12 | Fujitsu Limited | Manager agent model system |
WO2008149455A1 (en) * | 2007-06-08 | 2008-12-11 | Fujitsu Limited | Manager, agent, system and transmission control method |
-
2009
- 2009-07-17 WO PCT/JP2009/003390 patent/WO2011007399A1/en active Application Filing
- 2009-07-17 JP JP2011522631A patent/JP5186043B2/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH11143800A (en) * | 1997-11-05 | 1999-05-28 | Nec Corp | Communication flow control system for computer and method therefor and recording medium |
JP2000347712A (en) * | 1999-03-30 | 2000-12-15 | Fuji Electric Co Ltd | Programmable controller |
JP2004080397A (en) * | 2002-08-19 | 2004-03-11 | Nec Corp | Snmp agent provided with lan monitor function |
Also Published As
Publication number | Publication date |
---|---|
JPWO2011007399A1 (en) | 2012-12-20 |
WO2011007399A1 (en) | 2011-01-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11689606B2 (en) | Communication method, system and apparatus | |
US20100057901A1 (en) | Network management system and node device and management apparatus thereof | |
KR101618989B1 (en) | Method of failover for network device in software defined network environment | |
US20230324868A1 (en) | Control system, local device, and remote device | |
JP2009265690A (en) | Cluster system and program | |
JP5229007B2 (en) | Monitoring system, network device, monitoring information providing method and program | |
CN110519337B (en) | Node state judging and collecting method, state decision device and state collector | |
JP5186043B2 (en) | SNMP agent device and SNMP agent control method | |
JP4566148B2 (en) | Network communication monitoring system, network communication monitoring method, central device, relay device, and computer program | |
JP2012124871A (en) | Congestion control program, information processing apparatus, and congestion control method | |
CN116647476A (en) | Network management method, apparatus, computer device, storage medium, and program product | |
JP2008124977A (en) | Method, apparatus, and program of message delivery | |
JP2006319381A (en) | Method for transmitting urgent message | |
JP2011146989A (en) | Monitoring and controlling system, device to be monitored and controlled, and server | |
JP4818338B2 (en) | Monitoring server, network monitoring method | |
JP5378847B2 (en) | Monitoring device | |
KR20210078115A (en) | Apparatus and method for forwarding message of private branch exchange system | |
JP6497142B2 (en) | Communication monitoring device, communication monitoring program, and communication monitoring method | |
JP5082147B2 (en) | Multi-node system, inter-node switch, and data relay method | |
JP2016154307A (en) | Data transfer program, data transfer device, and data transfer system | |
EP2673923B1 (en) | Enhanced device discovery technology | |
CN114884794A (en) | Communication method and device | |
CN118200396A (en) | Request response method based on Kubernetes cluster | |
JP2018182689A (en) | Network monitoring system, network monitoring method, alarm relay device, and alarm relay program | |
JP2020120239A (en) | Monitoring device, communication system, monitoring method, and communication method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20121023 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20121217 |
|
TRDD | Decision of grant or rejection written | ||
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20130115 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20130118 |
|
R150 | Certificate of patent or registration of utility model |
Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20160125 Year of fee payment: 3 |
|
LAPS | Cancellation because of no payment of annual fees |