JP2008071197A - Device information acquisition method for acquiring information from device by snmp message, and information processor - Google Patents

Device information acquisition method for acquiring information from device by snmp message, and information processor Download PDF

Info

Publication number
JP2008071197A
JP2008071197A JP2006250047A JP2006250047A JP2008071197A JP 2008071197 A JP2008071197 A JP 2008071197A JP 2006250047 A JP2006250047 A JP 2006250047A JP 2006250047 A JP2006250047 A JP 2006250047A JP 2008071197 A JP2008071197 A JP 2008071197A
Authority
JP
Japan
Prior art keywords
information
message
acquisition
snmp
acquired
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.)
Granted
Application number
JP2006250047A
Other languages
Japanese (ja)
Other versions
JP4942435B2 (en
Inventor
Daiki Hoshi
大樹 星
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ricoh Co Ltd
Original Assignee
Ricoh Co Ltd
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 Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP2006250047A priority Critical patent/JP4942435B2/en
Publication of JP2008071197A publication Critical patent/JP2008071197A/en
Application granted granted Critical
Publication of JP4942435B2 publication Critical patent/JP4942435B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Computer And Data Communications (AREA)
  • Telephonic Communication Services (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a device information acquisition method and an information processor, capable of performing efficient acquisition of information from a device. <P>SOLUTION: The device information acquisition method for acquiring information from a device by SNMP message comprises a setting step S802 for setting, when all of a plurality of values contained as a table in the information is acquired by use of Get Bulk Request, an OID showing a range of information and the number of pieces of information to be acquired at once from the device to the Get Bulk Request; a message transmitting step S803 for transmitting a first SNMP message requesting acquisition of values of information by a predetermined number of pieces from the OID to the device; and a message receiving step S804 for receiving a second SNMP message from the device as an answer to the first SNMP message transmitted in the message transmitting step S803. <P>COPYRIGHT: (C)2008,JPO&INPIT

Description

本発明は、SNMPメッセージにより機器から情報を取得する機器情報取得方法及び情報処理装置に関する。   The present invention relates to a device information acquisition method and an information processing apparatus that acquire information from a device using an SNMP message.

インターネット及びイントラネット等のネットワークシステムの普及に伴って、近年、ネットワーク管理の重要性が認知されてきている。SNMP(Simple Network Manegement Protocol)は、ネットワークに接続された機器をネットワーク経由で監視することによってネットワークシステムを管理するプロトコルであって、質の高いネットワークシステム管理を低コストで実現する監視ツールとして広く普及している。   With the spread of network systems such as the Internet and Intranet, the importance of network management has recently been recognized. SNMP (Simple Network Management Protocol) is a protocol for managing network systems by monitoring devices connected to the network via the network, and is widely used as a monitoring tool for realizing high-quality network system management at low cost. is doing.

図1は、SNMPによって管理されるネットワークシステムの一例を示す。図1のネットワークシステム10は、ローカルエリアネットワーク(LAN)等のネットワーク140を介して相互に接続された1台の端末装置100と、3台の機器110、120及び130とを有する。   FIG. 1 shows an example of a network system managed by SNMP. The network system 10 in FIG. 1 includes one terminal device 100 and three devices 110, 120, and 130 connected to each other via a network 140 such as a local area network (LAN).

端末装置100は、機器110、120及び130の夫々をネットワーク140経由で監視するパーソナルコンピュータ(PC)等の情報処理装置であって、一般的にマネージャと呼ばれるソフトウェア102を組み込まれている。   The terminal device 100 is an information processing device such as a personal computer (PC) that monitors each of the devices 110, 120, and 130 via the network 140, and generally includes software 102 called a manager.

機器110、120及び130は、端末装置100により管理されるネットワーク140上で監視対象となるネットワークプリンタ、インテリジェントハブ及びルータ等のデジタル機器であって、夫々、一般的にエージェントと呼ばれるインターフェース112、122及び132を組み込まれている。また、機器110、120及び130の夫々には、その機器の情報を保持する管理情報領域114、124及び134が設けられている。この管理情報領域は、一般にMIB(Management Information Base)と呼ばれる。   The devices 110, 120, and 130 are digital devices such as network printers, intelligent hubs, and routers to be monitored on the network 140 managed by the terminal device 100, and interfaces 112, 122 that are generally called agents, respectively. And 132 are incorporated. Each of the devices 110, 120, and 130 is provided with management information areas 114, 124, and 134 that hold information about the devices. This management information area is generally called a MIB (Management Information Base).

夫々の機器のエージェント112、122及び132は、端末装置100に組み込まれたマネージャ102の要求に応じて、MIB114、124及び134を参照して機器の情報を取得する。マネージャ102は、エージェント112、122及び132が取得したMIB114、124及び134の内容から、現在の機器の状態を判断する。   The agents 112, 122, and 132 of each device acquire device information with reference to the MIBs 114, 124, and 134 in response to a request from the manager 102 incorporated in the terminal device 100. The manager 102 determines the current device status from the contents of the MIBs 114, 124 and 134 acquired by the agents 112, 122 and 132.

図2は、MIBの構造を示す概念図である。MIBには、オブジェクトと呼ばれる情報が格納されている。オブジェクトは、情報の要素によって木構造で管理され、夫々、オブジェクトID(OID)と呼ばれる識別子を割り当てられている。OIDは、木構造の階層ごとに割り当てられた枝番により表される。例えば、オブジェクト210のOIDは、「1.3.6.1.2.1.1」のように表される。マネージャは、エージェントに対して、OIDを指定して機器の情報の取得及び設定変更を要求する。   FIG. 2 is a conceptual diagram showing the structure of the MIB. The MIB stores information called an object. Objects are managed in a tree structure according to information elements, and each is assigned an identifier called an object ID (OID). The OID is represented by a branch number assigned to each hierarchy of the tree structure. For example, the OID of the object 210 is represented as “1.3.3.6.1.2.1.1”. The manager requests the agent to acquire the device information and change the setting by specifying the OID.

また、SNMPでは、監視対象である機器の情報の取得及び設定変更を行うためにSNMPメッセージを用いる。SNMPメッセージは、バージョン情報、コミュニティ名及びPDU(Protcol Data Units)を有する。PDUは、SNMPのコマンドに相当するデータであり、最も一般的であるSNMPv1(バージョン1)では以下の種類がある。
(1)マネージャからエージェントへ送信するSNMPメッセージのPDU
(1−1)GetRequest:指定したOIDのオブジェクトの情報取得を要求
(1−2)GetNextRequest:指定したOIDの階層的に次のオブジェクトの情報取得を要求
(1−3)SetRequest:指定したOIDのオブジェクトの情報変更を要求
(2)エージェントからマネージャへ送信するSNMPメッセージのPDU
(2−1)GetResponse:マネージャからの要求に対する応答
(2−2)Trap:自発的に機器の状態を通知
これらのPDUによって、SNMPは、情報の要求及びその応答、情報設定要求及びその応答、並びに、機器の状態変化の通知という3つの動作モードを有する。また、SNMPv2(バージョン2)及びv3(バージョン3)のような他のバージョンでは、GetNextRequestに加え、GetBulkRequestが追加されている。これにより、マネージャは、複数の連続するオブジェクトの情報を所定の数だけ取得することができる。この場合に、エージェント側で一度に送信可能なデータサイズの上限を超えているときは、送信可能なデータサイズ内に収まる情報のみが正常に取得される。
In SNMP, an SNMP message is used to acquire information and change settings of a device to be monitored. The SNMP message has version information, community name, and PDU (Protocol Data Units). The PDU is data corresponding to an SNMP command, and the most common SNMPv1 (version 1) has the following types.
(1) PDU of SNMP message transmitted from manager to agent
(1-1) GetRequest: Request information acquisition of the object of the specified OID (1-2) GetNextRequest: Request information acquisition of the next object hierarchically of the specified OID (1-3) SetRequest: Specify the specified OID Request to change object information (2) PDU of SNMP message sent from agent to manager
(2-1) GetResponse: Response to the request from the manager (2-2) Trap: Voluntary notification of the state of the device With these PDUs, SNMP can request information and its response, information setting request and its response, In addition, there are three operation modes of notification of device state change. Further, in other versions such as SNMPv2 (version 2) and v3 (version 3), GetBulkRequest is added in addition to GetNextRequest. Thereby, the manager can acquire a predetermined number of pieces of information on a plurality of continuous objects. In this case, when the upper limit of the data size that can be transmitted at a time on the agent side is exceeded, only information that fits within the transmittable data size is normally acquired.

図3は、SNMPメッセージのデータ構造の一例を示す。図3に示されるように、SNMPは、基本的に、UDP(User Datagram Protcol)により実現される。SNMPメッセージ301は、IPヘッダ及びUDPヘッダの後に続き、バージョン情報、コミュニティ名及びPDUの夫々が格納される領域302、303及び304を有する。コミュニティ名は、マネージャとエージェントとの間のパスワードとして利用され、エージェントは、そのエージェントが属するコミュニティの名前とマネージャから送信されたSNMPメッセージに含まれるコミュニティ名とを比較して、一致する場合にのみマネージャからの要求を受け付ける。   FIG. 3 shows an example of the data structure of the SNMP message. As shown in FIG. 3, the SNMP is basically realized by UDP (User Datagram Protocol). The SNMP message 301 has an area 302, 303, and 304 for storing version information, community name, and PDU, respectively, following the IP header and the UDP header. The community name is used as a password between the manager and the agent, and the agent compares the name of the community to which the agent belongs and the community name contained in the SNMP message sent from the manager, and only if they match. Accepts requests from managers.

PDUには、上述したように、GetRequest、GetNextRequest若しくはGetBulkRequest、SetRequest、GetResponse及びTrapがあるが、これらのうちTrapのみがその用途から異なるデータ構造を有する。図3では、Trap以外のPDUデータ構造を示す。   As described above, PDU includes GetRequest, GetNextRequest, GetBulkRequest, SetRequest, GetResponse, and Trap, but only Trap has a data structure different from its use. FIG. 3 shows a PDU data structure other than Trap.

PDU領域304は、PDUタイプ、リクエストID、エラーステータス、エラーインデックス及び変数バインディングリストの夫々が格納される領域305、306、307、308及び309を有する。PDUタイプ領域305には、上述したPDUの種類に応じた値が格納される。リクエストID領域306には、マネージャからの要求とエージェントからの応答とを関連付けるためリクエストIDを示す値が格納される。エラーステータス領域307は、マネージャが要求したSNMPメッセージの中にエラーがあった場合に、エージェントからマネージャへ通知されるエラーステータスを示す値が格納される。エラーステータスには、以下の種類がある。
(1)noError:エラーなし
(2)tooBig:PDUのサイズが制限を超える場合
(3)noSuchName:要求されたオブジェクトが存在しない場合
(4)badValue:SetRequestに矛盾する値が含まれる場合
(5)readOnly:読み出ししかできないオブジェクトに対してSetRequestが要求された場合
(6)genError:上記以外のエラー
なお、マネージャからエージェントへの要求時のPDUでは、エラーステータスはnoErrorを設定される。エラーインデックス領域308には、エラーが発生した場合に、PDUに含まれるどのデータにエラーが発生したのかを表すエラーインデックスを示す値が格納される。
The PDU area 304 includes areas 305, 306, 307, 308, and 309 in which PDU type, request ID, error status, error index, and variable binding list are stored. The PDU type area 305 stores a value corresponding to the type of PDU described above. The request ID area 306 stores a value indicating a request ID for associating a request from the manager with a response from the agent. The error status area 307 stores a value indicating an error status notified from the agent to the manager when there is an error in the SNMP message requested by the manager. There are the following types of error status.
(1) noError: no error (2) tooBig: when the size of the PDU exceeds the limit (3) noSuchName: when the requested object does not exist (4) badValue: when a conflicting value is included in SetRequest (5) readOnly: When SetRequest is requested for an object that can only be read (6) genError: error other than the above In the PDU at the time of the request from the manager to the agent, the error status is set to noError. The error index area 308 stores a value indicating an error index indicating which data included in the PDU has an error when an error occurs.

変数バインディングリスト領域309には、1以上のオブジェクトの情報が格納されており、夫々の情報は、OID310及びその値312から成る。OID310は、夫々のオブジェクトに割り当てられた実際のOIDの後にインスタンス識別子を付け加えた値で表される。インスタンス識別子は、オブジェクトが単一の値しか有さない場合には「0」を設定される。一方、オブジェクトがテーブル形式で複数の値を有する場合には、テーブル内の夫々の値に対して「1」以上の連続であるとは限られない数字により表されるインスタンス識別子が付与される。この場合に、従来、PDUとしてGetNextRequestを用い、これを繰り返し呼び出すことにより、テーブル内の全ての情報を取得することが可能である。   Information of one or more objects is stored in the variable binding list area 309, and each piece of information includes an OID 310 and its value 312. The OID 310 is represented by a value obtained by adding an instance identifier to the actual OID assigned to each object. The instance identifier is set to “0” when the object has only a single value. On the other hand, when an object has a plurality of values in a table format, an instance identifier represented by a number that is not necessarily continuous with “1” or more is assigned to each value in the table. In this case, conventionally, it is possible to acquire all the information in the table by using GetNextRequest as a PDU and repeatedly calling it.

図4は、テーブルとして複数の情報を有するオブジェクトの全ての値を取得する場合のシーケンス図である。情報取得の対象となるオブジェクトのOIDは「1.2.3.4」であり、そのテーブルには1番目から8番目までの8つの値が収められているとする。また、このオブジェクトが格納されている変数バインディングリスト領域において次に格納されているオブジェクトのOIDは、「1.2.3.5」であるとする。   FIG. 4 is a sequence diagram in the case of obtaining all values of an object having a plurality of information as a table. It is assumed that the OID of the object from which information is acquired is “1.2.3.4”, and the table contains eight values from the first to the eighth. Further, it is assumed that the OID of the next object stored in the variable binding list area in which this object is stored is “1.2.3.5”.

最初に、ステップS401で、マネージャ102は、エージェント112に対して、OIDが「1.2.3.4」であるオブジェクトの階層的に次のオブジェクトの情報を取得するよう要求するためにGetNextRequestを送る。これを受けて、ステップS402で、エージェント112は、GetNextRequestにより指定されたOID「1.2.3.4」の辞書順に見て次のOID「1.2.3.4.1」が指定するオブジェクトの情報、即ち、OIDが「1.2.3.4」であるオブジェクトがテーブル形式で有する1番目の値をMIB114(図1参照。)から取得して、そのOID「1.2.3.4.1」とともにGetResponseによりマネージャ102へ通知する。   First, in step S401, the manager 102 requests GetNextRequest to request the agent 112 to acquire information on the next object in the hierarchy of the object whose OID is “1.2.3.4”. send. In response to this, in step S402, the agent 112 designates the next OID “1.2.3.4.1” in the dictionary order of the OID “1.2.3.4” designated by GetNextRequest. The object information, that is, the first value that the object whose OID is “1.2.3.4” has in the table format is acquired from the MIB 114 (see FIG. 1), and the OID “1.2.3” is obtained. ... 4.1 ”is notified to the manager 102 by GetResponse.

マネージャ102とエージェント112との間でこのようなやり取りが全部で9回繰り替えされると、9回目で、即ち、ステップS418で、マネージャ102は、OIDが「1.2.3.5」であるオブジェクトの情報を取得する。これにより、マネージャ102は、OIDの先頭が「1.2.3.4」ではなくなったので、OIDが「1.2.3.4」であるオブジェクトの全ての値を取得したと判断し、情報要求動作を完了する。   If such exchanges between the manager 102 and the agent 112 are repeated nine times in total, the manager 102 has the OID of “1.2.3.5” at the ninth time, that is, in step S418. Get object information. As a result, the manager 102 determines that all the values of the object whose OID is “1.2.3.4” have been acquired because the beginning of the OID is no longer “1.2.3.4”. Complete the information request operation.

次に、図5は、マネージャが1つのSNMPメッセージにより複数のオブジェクトの情報の取得要求を行った場合のシーケンス図である。取得要求は、不連続なOID「1.1.5.0」、「1.1.20.0」、「1.1.2.0」、「1.3.8.0」、「1.1.13.0」、「1.8.12.0」、「1.1.9.0」、「1.1.29.0」及び「1.9.1.0」を夫々有する9個のオブジェクトの情報に対してなされるとする。   Next, FIG. 5 is a sequence diagram when the manager makes an acquisition request for information on a plurality of objects using one SNMP message. The acquisition request includes discontinuous OIDs “1.1.5.0”, “1.1.20.0”, “1.1.2.0”, “1.3.8.0”, “1 1.13.0 "," 1.8.12.0 "," 1.1.9.0 "," 1.1.29.0 "and" 1.9.1.0 "respectively. Suppose that it is made with respect to information of nine objects.

最初に、ステップS501で、マネージャ102は、エージェント112に対して、OIDが「1.1.5.0」であるオブジェクトの情報を取得するよう要求するためにGetRequestを送る。これを受けて、ステップS502で、エージェント112は、GetRequestにより指定されたOID「1.1.5.0」を割り当てられたオブジェクトの情報をMIB114(図1参照。)から取得して、そのOID「1.1.5.0」とともにGetResponseによりマネージャ102へ通知する。   First, in step S <b> 501, the manager 102 sends a GetRequest to the agent 112 to request acquisition of information on an object whose OID is “1.1.5.0”. In response to this, in step S502, the agent 112 obtains the information of the object assigned the OID “1.1.5.0” designated by GetRequest from the MIB 114 (see FIG. 1), and the OID. The manager 102 is notified by GetResponse together with “1.1.5.0”.

以降、同様に、マネージャ102は、情報を取得したいオブジェクトのOIDを指定してGetRequestをエージェント112に送り、一方、これを受けて、エージェント112は、GetRequestにより指定されたOIDを割り当てられたオブジェクトの情報をGetResponseとしてマネージャ102へ返す。マネージャ102が全ての情報を取得するために、マネージャ102とエージェント112との間でこのようなやり取りが全部で9回繰り替えされる。   Thereafter, similarly, the manager 102 designates the OID of the object whose information is to be acquired and sends a GetRequest to the agent 112. On the other hand, the agent 112 receives the OID designated by the GetRequest. Information is returned to the manager 102 as a GetResponse. In order for the manager 102 to acquire all information, such exchanges between the manager 102 and the agent 112 are repeated nine times in total.

図3を再び参照すると、明らかであるように、SNMPメッセージ301は、複数のオブジェクトに対する要求を1つのメッセージとして格納することができる。即ち、1つのSNMPメッセージにより、複数のオブジェクトに対して情報の取得及び設定変更を要求することができる。従って、図5に示されるように複数のオブジェクトの夫々に対して情報の取得を要求するのではなく、一度にまとめて複数のオブジェクトに対して情報の取得を要求することが可能である。ただし、1度に無制限に大量のオブジェクトに対して情報の取得を要求した場合、その応答時に1度に送信可能なデータサイズの制限を超えてしまい、その結果エラーが発生するという問題があった。また、要求されたオブジェクトの一部がエージェント側で処理できない状態にある場合、他のオブジェクトに対する処理も実行されず、マネージャ側からのデータ取得及び設定に著しい障害となるという問題があった。   Referring back to FIG. 3, as is apparent, the SNMP message 301 can store requests for multiple objects as a single message. That is, information acquisition and setting change can be requested for a plurality of objects by one SNMP message. Therefore, as shown in FIG. 5, it is possible to request acquisition of information from a plurality of objects at once, instead of requesting acquisition of information from each of a plurality of objects. However, there is a problem that when requesting information acquisition for a large number of objects at once, it exceeds the limit on the data size that can be transmitted at one time in response, resulting in an error. . In addition, when a part of the requested object cannot be processed on the agent side, processing for other objects is not executed, and there is a problem that data acquisition and setting from the manager side becomes a significant obstacle.

これらの問題を解決するために、特開平11−296457号公報(特許文献1)は、SNMPメッセージがエラーである場合に、SNMPメッセージに複数のオブジェクトが含まれているかどうかを判断するオブジェクト解析ステップと、複数と判断された場合、単一のオブジェクトに分割する単一オブジェクト分割ステップと、単一のオブジェクトごとに、SNMPメッセージを生成し、送信するSNMPメッセージ分割送信ステップとを備えることにより、最低限処理可能なオブジェクトに対しては正常にデータの取得及び設定を可能とする方法及び装置を開示する。
特開平11−296457号公報
In order to solve these problems, Japanese Patent Application Laid-Open No. 11-296457 (Patent Document 1) discloses an object analysis step for determining whether or not a plurality of objects are included in an SNMP message when the SNMP message is an error. And a single object dividing step for dividing the object into a single object, and an SNMP message dividing and transmitting step for generating and transmitting an SNMP message for each single object. Disclosed is a method and apparatus that can normally acquire and set data for an object that can be limitedly processed.
JP 11-296457 A

しかし、特許文献1では、SNMPメッセージがエラーである場合に1パケットで送信するオブジェクトを単一オブジェクトに分割するので、データ取得開始から取得終了までに要する時間が長くなるという問題がある。   However, in Patent Document 1, when an SNMP message is an error, an object to be transmitted in one packet is divided into a single object, so there is a problem that the time required from the start of data acquisition to the end of acquisition becomes long.

また、SNMPv2及びSNMPv3で用いられるGetBulkRequestは、図4で示されるように、テーブルとして複数の値を有するオブジェクトに対してその値の全てを連続して取得する場合には利用されないという問題がある。   Further, as shown in FIG. 4, GetBulkRequest used in SNMPv2 and SNMPv3 has a problem that it is not used when all of the values of an object having a plurality of values are acquired continuously as a table.

本発明は、上記問題を鑑みて、機器からの効率的な情報取得を可能とする機器情報取得方法及び情報処理装置を提供することを目的とする。   In view of the above problems, an object of the present invention is to provide a device information acquisition method and an information processing apparatus that enable efficient information acquisition from a device.

上記問題を解決するために、本発明の機器情報取得方法は、SNMPメッセージにより機器から情報を取得する機器情報取得方法であって、前記情報にテーブルとして含まれる複数の値の全てをGetBulkRequestを用いて取得する場合に、前記情報の範囲を示すOIDと、前記機器から1度に取得する情報の個数とを前記GetBulkRequestに設定する設定ステップと、前記OIDから前記個数ずつ前記情報の値を取得するよう要求する第1のSNMPメッセージを前記機器に対して送信するメッセージ送信ステップと、該メッセージ送信ステップにおいて送信された第1のSNMPメッセージの応答としての第2のSNMPメッセージを前記機器から受信するメッセージ受信ステップとを有することができる。   In order to solve the above-described problem, the device information acquisition method of the present invention is a device information acquisition method for acquiring information from a device by an SNMP message, and uses GetBulkRequest for all of a plurality of values included in the information as a table. A setting step for setting the GetBulkRequest to the OID indicating the range of the information and the number of pieces of information to be obtained at a time from the device, and obtaining the value of the information by the number from the OID. A message transmission step of transmitting a first SNMP message requesting to the device to the device, and a message of receiving a second SNMP message from the device as a response to the first SNMP message transmitted in the message transmission step. Receiving step.

これにより、SNMPv2及びSNMPv3で用いられるGetBulkRequestは、テーブルとして複数の値を有するオブジェクトに対してその値の全てを連続して取得する場合にも利用可能となり、機器からの効率的な情報取得を可能とする機器情報取得方法を提供することができる。   As a result, GetBulkRequest used in SNMPv2 and SNMPv3 can be used even when acquiring all of the values of a table having multiple values in succession, enabling efficient information acquisition from the device. A device information acquisition method can be provided.

望ましくは、本発明の機器情報取得方法は、前記メッセージ受信ステップにおいて受信された第2のSNMPメッセージの情報が、前記第1のSNMPメッセージの情報の範囲を示す前記OIDの範囲内か否かを判定する判定ステップを更に有し、該判定ステップにおいて、前記第2のSNMPメッセージの情報に前記OIDの範囲内にない情報が存在する場合に、前記機器からの情報の取得が完了したと判定し、前記第2のSNMPメッセージの情報のうち前記OIDの範囲内にある情報のみを取り出すことができる。   Preferably, in the device information acquisition method of the present invention, whether the information of the second SNMP message received in the message receiving step is within the range of the OID indicating the range of the information of the first SNMP message is determined. A determination step for determining, and in the determination step, when information that is not within the range of the OID exists in the information of the second SNMP message, it is determined that acquisition of the information from the device is completed. , Only the information within the range of the OID can be extracted from the information of the second SNMP message.

これにより、必要とされる適切な情報のみを取得することが可能となる。   As a result, it is possible to acquire only necessary appropriate information.

また、上記目的を達成するために、本発明の機器情報取得方法は、SNMPメッセージにより機器から情報を取得する機器情報取得方法であって、複数の情報をGetRequest又はGetNextRequest若しくはGetBulkRequestを用いて取得する場合に、前記機器から1度に取得する情報の個数を前記GetRequest又はGetNextRequest若しくはGetBulkRequestに設定する設定ステップと、該設定ステップにおいて設定された個数を前記複数の情報のうち未取得である情報の個数と比較する比較ステップと、該比較ステップにおいて、前記個数が前記未取得である情報の個数より大きい場合に、前記未取得である情報の全てを取得するよう要求し、前記個数が前記未取得である情報の個数より小さい場合に、前記未取得である情報のうち前記個数だけ取得するよう要求する第1のSNMPメッセージを送信するメッセージ送信ステップと、該メッセージ送信ステップにおいて送信された第1のSNMPメッセージの応答としての第2のSNMPメッセージを前記機器から受信するメッセージ受信ステップとを有することができる。   In order to achieve the above object, the device information acquisition method of the present invention is a device information acquisition method for acquiring information from a device by using an SNMP message, and acquires a plurality of pieces of information using GetRequest, GetNextRequest, or GetBulkRequest. A setting step for setting the number of pieces of information acquired from the device at a time in the GetRequest, GetNextRequest, or GetBulkRequest, and the number of pieces of information that have not been acquired among the plurality of pieces of information in the setting step. In the comparison step, and in the comparison step, when the number is larger than the number of the unacquired information, a request is made to acquire all the unacquired information, and the number is not acquired. A message sending step for sending a first SNMP message requesting to obtain the number of pieces of unacquired information, and the first SNMP sent in the message sending step. Receiving a second SNMP message as a response to the message from the device.

従来、GetRequest又はGetNextRequest若しくはGetBulkRequestを用いて一度にまとめて複数のオブジェクトに対して情報の取得を要求することが可能であることが知られるが、このように機器から取得する情報の個数を設定することにより、機器からの応答時にデータサイズの制限を超えることに起因するエラーの発生確率を低減し、且つ、情報の取得開始から終了までに要する時間をも低減することが可能であって、機器からの効率的な情報取得を可能とする機器情報取得方法を提供することができる。   Conventionally, it is known that it is possible to request acquisition of information for a plurality of objects at once using GetRequest, GetNextRequest, or GetBulkRequest, but in this way the number of information acquired from the device is set. Therefore, it is possible to reduce the probability of occurrence of an error due to exceeding the data size limit at the time of response from the device, and to reduce the time required from the start to the end of information acquisition, It is possible to provide a device information acquisition method that enables efficient information acquisition from the device.

望ましくは、本発明の機器情報取得方法は、前記メッセージ受信ステップにおいて受信された第2のSNMPメッセージがエラーである場合に、前記機器から情報を分割して取得するよう要求する第3のSNMPメッセージを前記機器に対して再送するメッセージ再送ステップを更に有することができる。   Preferably, in the device information acquisition method of the present invention, when the second SNMP message received in the message receiving step is an error, a third SNMP message that requests to divide and acquire information from the device. A message re-sending step for re-sending the message to the device.

従来、複数の情報を取得する際にエラーが発生した場合には、1パケットで送信する情報を単一の情報に分割していたが、このように、単一の情報に限定せずに情報を複数に分割して要求し、1度に送信するデータサイズを低減することにより、低減されたデータサイズが送信可能な上限を超えていない限り正常に情報を取得することが可能であり、データ取得開始から取得終了までに要する時間が長くなるという問題を回避することができる。   Conventionally, when an error occurs when acquiring a plurality of pieces of information, the information transmitted in one packet is divided into a single piece of information. Thus, the information is not limited to a single piece of information. By dividing the request into multiple parts and reducing the data size to be transmitted at one time, it is possible to obtain information normally as long as the reduced data size does not exceed the upper limit that can be transmitted. The problem that the time required from the acquisition start to the acquisition end becomes long can be avoided.

更に望ましく、前記メッセージ再送ステップにおいて再送される第3のSNMPメッセージは、前記機器から情報を1つずつ分割して取得するよう要求することができる。   More preferably, the third SNMP message retransmitted in the message re-sending step can request that the information be obtained by dividing the information one by one from the device.

複数の情報を取得する際にエラーが発生した場合に、このように単一の情報を取得する方法に切り替えることにより、例えば、機器が複数の情報を取得するよう構成されていない等の何らかの理由によって1度に複数の情報を取得できない環境下であっても、正常に情報を取得することができる。   If an error occurs when acquiring multiple pieces of information, for example, the device is not configured to acquire multiple pieces of information, for example, by switching to a method for acquiring single pieces of information. Thus, even in an environment where a plurality of information cannot be acquired at a time, the information can be normally acquired.

望ましくは、本発明の機器情報取得方法は、前記メッセージ受信ステップにおいて受信された第2のSNMPメッセージがエラーである場合に、前記設定ステップにおいて設定された個数を減じて、前記機器に対して情報の取得を要求する第3のSNMPメッセージを前記機器に対して再送するメッセージ再送ステップを更に有することができる。   Preferably, in the device information acquisition method of the present invention, when the second SNMP message received in the message receiving step is an error, the number set in the setting step is subtracted to obtain information on the device. A message re-sending step of re-sending the third SNMP message requesting the acquisition to the device.

1度に取得する情報の個数が大きすぎてエラーが発生した場合に、このように、その個数を減じることにより、1度に取得することができる個数だけ情報を機器から正常に取得することができる。   When an error occurs because the number of pieces of information acquired at one time is too large, the number of pieces of information that can be acquired at one time can be normally acquired from the device by reducing the number of pieces of information. it can.

望ましくは、本発明の機器情報取得方法は、前記メッセージ送信ステップにおいて、GetBulkRequestを用いて情報を取得するよう要求する第1のSNMPメッセージを前記機器に対して送信した場合に、前記メッセージ受信ステップにおいて受信された第2のSNMPメッセージに前記メッセージ送信ステップにおいて取得を要求した情報の一部しか含まれないときは、前記メッセージ送信ステップにおいて取得を要求した残りの情報についてのみ再度取得を要求する第3のメッセージを送信する再取得メッセージ送信ステップを有することができる。   Preferably, the device information acquisition method of the present invention transmits a first SNMP message requesting to acquire information using GetBulkRequest to the device in the message transmission step. When the received second SNMP message includes only a part of the information requested for acquisition in the message transmission step, only the remaining information requested for acquisition in the message transmission step is requested for acquisition again. A reacquisition message sending step for sending the message.

従来、GetBulkRequestを用いた場合に、一度に送信可能なデータサイズの上限を超えているときは、送信可能なデータサイズ内に収まる情報のみが正常に取得されることが知られるが、このように、更に、正常に取得されなかったものについてのみ再取得を要求することにより無駄な処理を省くことができ、機器からの情報取得をより効率的とすることができる。   Conventionally, when GetBulkRequest is used, if the upper limit of the data size that can be transmitted at once is exceeded, it is known that only information that fits within the transmittable data size is normally acquired. Furthermore, by requesting re-acquisition only for those that have not been normally acquired, useless processing can be omitted, and information acquisition from the device can be made more efficient.

更に望ましくは、前記第3のメッセージは、前記設定ステップにおいて設定された個数を減じて、前記残りの情報について前記機器に対して再度取得を要求することができる。   More preferably, the number of the third message set in the setting step can be reduced, and the device can be requested to obtain the remaining information again.

1度に取得する情報の個数が大きすぎてエラーが発生した場合に、このように、その個数を減じることにより、次回の情報取得において、より確実に、1度に取得することができる個数だけ情報を機器から正常に取得することができる。   If an error occurs because the number of pieces of information to be acquired at one time is too large, by reducing the number in this way, only the number that can be acquired at a time more reliably in the next information acquisition. Information can be acquired normally from the device.

望ましくは、本発明の機器情報取得方法は、前記メッセージ送信ステップにおいて、GetRequest又はGetNextRequestを用いて情報を取得するよう要求する第1のSNMPメッセージを前記機器に対して送信し、前記メッセージ受信ステップにおいて受信された第2のSNMPメッセージがエラーである場合に、GetBulkRequestを利用可能なSNMPのバージョンに対応する場合には、前記メッセージ送信ステップにおいて取得を要求した情報について前記GetBulkRequestにより再度取得を要求する第3のメッセージを送信する再取得メッセージ送信ステップを有し、前記バージョンに対応しない場合には、前記機器から情報を1つずつ分割して取得する取得するよう要求する第4のSNMPメッセージを前記機器に対して再送するメッセージ再送ステップを有することができる。   Preferably, in the device information acquisition method of the present invention, in the message transmission step, a first SNMP message requesting to acquire information using GetRequest or GetNextRequest is transmitted to the device, and in the message reception step. If the received second SNMP message is an error, and if it corresponds to a version of SNMP that can use GetBulkRequest, the GetBulkRequest requests acquisition again for the information requested for acquisition in the message sending step. And a re-acquisition message transmission step of transmitting a message of 3, and if it does not correspond to the version, a fourth S requesting to acquire and acquire information divided from the device one by one The MP message may have a message retransmission step of retransmitting to the device.

これにより、SNMPのバージョンに対応して最適な処理を行うことが可能となり、無駄な処理を省くことができ、機器からの情報取得をより効率的とすることができる。   This makes it possible to perform optimal processing corresponding to the SNMP version, eliminate unnecessary processing, and make information acquisition from the device more efficient.

また、上記目的を達成するために、本発明の機器情報取得方法により取得要求を送信される機器は、前記取得要求に応じて情報を送信する。   In order to achieve the above object, a device to which an acquisition request is transmitted by the device information acquisition method of the present invention transmits information in response to the acquisition request.

これにより、情報の取得対象となる機器の負荷と、取得を要求する側の装置と機器との間のネットワークの負荷とを低減させることができる。   As a result, it is possible to reduce the load on the device from which information is acquired and the load on the network between the device that requests acquisition and the device.

また、上記目的を達成するために、本発明の情報処理装置は、SNMPメッセージにより機器から情報を取得する情報処理装置であって、前記情報にテーブルとして含まれる複数の値の全てをGetBulkRequestを用いて取得する場合に、前記情報の範囲を示すOIDを前記GetBulkRequestに設定するOID設定手段と、前記機器から1度に取得する情報の個数を前記GetBulkRequestに設定する取得個数設定手段と、前記OIDから前記個数ずつ前記情報の値を取得するよう要求する第1のSNMPメッセージを前記機器に対して送信し、前記第1のSNMPメッセージの応答としての第2のSNMPメッセージを前記機器から受信する送受信手段とを有することができる。   In order to achieve the above object, the information processing apparatus of the present invention is an information processing apparatus that acquires information from a device by an SNMP message, and uses GetBulkRequest for all of a plurality of values included in the information as a table. From the OID setting means for setting the OID indicating the range of the information in the GetBulkRequest, the acquisition number setting means for setting the number of information to be acquired from the device at one time, and the OID. Transmission / reception means for transmitting a first SNMP message requesting to acquire the value of the information by the number to the device and receiving a second SNMP message as a response to the first SNMP message from the device Can have.

これにより、SNMPv2及びSNMPv3で用いられるGetBulkRequestは、テーブルとして複数の値を有するオブジェクトに対してその値の全てを連続して取得する場合にも利用可能となり、機器からの効率的な情報取得を可能とする情報処理装置を提供することができる。   As a result, GetBulkRequest used in SNMPv2 and SNMPv3 can be used even when acquiring all of the values of a table having multiple values in succession, enabling efficient information acquisition from the device. An information processing apparatus can be provided.

また、上記目的を達成するために、本発明の情報処理装置は、SNMPメッセージにより機器から情報を取得する情報処理装置であって、複数の情報をGetRequest又はGetNextRequest若しくはGetBulkRequestを用いて取得する場合に、前記機器から取得する予定の未取得情報をリスト化する未取得リストと、前記機器から1度に取得する情報の個数を前記GetRequest又はGetNextRequest若しくはGetBulkRequestに設定し、前記個数を前記未取得リストにリスト化された未取得情報の個数と比較する取得個数設定手段と、該取得個数設定手段により前記個数が前記未取得情報の個数より大きいと決定される場合に、前記未取得情報の全てを取得するよう要求し、前記取得個数設定手段により前記個数が前記未取得情報の個数より小さいと決定される場合に、前記未取得情報のうち前記個数だけ取得するよう要求する第1のSNMPメッセージを送信し、該第1のSNMPメッセージの応答としての第2のSNMPメッセージを前記機器から受信する送受信手段とを有することができる。   In order to achieve the above object, the information processing apparatus of the present invention is an information processing apparatus that acquires information from a device using an SNMP message, and acquires a plurality of pieces of information using GetRequest, GetNextRequest, or GetBulkRequest. The unacquired list that lists the unacquired information scheduled to be acquired from the device, and the number of information to be acquired from the device at a time are set in the GetRequest, GetNextRequest, or GetBulkRequest, and the number is set in the unacquired list. Obtained number setting means for comparing with the number of unacquired information listed, and when the obtained number setting means determines that the number is larger than the number of unacquired information, obtains all of the unacquired information Request to do When the acquired number setting means determines that the number is smaller than the number of the unacquired information, a first SNMP message is transmitted to request acquisition of the number of the unacquired information, and the first Transmitting / receiving means for receiving a second SNMP message as a response to the SNMP message from the device.

従来、GetRequest又はGetNextRequest若しくはGetBulkRequestを用いて一度にまとめて複数のオブジェクトに対して情報の取得を要求することが可能であることが知られるが、このように、機器から取得する情報の個数を未取得情報の個数に適応するよう設定することにより、機器からの応答時にデータサイズの制限を超えることに起因するエラーの発生確率を低減し、機器からの効率的な情報取得を可能とする情報処理装置を提供することができる。   Conventionally, it has been known that it is possible to request acquisition of information for a plurality of objects all at once using GetRequest, GetNextRequest, or GetBulkRequest. Information processing that enables efficient information acquisition from devices by reducing the probability of error caused by exceeding the data size limit when responding from devices by setting to adapt to the number of acquired information An apparatus can be provided.

本発明により、機器からの効率的な情報取得を可能とする機器情報取得方法及び情報処理装置を提供することが可能となる。   According to the present invention, it is possible to provide a device information acquisition method and an information processing apparatus that enable efficient information acquisition from a device.

以下、本発明の実施形態について添付の図面を参照して説明する。   Hereinafter, embodiments of the present invention will be described with reference to the accompanying drawings.

図6は、本実施形態における情報処理装置のハードウェア構成の一例を表す図である。   FIG. 6 is a diagram illustrating an example of a hardware configuration of the information processing apparatus according to the present embodiment.

図6の情報処理装置600は、本発明によるネットワーク管理プログラムを実行可能な情報処理装置であって、バス66によって相互に接続されたドライブ装置61と、補助記憶装置62と、メモリ装置63と、演算処理装置64と、インターフェース装置65とを有する。情報処理装置600により実行されるプログラムは、CD−ROM等の記録媒体67によって提供される。   An information processing apparatus 600 in FIG. 6 is an information processing apparatus capable of executing a network management program according to the present invention, and includes a drive device 61, an auxiliary storage device 62, a memory device 63, which are interconnected by a bus 66, An arithmetic processing device 64 and an interface device 65 are included. A program executed by the information processing apparatus 600 is provided by a recording medium 67 such as a CD-ROM.

ドライブ装置61は、記録媒体67を読み取るための装置である。プログラムを記録した記録媒体67がドライブ装置61にセットされると、プログラムが記録媒体67からドライブ装置61を介して補助記憶装置62にインストールされる。補助記憶装置62は、インストールされたプログラムを格納すると共に、必要なファイル及びデータ等を格納する装置である。メモリ装置63は、プログラムの起動指示があった場合に、補助記憶装置62からプログラムを読み出して格納する装置である。演算処理装置64は、メモリ装置63に格納されたプログラムに従って、情報処理装置600を作動させる装置である。インターフェース装置65は、情報処理装置600を外部のネットワーク又は公衆回線へ接続するための装置である。   The drive device 61 is a device for reading the recording medium 67. When the recording medium 67 recording the program is set in the drive device 61, the program is installed from the recording medium 67 to the auxiliary storage device 62 via the drive device 61. The auxiliary storage device 62 is a device that stores an installed program and also stores necessary files and data. The memory device 63 is a device that reads a program from the auxiliary storage device 62 and stores it when there is an instruction to start the program. The arithmetic processing device 64 is a device that operates the information processing device 600 in accordance with a program stored in the memory device 63. The interface device 65 is a device for connecting the information processing device 600 to an external network or a public line.

情報処理装置600は、記録媒体67に格納されたプログラムを実行することにより、図1に示したようなネットワークシステムに置かれ、SNMPエージェントが組み込まれた機器をネットワーク経由で監視する。   The information processing apparatus 600 executes a program stored in the recording medium 67 to monitor a device installed in the network system as shown in FIG. 1 and incorporating the SNMP agent via the network.

図7は、図6の情報処理装置において本発明に係る機能構成の一例を表す図である。   FIG. 7 is a diagram illustrating an example of a functional configuration according to the present invention in the information processing apparatus of FIG.

図7において、情報処理装置は、SNMPマネージャ602と、入力手段603とを有する。   In FIG. 7, the information processing apparatus includes an SNMP manager 602 and input means 603.

SNMPマネージャ602は、SNMPエージェントが組み込まれた機器をネットワーク経由で監視するためのソフトウェアモジュールであって、エージェントと通信してSNMPメッセージを送受信する送受信手段604と、送受信手段604がエージェントと通信することにより得られたオブジェクトの情報を格納する取得情報データベース(DB)606と、エージェントから取得するオブジェクトの情報のOIDを設定するOID設定手段608と、1度の通信によりエージェントから取得するオブジェクトの情報の個数を設定する個数設定手段610とを有する。   The SNMP manager 602 is a software module for monitoring a device in which an SNMP agent is incorporated via a network. The SNMP manager 602 communicates with the agent to transmit / receive an SNMP message, and the transmission / reception unit 604 communicates with the agent. The acquisition information database (DB) 606 for storing the object information obtained by the above, the OID setting means 608 for setting the OID of the object information acquired from the agent, and the object information acquired from the agent by one communication And number setting means 610 for setting the number.

取得情報DB605は、取得予定であるが、未だ取得されていない情報をリスト化して格納する未取得リスト612と、エージェントに対して取得要求を行う情報をリスト化して格納する取得要求リスト614と、取得した情報をリスト化して格納する最終結果リスト616とを有する。   The acquisition information DB 605 plans to acquire, but has not yet acquired information, lists and stores an unacquired list 612, an acquisition request list 614 that lists and stores information for making an acquisition request to the agent, And a final result list 616 that stores the acquired information in a list.

入力手段603は、キーボード及びマウス等の入力装置(図示せず。)を介してユーザにより入力された設定値を受け、それをSNMPマネージャ602へ送るためのインターフェースとして機能する。   The input unit 603 functions as an interface for receiving a setting value input by a user via an input device (not shown) such as a keyboard and a mouse and sending it to the SNMP manager 602.

あるオブジェクトの情報をエージェントから取得する場合、入力手段603は、ユーザにより入力された情報取得の要求を、取得するオブジェクトの情報の個数及びそれらのOIDとともにSNMPマネージャ602へ送る。SNMPマネージャ602は、ユーザにより情報取得を要求された情報をリスト化して、取得情報DB606内の未取得リスト612に格納する。また、SNMPマネージャ602は、取得するオブジェクトの情報の個数及びそれらのOID等のユーザ入力に基づき、エージェントに対して取得要求を行う情報をリスト化して、取得情報DB606内の取得要求リスト614に格納する。送受信手段604は、OID設定手段608及び取得回数設定手段610の夫々の設定と、取得要求リスト614とを参照して、エージェントへ情報取得の要求に係るSNMPメッセージを送信する。また、送受信手段604は、エージェントから送られた応答に係るSNMPメッセージを受信する。エージェントから送られたSNMPメッセージに含まれるオブジェクトの情報は、リスト化されて取得情報DB606内の最終結果リスト616に格納され、同時に、未取得リスト612から削除される。最終的に未取得リスト612に格納されている情報がなくなるまで、SNMPマネージャ602は上記のような動作を繰り返す。   When acquiring information on an object from the agent, the input unit 603 sends an information acquisition request input by the user to the SNMP manager 602 together with the number of pieces of object information to be acquired and their OIDs. The SNMP manager 602 lists the information requested for information acquisition by the user and stores it in the unacquired list 612 in the acquisition information DB 606. Further, the SNMP manager 602 lists information to be acquired from the agent based on the user input such as the number of object information to be acquired and their OIDs, and stores the information in the acquisition request list 614 in the acquisition information DB 606. To do. The transmission / reception unit 604 refers to the settings of the OID setting unit 608 and the acquisition count setting unit 610 and the acquisition request list 614, and transmits an SNMP message related to the information acquisition request to the agent. Further, the transmission / reception means 604 receives an SNMP message related to a response sent from the agent. Information on objects included in the SNMP message sent from the agent is listed and stored in the final result list 616 in the acquisition information DB 606, and at the same time, deleted from the unacquired list 612. The SNMP manager 602 repeats the above operation until there is finally no information stored in the unacquired list 612.

以下、図7の情報処理装置による情報取得の動作について、具体的な例を挙げて説明する。   Hereinafter, the information acquisition operation by the information processing apparatus of FIG. 7 will be described with a specific example.

図8は、本発明においてテーブルとして複数の情報を有するオブジェクトの全ての値を取得する場合のフローチャートである。   FIG. 8 is a flowchart for obtaining all values of an object having a plurality of information as a table in the present invention.

テーブルとして複数の情報を有するオブジェクトに対して情報の取得要求を行うようユーザから入力手段603を介してマネージャ602へ伝えられると、最初に、ステップS801で、取得情報DB606は、その内容をクリアし、何も格納されていない状態とする。次に、ステップS802で、ユーザから入力手段603を介して入力された値に基づいて、OID設定手段608及び取得個数設定手段610は、夫々、取得開始OID及び取得個数を設定する。取得開始OIDは、複数の情報を1度に取得する場合に、そのOIDの辞書順で次のOID以降の情報を取得することを表す。取得個数は、複数の情報を取得する場合に、1度に取得できる情報の個数を表す。   When the user informs the manager 602 via the input means 603 to make an information acquisition request for an object having a plurality of information as a table, first, in step S801, the acquisition information DB 606 clears the contents. , And nothing is stored. Next, in step S802, based on the value input from the user via the input unit 603, the OID setting unit 608 and the acquisition number setting unit 610 set the acquisition start OID and the acquisition number, respectively. The acquisition start OID indicates that, when a plurality of pieces of information are acquired at a time, information after the next OID is acquired in the dictionary order of the OID. The acquisition number represents the number of pieces of information that can be acquired at a time when a plurality of pieces of information are acquired.

ステップS803で、送受信手段604は、OID設定手段608及び取得回数設定手段810の夫々で設定された取得開始OID及び取得個数に基づいてSNMPメッセージを作成し、それをエージェントへ送信する。即ち、送受信手段604は、エージェントに対して、取得開始OIDから所定の個数の情報の取得要求を行うようGetBulkRequestを送る。その後、ステップS804で、送受信手段604は、エージェントから応答(GetResponse)として送られたSNMPメッセージを受信する。これにより、送受信手段604は、前のステップで取得要求を行った情報を取得することができる。   In step S803, the transmission / reception unit 604 creates an SNMP message based on the acquisition start OID and the acquisition number set by the OID setting unit 608 and the acquisition count setting unit 810, and transmits the SNMP message to the agent. That is, the transmission / reception means 604 sends GetBulkRequest to the agent so as to make an acquisition request for a predetermined number of information from the acquisition start OID. Thereafter, in step S804, the transmission / reception unit 604 receives an SNMP message sent as a response (GetResponse) from the agent. Thereby, the transmission / reception means 604 can acquire the information requested for acquisition in the previous step.

情報取得後、ステップS805で、OID設定手段608は、取得した情報のOIDの先頭部が取得開始OIDの先頭部を超えているか否かを判定する。ここで、OIDの先頭部とは、OIDの接尾に付与されたインスタンス識別子を除いた部分のことである。   After the information acquisition, in step S805, the OID setting unit 608 determines whether or not the head portion of the acquired information OID exceeds the head portion of the acquisition start OID. Here, the head part of the OID is a part excluding the instance identifier given to the suffix of the OID.

取得した情報のOIDの先頭部が取得開始OIDの先頭部を超えていなかった場合には、ステップS806で、送受信手段604は、取得した情報の全てをリスト化して、取得情報DB606内の最終結果リスト616に格納する。次に、ステップS807で、OID設定手段608は、取得した情報のうち順序が最後のもののOIDを取得し、これを取得開始OIDに再設定する。その後、ステップS803に戻り、以降のステップが繰り返される。   If the head part of the acquired information OID does not exceed the head part of the acquisition start OID, in step S806, the transmission / reception means 604 lists all the acquired information and obtains the final result in the acquisition information DB 606. Store in list 616. Next, in step S807, the OID setting unit 608 acquires the last OID in the acquired information and resets it as the acquisition start OID. Then, it returns to step S803 and the subsequent steps are repeated.

一方、取得した情報のOIDの先頭部が取得開始OIDの先頭部を超えていた場合には、ステップS808で、送受信手段604は、取得した情報のうち、そのOIDの先頭部が取得開始OIDの先頭部を超えていないものだけをリスト化して、取得情報DB606内の最終結果リスト616に格納する。   On the other hand, if the head part of the OID of the acquired information exceeds the head part of the acquisition start OID, in step S808, the transmission / reception means 604 includes the head part of the OID of the acquisition start OID in the acquired information. Only those that do not exceed the head are listed and stored in the final result list 616 in the acquisition information DB 606.

最後に、ステップS809で、送受信手段604は、最終結果リスト616の内容、即ち、取得した情報のリストを取得結果としてユーザへ返す。   Finally, in step S809, the transmission / reception unit 604 returns the contents of the final result list 616, that is, the acquired information list to the user as an acquisition result.

このように、本発明により、SNMPv2及びSNMPv3で用いられるGetBulkRequestは、テーブルとして複数の値を有するオブジェクトに対してその値の全てを連続して取得する場合にも利用可能となる。   As described above, according to the present invention, the GetBulkRequest used in SNMPv2 and SNMPv3 can be used even when all of the values of an object having a plurality of values are continuously acquired as a table.

本発明の効果をより明確にするために、図4を参照して説明した従来技術による動作に本発明を適用した場合について説明する。   In order to clarify the effect of the present invention, the case where the present invention is applied to the operation according to the prior art described with reference to FIG. 4 will be described.

図9は、図4に示される従来技術による動作に本発明を適用した場合のシーケンス図である。図4の動作と同じく、情報取得の対象となるオブジェクトのOIDは「1.2.3.4」であり、そのテーブルには1番目から8番目までの8つの値が収められているとする。また、このオブジェクトが格納されている変数バインディングリスト領域において次に格納されているオブジェクトのOIDは、「1.2.3.5」であるとする。ただし、本実施例では、更に、1度に取得できる取得個数が5個と設定されるとする。   FIG. 9 is a sequence diagram when the present invention is applied to the operation according to the prior art shown in FIG. Similar to the operation of FIG. 4, the OID of the object from which information is acquired is “1.2.3.4”, and the table contains eight values from the first to the eighth. . Further, it is assumed that the OID of the next object stored in the variable binding list area in which this object is stored is “1.2.3.5”. However, in this embodiment, it is further assumed that the number of acquisitions that can be acquired at one time is set to five.

最初に、ステップS901で、マネージャ602は、エージェント112に対して、取得開始OID及び取得個数を夫々「1.2.3.4」及び「5」と指定してGetBulkRequestにより情報取得を要求する。これを受けて、S902で、エージェント112は、GetBulkRequestにより指定された取得開始OID「1.2.3.4」の辞書順に見て次のOID「1.2.3.4.1」以降の5個の情報をMIB114(図1参照。)から取得して、それらのOID「1.2.3.4.1」、「1.2.3.4.2」、「1.2.3.4.3」、「1.2.3.4.4」及び「1.2.3.4.5」とともにGetResponseによりマネージャ602へ通知する。   First, in step S901, the manager 602 requests the agent 112 to acquire information using GetBulkRequest by specifying the acquisition start OID and the acquisition number as “1.2.3.4” and “5”, respectively. In response to this, in step S <b> 902, the agent 112 sees the next OID “1.2.3.4.1” or later in the dictionary order of the acquisition start OID “1.2.3.4” designated by GetBulkRequest. Five pieces of information are acquired from the MIB 114 (see FIG. 1), and their OIDs “1.2.3.4.1”, “1.2.3.4.2”, “1.2.3” are obtained. .4.3 ”,“ 1.2.3.4.4 ”, and“ 1.2.3.4.5 ”are notified to the manager 602 by GetResponse.

次に、ステップS903で、マネージャ602は、先に取得した情報のOIDのうち辞書順で最後となる「1.2.3.4.5」を新たに取得開始OIDとして指定し、再び取得個数を「5」と指定して、エージェント112に対してGetBulkRequestにより情報取得を要求する。これを受けて、S904で、エージェント112は、GetBulkRequestにより指定された取得開始OID「1.2.3.4.5」の辞書順に見て次のOID「1.2.3.4.6」以降の5個の情報をMIB114から取得して、それらのOID「1.2.3.4.6」、「1.2.3.4.7」、「1.2.3.4.8」、「1.2.3.5」及び「1.2.3.5.1」とともにGetResponseによりマネージャ602へ通知する。   Next, in step S903, the manager 602 newly designates “1.2.3.4.5”, which is the last in the dictionary order, among the OIDs of the previously acquired information as a new acquisition start OID, and again acquires the number of acquired items. Is designated as “5”, and information acquisition is requested to the agent 112 by GetBulkRequest. In response to this, in step S904, the agent 112 looks in the dictionary order of the acquisition start OID “1.2.3.4.5” specified by GetBulkRequest, and the next OID “1.2.3.4.6”. The subsequent five pieces of information are acquired from the MIB 114 and their OIDs “1.2.3.4.6”, “1.2.3.4.7”, “1.2.2.3.4.8”. ”,“ 1.2.3.5 ”, and“ 1.2.3.5.1 ”are notified to the manager 602 by GetResponse.

この時点で、マネージャ602は、OID「1.2.3.4.1」以降の10個の情報を取得しているが、取得した情報の中には、本来取得する必要のない情報も含まれている場合がある。本実施例では、OIDからインスタンス識別子を除いた先頭部分が「1.2.3.4」ではないOIDの情報は、取得対象ではない。従って、先頭部分が「1.2.3.5」である情報を除く8個の情報が、最終的に取得結果としてユーザに返される。   At this point, the manager 602 has acquired 10 pieces of information after the OID “1.2.3.4.1”, but the acquired information includes information that does not need to be acquired originally. May be. In the present embodiment, information on OIDs in which the head part obtained by removing the instance identifier from the OID is not “1.2.3.4” is not an acquisition target. Accordingly, eight pieces of information excluding information whose head part is “1.2.3.5” are finally returned to the user as acquisition results.

従って、マネージャとエージェントとの間で発生する通信は、従来技術では全部で18回であったが、本実施例では4回に低減されている。   Therefore, the communication generated between the manager and the agent is 18 times in total in the prior art, but is reduced to 4 times in the present embodiment.

図10は、本発明においてマネージャが1つのSNMPメッセージにより複数のオブジェクトの情報の取得要求を行った場合のフローチャートである。   FIG. 10 is a flowchart when the manager makes an acquisition request for information on a plurality of objects using one SNMP message in the present invention.

不連続なOIDを夫々有する複数のオブジェクトに対して情報の取得要求を行うようユーザから入力手段603を介してマネージャ602へ伝えられると、最初に、ステップS1001で、取得情報DB606は、ユーザが情報を取得するよう要求した複数の情報をリスト化して、未取得リスト612に格納する。ステップS1002で、取得個数設定手段610は、ユーザから入力手段603を介して入力された値に基づいて、取得個数を設定する。また、ステップS1003で、取得情報DB606は、取得要求リスト614及び最終結果リスト616の内容をクリアし、何も格納されていない状態とする。   When the user informs the manager 602 via the input means 603 to make an information acquisition request for a plurality of objects each having a discontinuous OID, first, in step S1001, the acquisition information DB 606 displays the information A plurality of pieces of information requested to be acquired are listed and stored in the unacquired list 612. In step S <b> 1002, the acquisition number setting unit 610 sets the acquisition number based on a value input from the user via the input unit 603. In step S1003, the acquisition information DB 606 clears the contents of the acquisition request list 614 and the final result list 616 so that nothing is stored.

次に、ステップS1004で、取得個数設定手段610は、先に設定した取得個数が未取得リスト612にリスト化された情報の数よりも多いか否かを判定する。   In step S <b> 1004, the acquisition number setting unit 610 determines whether the previously set acquisition number is larger than the number of information listed in the non-acquisition list 612.

取得個数の方が多い場合には、ステップS1005で、取得情報DB606は、未取得リスト612にリスト化された全ての情報を、取得要求リスト614にもリスト化して格納する。一方、取得個数の方が少ない場合には、ステップS1006で、取得情報DB606は、未取得リスト612にリスト化された情報のうち取得個数分だけ、取得要求リスト614にもリスト化して格納する。   If the acquired number is larger, in step S1005, the acquisition information DB 606 lists all the information listed in the non-acquisition list 612 and stores it in the acquisition request list 614 as well. On the other hand, if the acquired number is smaller, in step S1006, the acquired information DB 606 lists only the acquired number out of the information listed in the unacquired list 612 and stores it in the acquisition request list 614.

ステップS1006で、送受信手段604は、取得要求リスト614にリスト化された情報の取得を要求するSNMPメッセージを作成し、それをエージェントへ送信する。即ち、送受信手段604は、エージェントに対して、取得したい情報のうち所定の個数だけ取得要求を行うようGetRequest又はGetNextRequest若しくはGetBulkRequestを送る。その後、ステップS1007で、送受信手段604は、エージェントから応答(GetResponse)として送られたSNMPメッセージを受信する。   In step S1006, the transmission / reception unit 604 creates an SNMP message for requesting acquisition of information listed in the acquisition request list 614, and transmits it to the agent. That is, the transmission / reception unit 604 sends GetRequest, GetNextRequest, or GetBulkRequest to the agent so as to make an acquisition request for a predetermined number of pieces of information to be acquired. Thereafter, in step S1007, the transmission / reception means 604 receives the SNMP message sent as a response (GetResponse) from the agent.

メッセージ受信後、ステップS1009で、送受信手段604は、SNMPメッセージに取得要求を行った情報が含まれるか否か、即ち、情報の取得に成功したか否かを判定する。   After receiving the message, in step S1009, the transmission / reception means 604 determines whether or not the SNMP message includes the requested information, that is, whether or not the information has been successfully acquired.

要求した全ての情報の取得に成功した場合には、ステップ1011で、送受信手段604は、取得した情報の全てをリスト化して、取得情報DB606内の最終結果リスト616に格納する。また、要求した情報のうち一部の取得に成功した場合には、ステップS1010で、取得個数設定手段610は、取得個数を現在の値から減じて再設定し、その後、ステップS1011で、取得した情報の全てをリスト化して、取得情報DB606内の最終結果リスト616に格納する。   If all the requested information has been successfully acquired, in step 1011, the transmission / reception means 604 lists all the acquired information and stores it in the final result list 616 in the acquisition information DB 606. If a part of the requested information has been successfully acquired, in step S1010, the acquisition number setting unit 610 subtracts the acquisition number from the current value and resets it, and then acquires it in step S1011. All of the information is listed and stored in the final result list 616 in the acquisition information DB 606.

取得した情報が最終結果リスト616でリスト化された後、又は同時に、取得情報DB606は、取得した情報を未取得リスト612から削除する。次に、ステップS1013で、取得情報DB606は、未取得リスト612にリスト化された情報が存在するか否かを判定する。   After the acquired information is listed in the final result list 616, or at the same time, the acquisition information DB 606 deletes the acquired information from the unacquired list 612. Next, in step S1013, the acquisition information DB 606 determines whether there is information listed in the unacquired list 612.

未取得リスト612にリスト化された情報が存在した場合には、ステップS1003に戻り、以降のステップが繰り返される。一方、存在しなかった場合には、ステップS1014で、送受信手段604は、最終結果リスト616の内容、即ち、取得した情報のリストを取得結果としてユーザへ返す。   If there is information listed in the unacquired list 612, the process returns to step S1003 and the subsequent steps are repeated. On the other hand, if it does not exist, in step S1014, the transmission / reception unit 604 returns the contents of the final result list 616, that is, the list of acquired information to the user as an acquisition result.

また、先のステップS1008で情報の取得に失敗したと判定された場合には、送受信手段604は、情報の取得ができなかった旨を取得結果としてユーザへ返す。   If it is determined in step S1008 that information acquisition has failed, the transmission / reception unit 604 returns to the user as an acquisition result that the information could not be acquired.

このように、複数のオブジェクトの情報を取得する場合に、次に要求する取得個数を再設定することにより情報取得の成否に対応しており、効率的な情報取得が可能となる。また、情報取得に失敗した場合には、取得できなかった情報対してのみ再度取得要求を行うので、更に効率的な情報取得が可能となる。   As described above, when acquiring information of a plurality of objects, the success or failure of the information acquisition is dealt with by resetting the number of acquisitions to be requested next, and efficient information acquisition becomes possible. Further, when information acquisition fails, an acquisition request is made again only for information that could not be acquired, so that more efficient information acquisition is possible.

本発明の効果をより明確にするために、図5を参照して説明した従来技術による動作に本発明を適用した場合について説明する。   In order to clarify the effect of the present invention, the case where the present invention is applied to the operation according to the prior art described with reference to FIG. 5 will be described.

図11は、図5に示される従来技術による動作に本発明を適用した場合のシーケンス図である。図5の動作と同じく、取得要求は、不連続なOID「1.1.5.0」、「1.1.20.0」、「1.1.2.0」、「1.3.8.0」、「1.1.13.0」、「1.8.12.0」、「1.1.9.0」、「1.1.29.0」及び「1.9.1.0」を夫々有する9個のオブジェクトの情報に対してなされるとする。ただし、本実施例では、更に、1度に取得できる取得個数が5個と設定されるとする。   FIG. 11 is a sequence diagram when the present invention is applied to the operation according to the prior art shown in FIG. Similar to the operation of FIG. 5, the acquisition request includes discontinuous OIDs “1.1.5.0”, “1.1.20.0”, “1.1.2.0”, “1.3. 8.0 "," 1.1.13.0 "," 1.8.12.0 "," 1.1.9.0 "," 1.1.29.0 "and" 1.9. It is assumed that this is done for information of nine objects each having “1.0”. However, in this embodiment, it is further assumed that the number of acquisitions that can be acquired at one time is set to five.

最初に、S1101で、マネージャ602は、エージェント112に対して、取得したい9個の情報のうちOIDが「1.1.5.0」、「1.1.20.0」、「1.1.2.0」及び「1.3.8.0」、「1.1.13.0」である5個のオブジェクトの情報を取得するよう要求するために、GetRequestを送る。これを受けて、S1102で、エージェント112は、GetRequestにより指定されたOID「1.1.5.0」、「1.1.20.0」、「1.1.2.0」及び「1.3.8.0」、「1.1.13.0」を夫々割り当てられたオブジェクトの情報をMIB114(図1参照。)から取得して、それらのOIDとともにGetResponseによりマネージャ602へ通知する。   First, in step S1101, the manager 602 gives the agent 112 an OID of “1.1.5.0”, “1.1.20.0”, “1.1” .2.0 ”,“ 1.3.8.0 ”, and“ 1.1.13.0 ”, a GetRequest is sent to request acquisition of information on five objects. In response to this, in step S1102, the agent 112 causes the OIDs “1.1.5.0”, “1.1.20.0”, “1.1.2.0”, and “1” specified by GetRequest. .3.8.0 ”and“ 1.1.13.0 ”are acquired from the MIB 114 (see FIG. 1) and notified to the manager 602 by GetResponse together with their OIDs.

次に、S1103で、マネージャ602は、取得したい残りの4個の情報に対して取得要求を行うために取得個数を5個から4個に変更した後、OIDが「1.8.12.0」、「1.1.9.0」、「1.1.29.0」及び「1.9.1.0」である4個のオブジェクトの情報を取得するよう要求するために、GetRequestを送る。これを受けて、S1103で、エージェント112は、GetRequestにより指定されたOID「1.8.12.0」、「1.1.9.0」、「1.1.29.0」及び「1.9.1.0」を夫々割り当てられたオブジェクトの情報をMIB114から取得して、それらのOIDとともにGetResponseによりマネージャ602へ通知する。   In step S <b> 1103, the manager 602 changes the number of acquisition from five to four in order to make an acquisition request for the remaining four pieces of information to be acquired, and then the OID is “1.8.12.0. ”,“ 1.1.9.0 ”,“ 1.1.29.0 ”, and“ 1.9.1.0 ”to request to get information on the four objects, GetRequest send. In response to this, in step S1103, the agent 112 causes the OIDs “1.8.12.0”, “1.1.9.0”, “1.1.29.0”, and “1” specified by GetRequest. .9.1.0 ”is acquired from the MIB 114 and notified to the manager 602 through GetResponse along with their OIDs.

従って、マネージャとエージェントとの間で発生する通信は、従来技術では全部で18回であったが、本実施例では4回に低減されている。更に、本発明では、情報取得の成否に限らず、未だ取得されていない情報の個数に応じて次に要求する取得個数を再設定することができるので、余分な情報を取得してしまうといった無駄も除かれている。   Therefore, the communication generated between the manager and the agent is 18 times in total in the prior art, but is reduced to 4 times in the present embodiment. Furthermore, in the present invention, the number of acquisitions to be requested next can be reset depending on the number of pieces of information that have not yet been acquired, not limited to the success or failure of information acquisition, so that unnecessary information is acquired. Is also excluded.

[変形例]
以上、発明を実施するための最良の形態について説明を行ったが、本発明は、この最良の形態で述べた実施の形態に限定されるものではない。本発明の主旨を損なわない範囲で変更することが可能である。
[Modification]
Although the best mode for carrying out the invention has been described above, the present invention is not limited to the embodiment described in the best mode. Modifications can be made without departing from the spirit of the present invention.

例えば、本発明の実施形態では、本発明は、情報処理装置のハードディスク(HDD)及び読出し専用メモリ(ROM)等のメモリに格納されたプログラムによって実現されるとしたが、あるいは、情報処理装置においてハードウェアとして実現されても良い。   For example, in the embodiment of the present invention, the present invention is realized by a program stored in a memory such as a hard disk (HDD) and a read-only memory (ROM) of the information processing apparatus. It may be realized as hardware.

また、上記実施例において、情報取得の全て又は一部にエラーであった場合には、予め設定された取得個数を減じることにより、次回以降は機器から正常に情報を取得できるよう対応していたが、あるいは、情報を分割して取得するよう機器に対して要求することにより対応しても良い。また、例えば、機器が複数の情報を取得するよう構成されていない等の何らかの理由によって1度に複数の情報を取得できない環境下では、単一の情報ごとに分割して取得するよう機器に対して要求しても良い。   Further, in the above embodiment, when there is an error in all or part of information acquisition, the number of preset acquisitions is reduced so that information can be normally acquired from the device after the next time. Alternatively, it may be dealt with by requesting the device to divide and acquire the information. In addition, for example, in an environment where a plurality of information cannot be acquired at one time for some reason, such as the device is not configured to acquire a plurality of information, May be requested.

また、上記実施例の夫々を組み合わせることも可能であり、情報取得の全て又は一部にエラーであった場合に、SNMPのバージョンに応じて最適なエラー処理を行うことができる。   In addition, it is possible to combine the above-described embodiments, and when there is an error in all or part of information acquisition, it is possible to perform an optimal error process according to the SNMP version.

SNMPによって管理されるネットワークシステムの一例を示す。An example of the network system managed by SNMP is shown. MIBの構造を示す概念図である。It is a conceptual diagram which shows the structure of MIB. SNMPメッセージのデータ構造の一例を示す。An example of the data structure of an SNMP message is shown. 従来技術においてテーブルとして複数の情報を有するオブジェクトの全ての値を取得する場合のシーケンス図である。It is a sequence diagram in the case of acquiring all the values of the object which has several information as a table in a prior art. 従来技術においてマネージャが1つのSNMPメッセージにより複数のオブジェクトの情報の取得要求を行った場合のシーケンス図である。It is a sequence diagram when a manager makes an acquisition request for information of a plurality of objects by one SNMP message in the prior art. 本実施形態における情報処理装置のハードウェア構成の一例を表す図である。It is a figure showing an example of the hardware constitutions of the information processing apparatus in this embodiment. 図6の情報処理装置において本発明に係る機能構成の一例を表す図である。It is a figure showing an example of the function structure which concerns on this invention in the information processing apparatus of FIG. 本発明においてテーブルとして複数の情報を有するオブジェクトの全ての値を取得する場合のフローチャートである。It is a flowchart in the case of acquiring all the values of the object which has several information as a table in this invention. 図4に示される従来技術による動作に本発明を適用した場合のシーケンス図である。It is a sequence diagram at the time of applying this invention to the operation | movement by the prior art shown by FIG. 本発明においてマネージャが1つのSNMPメッセージにより複数のオブジェクトの情報の取得要求を行った場合のフローチャートである。It is a flowchart in case the manager makes an acquisition request for information of a plurality of objects by one SNMP message in the present invention. 図5に示される従来技術による動作に本発明を適用した場合のシーケンス図である。It is a sequence diagram at the time of applying this invention to the operation | movement by the prior art shown by FIG.

符号の説明Explanation of symbols

102、602 マネージャ
112、122、132 エージェント
114、124、134 MIB
301 SNMPメッセージ
304 PDU
310 OID
600 情報処理装置
603 入力手段
604 送受信手段
606 取得情報DB
608 OID設定手段
610 取得個数設定手段
612 未取得リスト
614 取得要求リスト
616 最終結果リスト
67 記憶媒体
102, 602 Manager 112, 122, 132 Agent 114, 124, 134 MIB
301 SNMP message 304 PDU
310 OID
600 Information processing apparatus 603 Input unit 604 Transmission / reception unit 606 Acquisition information DB
608 OID setting means 610 Acquisition number setting means 612 Non-acquisition list 614 Acquisition request list 616 Final result list 67 Storage medium

Claims (12)

SNMPメッセージにより機器から情報を取得する機器情報取得方法であって、
前記情報にテーブルとして含まれる複数の値の全てをGetBulkRequestを用いて取得する場合に、
前記情報の範囲を示すOIDと、前記機器から1度に取得する情報の個数とを前記GetBulkRequestに設定する設定ステップと、
前記OIDから前記個数ずつ前記情報の値を取得するよう要求する第1のSNMPメッセージを前記機器に対して送信するメッセージ送信ステップと、
該メッセージ送信ステップにおいて送信された第1のSNMPメッセージの応答としての第2のSNMPメッセージを前記機器から受信するメッセージ受信ステップとを有することを特徴とする機器情報取得方法。
A device information acquisition method for acquiring information from a device by an SNMP message,
When all of a plurality of values included in the information as a table are acquired using GetBulkRequest,
A setting step of setting an OID indicating the range of the information and the number of pieces of information acquired at a time from the device in the GetBulkRequest;
A message transmission step of transmitting to the device a first SNMP message requesting to acquire the value of the information by the number from the OID;
A device information obtaining method comprising: a message receiving step of receiving a second SNMP message as a response to the first SNMP message transmitted in the message transmitting step from the device.
前記メッセージ受信ステップにおいて受信された第2のSNMPメッセージの情報が、前記第1のSNMPメッセージの情報の範囲を示す前記OIDの範囲内か否かを判定する判定ステップを更に有し、
該判定ステップにおいて、前記第2のSNMPメッセージの情報に前記OIDの範囲内にない情報が存在する場合に、前記機器からの情報の取得が完了したと判定し、前記第2のSNMPメッセージの情報のうち前記OIDの範囲内にある情報のみを取り出すことを特徴とする請求項1記載の機器情報取得方法。
A determination step of determining whether the information of the second SNMP message received in the message reception step is within the range of the OID indicating the range of the information of the first SNMP message;
In the determination step, when there is information that is not within the range of the OID in the information of the second SNMP message, it is determined that the acquisition of information from the device is completed, and the information of the second SNMP message The apparatus information acquisition method according to claim 1, wherein only information within the range of the OID is extracted.
SNMPメッセージにより機器から情報を取得する機器情報取得方法であって、
複数の情報をGetRequest又はGetNextRequest若しくはGetBulkRequestを用いて取得する場合に、
前記機器から1度に取得する情報の個数を前記GetRequest又はGetNextRequest若しくはGetBulkRequestに設定する設定ステップと、
該設定ステップにおいて設定された個数を前記複数の情報のうち未取得である情報の個数と比較する比較ステップと、
該比較ステップにおいて、前記個数が前記未取得である情報の個数より大きい場合に、前記未取得である情報の全てを取得するよう要求し、前記個数が前記未取得である情報の個数より小さい場合に、前記未取得である情報のうち前記個数だけ取得するよう要求する第1のSNMPメッセージを送信するメッセージ送信ステップと、
該メッセージ送信ステップにおいて送信された第1のSNMPメッセージの応答としての第2のSNMPメッセージを前記機器から受信するメッセージ受信ステップとを有することを特徴とする機器情報取得方法。
A device information acquisition method for acquiring information from a device by an SNMP message,
When acquiring multiple information using GetRequest or GetNextRequest or GetBulkRequest,
A setting step of setting the number of pieces of information acquired at a time from the device in the GetRequest, GetNextRequest, or GetBulkRequest;
A comparison step of comparing the number set in the setting step with the number of pieces of information not acquired among the plurality of pieces of information;
In the comparison step, when the number is larger than the number of unacquired information, a request is made to acquire all the unacquired information, and the number is smaller than the number of unacquired information. A message sending step for sending a first SNMP message for requesting acquisition of the number of pieces of unacquired information;
A device information obtaining method comprising: a message receiving step of receiving a second SNMP message as a response to the first SNMP message transmitted in the message transmitting step from the device.
前記メッセージ受信ステップにおいて受信された第2のSNMPメッセージがエラーである場合に、
前記機器から情報を分割して取得するよう要求する第3のSNMPメッセージを前記機器に対して再送するメッセージ再送ステップを更に有することを特徴とする請求項1又は2記載の機器情報取得方法。
If the second SNMP message received in the message receiving step is an error,
3. The device information acquisition method according to claim 1, further comprising a message retransmission step of retransmitting a third SNMP message that requests to divide and acquire information from the device to the device.
前記メッセージ再送ステップにおいて再送される第3のSNMPメッセージは、前記機器から情報を1つずつ分割して取得するよう要求することを特徴とする請求項4記載の機器情報取得方法。   5. The device information acquisition method according to claim 4, wherein the third SNMP message retransmitted in the message retransmission step requests to acquire information from the device by dividing it one by one. 前記メッセージ受信ステップにおいて受信された第2のSNMPメッセージがエラーである場合に、
前記設定ステップにおいて設定された個数を減じて、前記機器に対して情報の取得を要求する第3のSNMPメッセージを前記機器に対して再送するメッセージ再送ステップを更に有することを特徴とする請求項1又は3記載の機器情報取得方法。
If the second SNMP message received in the message receiving step is an error,
2. The message re-transmission step further comprising a step of re-sending a third SNMP message for requesting the device to acquire information by subtracting the number set in the setting step to the device. Or the apparatus information acquisition method of 3 description.
前記メッセージ送信ステップにおいて、GetBulkRequestを用いて情報を取得するよう要求する第1のSNMPメッセージを前記機器に対して送信した場合に、
前記メッセージ受信ステップにおいて受信された第2のSNMPメッセージに前記メッセージ送信ステップにおいて取得を要求した情報の一部しか含まれないときは、前記メッセージ送信ステップにおいて取得を要求した残りの情報についてのみ再度取得を要求する第3のメッセージを送信する再取得メッセージ送信ステップを有することを特徴とする請求項3記載の機器情報取得方法。
In the message transmission step, when a first SNMP message requesting to acquire information using GetBulkRequest is transmitted to the device,
When the second SNMP message received in the message reception step includes only a part of the information requested for acquisition in the message transmission step, only the remaining information requested for acquisition in the message transmission step is obtained again. The apparatus information acquisition method according to claim 3, further comprising a reacquisition message transmission step of transmitting a third message requesting the device.
前記第3のメッセージは、前記設定ステップにおいて設定された個数を減じて、前記残りの情報について前記機器に対して再度取得を要求することを特徴とする請求項7記載の機器情報取得方法。   The device information acquisition method according to claim 7, wherein the third message subtracts the number set in the setting step and requests the device to acquire the remaining information again. 前記メッセージ送信ステップにおいて、GetRequest又はGetNextRequestを用いて情報を取得するよう要求する第1のSNMPメッセージを前記機器に対して送信し、前記メッセージ受信ステップにおいて受信された第2のSNMPメッセージがエラーである場合に、
GetBulkRequestを利用可能なSNMPのバージョンに対応する場合には、前記メッセージ送信ステップにおいて取得を要求した情報について前記GetBulkRequestにより再度取得を要求する第3のメッセージを送信する再取得メッセージ送信ステップを有し、
前記バージョンに対応しない場合には、前記機器から情報を1つずつ分割して取得する取得するよう要求する第4のSNMPメッセージを前記機器に対して再送するメッセージ再送ステップを有することを特徴とする請求項3記載の機器情報取得方法。
In the message sending step, a first SNMP message requesting to acquire information using GetRequest or GetNextRequest is sent to the device, and the second SNMP message received in the message receiving step is an error. In case,
When it corresponds to the SNMP version that can use GetBulkRequest, it has a reacquisition message transmission step of transmitting a third message requesting acquisition again by the GetBulkRequest for the information requested to be acquired in the message transmission step,
In the case of not corresponding to the version, there is a message retransmission step of retransmitting a fourth SNMP message for requesting to acquire information obtained by dividing the information from the device one by one. The device information acquisition method according to claim 3.
前記1乃至9のうちいずれか一項記載の機器情報取得方法により取得要求を送信される機器において、前記取得要求に応じて情報を送信する方法。   A method for transmitting information in response to the acquisition request in a device to which the acquisition request is transmitted by the device information acquisition method according to any one of 1 to 9. SNMPメッセージにより機器から情報を取得する情報処理装置であって、
前記情報にテーブルとして含まれる複数の値の全てをGetBulkRequestを用いて取得する場合に、
前記情報の範囲を示すOIDを前記GetBulkRequestに設定するOID設定手段と、
前記機器から1度に取得する情報の個数を前記GetBulkRequestに設定する取得個数設定手段と、
前記OIDから前記個数ずつ前記情報の値を取得するよう要求する第1のSNMPメッセージを前記機器に対して送信し、前記第1のSNMPメッセージの応答としての第2のSNMPメッセージを前記機器から受信する送受信手段とを有することを特徴とする情報処理装置。
An information processing apparatus that acquires information from a device by an SNMP message,
When all of a plurality of values included in the information as a table are acquired using GetBulkRequest,
OID setting means for setting an OID indicating the range of the information in the GetBulkRequest;
An acquisition number setting means for setting the number of pieces of information acquired at a time from the device in the GetBulkRequest;
A first SNMP message requesting to acquire the value of the information by the number from the OID is transmitted to the device, and a second SNMP message as a response to the first SNMP message is received from the device. And an information processing apparatus.
SNMPメッセージにより機器から情報を取得する情報処理装置であって、
複数の情報をGetRequest又はGetNextRequest若しくはGetBulkRequestを用いて取得する場合に、
前記機器から取得する予定の未取得情報をリスト化する未取得リストと、
前記機器から1度に取得する情報の個数を前記GetRequest又はGetNextRequest若しくはGetBulkRequestに設定し、前記個数を前記未取得リストにリスト化された未取得情報の個数と比較する取得個数設定手段と、
該取得個数設定手段により前記個数が前記未取得情報の個数より大きいと決定される場合に、前記未取得情報の全てを取得するよう要求し、前記取得個数設定手段により前記個数が前記未取得情報の個数より小さいと決定される場合に、前記未取得情報のうち前記個数だけ取得するよう要求する第1のSNMPメッセージを送信し、該第1のSNMPメッセージの応答としての第2のSNMPメッセージを前記機器から受信する送受信手段とを有することを特徴とする情報処理装置。
An information processing apparatus that acquires information from a device by an SNMP message,
When acquiring multiple information using GetRequest or GetNextRequest or GetBulkRequest,
An unacquired list that lists unacquired information scheduled to be acquired from the device;
An acquisition number setting means for setting the number of information to be acquired from the device at a time in the GetRequest, GetNextRequest, or GetBulkRequest, and comparing the number with the number of unacquired information listed in the unacquired list;
When the acquired number setting means determines that the number is larger than the number of unacquired information, the acquisition number setting means requests to acquire all of the unacquired information, and the acquired number setting means determines that the number is the unacquired information. If it is determined that the number is less than the number of the unacquired information, a first SNMP message requesting to acquire the number of the unacquired information is transmitted, and a second SNMP message as a response to the first SNMP message is transmitted. An information processing apparatus comprising: transmission / reception means for receiving from the device.
JP2006250047A 2006-09-14 2006-09-14 Device information acquisition method and information processing device for acquiring information from device by SNMP message Expired - Fee Related JP4942435B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006250047A JP4942435B2 (en) 2006-09-14 2006-09-14 Device information acquisition method and information processing device for acquiring information from device by SNMP message

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006250047A JP4942435B2 (en) 2006-09-14 2006-09-14 Device information acquisition method and information processing device for acquiring information from device by SNMP message

Publications (2)

Publication Number Publication Date
JP2008071197A true JP2008071197A (en) 2008-03-27
JP4942435B2 JP4942435B2 (en) 2012-05-30

Family

ID=39292714

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006250047A Expired - Fee Related JP4942435B2 (en) 2006-09-14 2006-09-14 Device information acquisition method and information processing device for acquiring information from device by SNMP message

Country Status (1)

Country Link
JP (1) JP4942435B2 (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011103033A (en) * 2009-11-10 2011-05-26 Nec Corp Network management server device, device to be managed, network system, method of requesting information to be managed, and method of transmitting information to be managed
JP2011239381A (en) * 2010-05-07 2011-11-24 Lsis Co Ltd Remote communication system and method
JP2013182305A (en) * 2012-02-29 2013-09-12 Brother Ind Ltd Management device
JP2013206359A (en) * 2012-03-29 2013-10-07 Brother Ind Ltd Management device
WO2015131523A1 (en) * 2014-09-25 2015-09-11 中兴通讯股份有限公司 Data query method, system and computer storage medium
JP7090786B1 (en) * 2021-12-01 2022-06-24 Kddi株式会社 Network management device, method and program in the management device

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004054657A (en) * 2002-07-22 2004-02-19 Canon Inc Network device management device

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004054657A (en) * 2002-07-22 2004-02-19 Canon Inc Network device management device

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011103033A (en) * 2009-11-10 2011-05-26 Nec Corp Network management server device, device to be managed, network system, method of requesting information to be managed, and method of transmitting information to be managed
JP2011239381A (en) * 2010-05-07 2011-11-24 Lsis Co Ltd Remote communication system and method
US8578212B2 (en) 2010-05-07 2013-11-05 Lsis Co., Ltd. Remote communication system and method
JP2013182305A (en) * 2012-02-29 2013-09-12 Brother Ind Ltd Management device
JP2013206359A (en) * 2012-03-29 2013-10-07 Brother Ind Ltd Management device
US9146971B2 (en) 2012-03-29 2015-09-29 Brother Kogyo Kabushiki Kaisha Management device and computer-readable storage medium storing computer-readable instructions
WO2015131523A1 (en) * 2014-09-25 2015-09-11 中兴通讯股份有限公司 Data query method, system and computer storage medium
JP7090786B1 (en) * 2021-12-01 2022-06-24 Kddi株式会社 Network management device, method and program in the management device

Also Published As

Publication number Publication date
JP4942435B2 (en) 2012-05-30

Similar Documents

Publication Publication Date Title
US7065588B2 (en) Method and system for data transformation in a heterogeneous computer system
JP4851595B2 (en) Method for logical deployment, undeployment, and monitoring of a target IP network
CA2582380C (en) Network management apparatus and method based on simple network management protocol
US7451199B2 (en) Network attached storage SNMP single system image
JPWO2004071014A1 (en) SNMP proxy agent and management information relay method
US7249359B1 (en) Method and system for setting expressions in network management notifications
JP4942435B2 (en) Device information acquisition method and information processing device for acquiring information from device by SNMP message
KR100429894B1 (en) Apparatus and method for managing network faults by multi-agent communication
EP2747341B1 (en) Connecting computer management systems via cellular digital telecommunication networks
US8055746B2 (en) Method and system for improved management of a communication network by extending the simple network management protocol
US10313254B1 (en) Network management interface for a network element with network-wide information
KR100484492B1 (en) Network management system for managing of state and problem in router system and method thereof
Cisco Chapter 5, SNMP
Cisco Chapter 5, SNMP
JP4167260B2 (en) Information acquisition apparatus and method
JP2007157160A (en) Method of starting tcp/ip link and traffic alternatively, computer network system, and program storage device
KR100489941B1 (en) The method for alarm status synchronization between NMS agent and network element
JP2007188298A (en) Snmp agent apparatus
JP4111973B2 (en) Information acquisition apparatus and method
JP3763140B2 (en) Error transmission method, error transmission program and error transmission system in SNMP protocol
JP3229265B2 (en) Address translation device and recording medium recording address translation program
JP4882942B2 (en) Management information providing apparatus, node, and management information providing program
JPH11296457A (en) Network device control method/device using sump protocol and conatining network management software, and record medium
KR100534619B1 (en) Apparatus and method of network management
KR100474358B1 (en) Method and apparatus for implementation function of remote network monitoring in high speed router, and storage medium for recording program thereof

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20090521

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20110519

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20110531

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20110715

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20110809

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20111007

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: 20120131

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20120228

R150 Certificate of patent or registration of utility model

Ref document number: 4942435

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20150309

Year of fee payment: 3

LAPS Cancellation because of no payment of annual fees