JP6871804B2 - Network configuration survey device, network configuration survey program, and network configuration survey method - Google Patents

Network configuration survey device, network configuration survey program, and network configuration survey method Download PDF

Info

Publication number
JP6871804B2
JP6871804B2 JP2017100005A JP2017100005A JP6871804B2 JP 6871804 B2 JP6871804 B2 JP 6871804B2 JP 2017100005 A JP2017100005 A JP 2017100005A JP 2017100005 A JP2017100005 A JP 2017100005A JP 6871804 B2 JP6871804 B2 JP 6871804B2
Authority
JP
Japan
Prior art keywords
network
address
information
investigation
network configuration
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.)
Active
Application number
JP2017100005A
Other languages
Japanese (ja)
Other versions
JP2018195186A (en
Inventor
暢 秋山
暢 秋山
泰浩 高橋
泰浩 高橋
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.)
PHC Holdings Corp
Original Assignee
PHC Holdings Corp
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 PHC Holdings Corp filed Critical PHC Holdings Corp
Priority to JP2017100005A priority Critical patent/JP6871804B2/en
Publication of JP2018195186A publication Critical patent/JP2018195186A/en
Application granted granted Critical
Publication of JP6871804B2 publication Critical patent/JP6871804B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Computer And Data Communications (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Description

本発明は、ネットワーク構成の調査に関する。 The present invention relates to the investigation of network configuration.

従来、ネットワークに接続されている機器の状態や機器に発生した障害を認識するために、ネットワークを介して機器を監視するシステムが知られている。例えば、特許文献1には、ネットワークに接続されたSNMP(Simple Network Management Protocol)エージェント機能を有する複数の監視対象機器と、それらを管理するSNMPマネージャ機能を有する下位監視装置で構成されるサブシステムと、それら複数のサブシステムを管理する上位監視装置とでシステムを構成し、各下位監視装置がサブシステム内の監視対象機器の状態を監視し、障害発生及び状態変化のみを上位監視装置へ転送することが開示されている。 Conventionally, a system for monitoring a device via a network has been known in order to recognize the state of a device connected to the network or a failure that has occurred in the device. For example, Patent Document 1 describes a subsystem composed of a plurality of monitored devices having an SNMP (Simple Network Management Protocol) agent function connected to a network and a lower monitoring device having an SNMP manager function for managing them. , The system is configured with the upper monitoring device that manages these multiple subsystems, each lower monitoring device monitors the status of the monitored device in the subsystem, and only the failure occurrence and status change are transferred to the upper monitoring device. Is disclosed.

特開2014−6829号公報Japanese Unexamined Patent Publication No. 2014-6829

ところで、監視対象機器の状態を表示する際、当該監視対象機器が接続されているネットワークの構成も合わせて表示すると、ユーザにとってよりわかりやすい表示となる。そのためには、ネットワークの構成及び当該ネットワークに接続されている機器を調査する必要がある。 By the way, when displaying the status of the monitored device, if the configuration of the network to which the monitored device is connected is also displayed, the display will be easier for the user to understand. For that purpose, it is necessary to investigate the network configuration and the devices connected to the network.

本発明の目的は、ネットワークの構成及び当該ネットワークに接続されている機器を比較的短時間で調査することにある。 An object of the present invention is to investigate the configuration of a network and the devices connected to the network in a relatively short time.

本発明の一態様に係るネットワーク構成調査装置は、前記ネットワーク上の各機器の種別を調査する機器調査部と、前記種別がコンピュータである機器で稼働しているエージェント向けのルーティング情報の取得コマンドを送信し、ルーティング情報の取得に成功した場合、前記ルーティング情報の内容をルーティング情報テーブルに登録し、前記ルーティング情報テーブルに基づいて、前記複数の機器のネットワーク上の関係を示すネットワーク構成情報を生成するネットワーク調査部と、を備える。 The network configuration investigation device according to one aspect of the present invention issues a routing information acquisition command for an agent that is operating in a device whose type is a computer and a device investigation unit that investigates the type of each device on the network. When it is transmitted and the acquisition of the routing information is successful, the contents of the routing information are registered in the routing information table, and network configuration information indicating the relationship between the plurality of devices on the network is generated based on the routing information table. It has a network research department.

本発明によれば、ネットワークの構成及び当該ネットワークに接続されている機器を比較的短時間で調査することができる。 According to the present invention, the network configuration and the devices connected to the network can be investigated in a relatively short time.

実施の形態1及び2に係るネットワーク構成の一例を示す模式図。The schematic diagram which shows an example of the network configuration which concerns on Embodiments 1 and 2. 実施の形態1に係るネットワーク構成調査装置の構成例を示すブロック図。The block diagram which shows the configuration example of the network configuration investigation apparatus which concerns on Embodiment 1. FIG. 機器情報テーブルの例を示すテーブル図。A table diagram showing an example of a device information table. 実施の形態1に係る機器情報ファイルの出力処理を示すフローチャート。The flowchart which shows the output process of the device information file which concerns on Embodiment 1. 実施の形態2に係るネットワーク構成調査装置の構成例を示すブロック図。The block diagram which shows the configuration example of the network configuration investigation apparatus which concerns on Embodiment 2. FIG. PING調査テーブルの例を示すテーブル図。The table figure which shows the example of the PING investigation table. ルーティング情報テーブルの例を示すテーブル図。A table diagram showing an example of a routing information table. GW(Gateway)情報テーブルの例を示すテーブル図。A table diagram showing an example of a GW (Gateway) information table. ルータ情報テーブルの例を示すテーブル図。A table diagram showing an example of a router information table. HUB情報テーブルの例を示すテーブル図。The table diagram which shows the example of the HUB information table. 監視対象機器テーブルの例を示すテーブル図。A table diagram showing an example of a monitored device table. 非監視対象機器テーブルの例を示すテーブル図。A table diagram showing an example of a non-monitored device table. ネットワーク構成情報ファイルの例を示すテーブル図。A table diagram showing an example of a network configuration information file. 実施の形態2に係るネットワーク構成情報ファイルの出力処理を示すフローチャート。The flowchart which shows the output process of the network configuration information file which concerns on Embodiment 2. 図14の続きのフローチャート。FIG. 14 is a continuation flowchart of FIG. 図15の続きのフローチャート。FIG. 15 is a continuation flowchart of FIG. 図16の続きのフローチャート。FIG. 16 is a continuation flowchart of FIG. 図17の続きのフローチャート。FIG. 17 is a continuation flowchart of FIG. 図18の続きのフローチャート。FIG. 18 is a continuation flowchart of FIG. 図19の続きのフローチャート。FIG. 19 is a continuation flowchart of FIG. 図20の続きのフローチャート。FIG. 20 is a continuation flowchart of FIG. アドレスの判定に用いられる情報を示す図。The figure which shows the information used for the determination of an address. 本発明に係るネットワーク構成調査装置のハードウェア構成の例を示すブロック図。The block diagram which shows the example of the hardware configuration of the network configuration investigation apparatus which concerns on this invention.

以下、図面を参照しながら、実施の形態を説明する。 Hereinafter, embodiments will be described with reference to the drawings.

(実施の形態1)
<概要>
まず、図1に示すネットワーク構成例を用いて、実施の形態1の概要を説明する。
(Embodiment 1)
<Overview>
First, the outline of the first embodiment will be described with reference to the network configuration example shown in FIG.

ネットワーク構成調査装置10は、ネットワークの構成及び当該ネットワークに接続されている機器を調査し、その調査結果を、機器情報ファイル103(図2参照)として出力する。図1に示すネットワーク構成の場合、ネットワーク構成調査装置10は、Router1、Gateway1、Client1(自装置10)、Server1、Printer1、Printer2、Gateway2、Router2、及び、Client3(PC)の各機器名、及び、機器に設定されているIPアドレス(以下単に「アドレス」と呼ぶ)を含む機器情報ファイル103(図2参照)を出力する。以下、詳細に説明する。なお、図1にはインテリジェントHUB(以下「HUB」と呼ぶ)が記載されていないが、ネットワーク上にはHUBが配置されていてもよい。 The network configuration survey device 10 surveys the network configuration and the devices connected to the network, and outputs the survey results as a device information file 103 (see FIG. 2). In the case of the network configuration shown in FIG. 1, the network configuration investigation device 10 includes the device names of Rower1, Gateway1, Client1 (own device 10), Server1, Printer1, Printer2, Gateway2, Route2, and Client3 (PC), and the device names of Client3 (PC). The device information file 103 (see FIG. 2) including the IP address set in the device (hereinafter, simply referred to as “address”) is output. Hereinafter, a detailed description will be given. Although the intelligent HUB (hereinafter referred to as "HUB") is not shown in FIG. 1, the HUB may be arranged on the network.

<構成>
次に、図2を用いて、ネットワーク構成調査装置の構成を説明する。ネットワーク構成調査装置10は、ファイル読み込み部20と、PING調査部21と、機器調査部22と、機器情報ファイル生成部23と、アドレス調査範囲設定ファイル101と、PING調査テーブル300と、追加機器テーブル102と、機器情報テーブル200とを備え、機器情報ファイル103を出力する。
<Structure>
Next, the configuration of the network configuration survey device will be described with reference to FIG. The network configuration survey device 10 includes a file reading unit 20, a PING survey unit 21, a device survey unit 22, a device information file generation unit 23, an address survey range setting file 101, a PING survey table 300, and an additional device table. It includes 102 and a device information table 200, and outputs a device information file 103.

機器情報テーブル200は、図3に示すように、機器の名称である機器名201と、機器名201の機器の種別である機器種別202と、機器名201の機器に設定されているアドレス203と、機器名201の機器がSNMPのポーリングに対応しているか否かを示すポーリング204と、機器名201の機器がSNMPのトラップに対応しているか否かを示すトラップ205と、を含むレコードを管理する。なお、追加機器テーブル102も、機器情報テーブル200と同じ構成である。 As shown in FIG. 3, the device information table 200 includes a device name 201 which is a device name, a device type 202 which is a device type of the device name 201, and an address 203 set in the device of the device name 201. , Manages records including polling 204 indicating whether the device with device name 201 supports SNMP polling, and trap 205 indicating whether the device with device name 201 supports SNMP traps. To do. The additional device table 102 has the same configuration as the device information table 200.

ファイル読み込み部20は、下記の機器情報ファイル103を、機器情報テーブル200に読み込む。 The file reading unit 20 reads the following device information file 103 into the device information table 200.

PING調査部21は、アドレス調査範囲設定ファイル101に予め設定されている各セグメント(図1参照)の範囲内のアドレスに対してPINGを送信し、PING応答(ICMP)を返してきたアドレスを、PING調査テーブル300に登録する。なお、PING調査部21の処理の詳細は、後に図4のフローチャートを用いて説明する。また、PING調査テーブル300の詳細は、後に実施の形態2で図6を用いて説明する(図6参照)。 The PING investigation unit 21 transmits a PING to an address within the range of each segment (see FIG. 1) preset in the address investigation range setting file 101, and sends a PING response (ICMP) to the address returned. Register in the PING survey table 300. The details of the processing of the PING investigation unit 21 will be described later with reference to the flowchart of FIG. The details of the PING survey table 300 will be described later with reference to FIG. 6 in the second embodiment (see FIG. 6).

機器調査部22は、PING調査テーブル300に登録されたアドレス301の機器の種別を特定する。また、機器調査部22は、前回の機器情報ファイルには記録されていない機器を新たに検出した場合、その新たに検出した機器を、追加機器テーブル102に登録する。なお、機器調査部22の処理の詳細は、後に図4のフローチャートを用いて説明する。 The device survey unit 22 specifies the type of device at the address 301 registered in the PING survey table 300. Further, when the device investigation unit 22 newly detects a device that is not recorded in the previous device information file, the device investigation unit 22 registers the newly detected device in the additional device table 102. The details of the processing of the device investigation unit 22 will be described later with reference to the flowchart of FIG.

機器情報ファイル生成部23は、機器情報テーブル200及び追加機器テーブル102に登録されている機器情報を合わせて機器情報ファイル103として出力する。 The device information file generation unit 23 together outputs the device information registered in the device information table 200 and the additional device table 102 as the device information file 103.

<フローチャート>
次に、図4のフローチャートを用いて、機器情報ファイル103を出力するまでの処理の流れを説明する。
<Flowchart>
Next, the flow of processing until the device information file 103 is output will be described with reference to the flowchart of FIG.

まず、ファイル読み込み部20は、前回の機器情報ファイル103を機器情報テーブル200に読み込む(ST100)。 First, the file reading unit 20 reads the previous device information file 103 into the device information table 200 (ST100).

次に、PING調査部21は、アドレス調査範囲設定ファイル101に予め設定されている各セグメント範囲内のアドレスに対して、ICMPに係るエコー要求(PING要求)を送信する(ST101)。このとき、PING調査部21は、ST101に要する処理時間を短縮するために、マルチスレッド処理で各アドレスに対してエコー要求を送信する。 Next, the PING investigation unit 21 transmits an echo request (PING request) related to ICMP to an address within each segment range preset in the address investigation range setting file 101 (ST101). At this time, the PING investigation unit 21 transmits an echo request to each address by multithread processing in order to shorten the processing time required for ST101.

次に、PING調査部21は、ST101でPINGを送信した各アドレスについて、下記のST102からST110の処理(以下「LOOP1」と呼ぶ)を実行する。なお、LOOP1の説明において、処理対象のアドレスを「対象アドレス」と呼ぶ。 Next, the PING investigation unit 21 executes the following processes from ST102 to ST110 (hereinafter referred to as “LOOP1”) for each address to which PING is transmitted in ST101. In the description of LOOP1, the address to be processed is referred to as a "target address".

PING調査部21は、対象アドレスからICMPに係るエコー応答があったか否かを判定する(ST102)。ST102の判定結果が「NO」の場合、PING調査部21は、処理を次回のLOOP1に進める。 The PING investigation unit 21 determines whether or not there is an echo response related to ICMP from the target address (ST102). If the determination result of ST102 is "NO", the PING investigation unit 21 advances the process to the next LOOP1.

ST102の判定結果が「YES」の場合、機器調査部(SNMPマネージャ)22は、対象アドレスに対して、MIB(Management Information Base)ツリーにおける機器情報に対応するOID(ObjectID)を指定して、SNMPに従うGetRequestメッセージを送信する(ST103)。 When the determination result of ST102 is "YES", the device investigation unit (SNMP manager) 22 specifies the OID (ObjectID) corresponding to the device information in the MIB (Management Information Base) tree for the target address, and specifies the SNMP. Send a GetRequest message according to (ST103).

次に、機器調査部22は、ST103のGetRequestメッセージに対して対象アドレスの機器から返された機器情報を用いて、対象アドレスの機器(「対象機器」と呼ぶ)の種別を判定する(ST104)。なお、機器情報には、機器情報テーブル200の項目201乃至205に対応する情報が含まれている。 Next, the device investigation unit 22 determines the type of the device at the target address (referred to as “target device”) by using the device information returned from the device at the target address in response to the GetRequest message of ST103 (ST104). .. The device information includes information corresponding to items 201 to 205 of the device information table 200.

(A1)以下、機器調査部22が、機器情報の受信に成功し、当該機器情報によるST104の判定結果が「ルータ、プリンタ又はHUB」の場合について説明する。 (A1) Hereinafter, a case where the device investigation unit 22 succeeds in receiving the device information and the determination result of ST104 based on the device information is “router, printer or HUB” will be described.

機器調査部22は、対象機器が、機器情報テーブル200に未登録であるか(つまり、新たに検出された機器であるか)否かを判定する(ST105)。ST105の判定結果が「NO」の場合、機器調査部22は、処理を次回のLOOP1に進める。ST105の判定結果が「YES」の場合、機器調査部22は、対象機器の機器情報を追加機器テーブル102に追加し(ST106)、処理を次回のLOOP1に進める。 The device investigation unit 22 determines whether or not the target device is not registered in the device information table 200 (that is, is a newly detected device) (ST105). If the determination result of ST105 is "NO", the equipment investigation unit 22 advances the processing to the next LOOP1. When the determination result of ST105 is "YES", the device investigation unit 22 adds the device information of the target device to the additional device table 102 (ST106), and proceeds to the next LOOP1.

(A2)以下、機器調査部22が、機器情報の受信に失敗、又は、受信した機器情報によるST104の判定結果が「不明」である場合について説明する。 (A2) Hereinafter, a case where the device investigation unit 22 fails to receive the device information or the determination result of ST104 based on the received device information is “unknown” will be described.

機器調査部22は、対象アドレスに対して、エージェント向けの機器情報の取得コマンドを送信する(ST107)。ここで、エージェントは、PCで稼働する所定のプログラムであって、当該機器情報の取得コマンドを受信した場合、自己のPCが保持する各種情報を返す。次に、機器調査部22は、ST107で送信したエージェント向け取得コマンドに対する応答情報を用いて、対象機器の種別を判定する(ST108)。 The device investigation unit 22 transmits a command for acquiring device information for the agent to the target address (ST107). Here, the agent is a predetermined program running on a PC, and when it receives a command to acquire the device information, it returns various information held by its own PC. Next, the device investigation unit 22 determines the type of the target device by using the response information to the acquisition command for the agent transmitted in ST107 (ST108).

(B1)以下、機器調査部22が、エージェント向け取得コマンドに対する応答情報の受信に成功し、当該応答情報によるST108の判定結果が「サーバ又はクライアント」である場合について説明する。 (B1) Hereinafter, a case where the device investigation unit 22 succeeds in receiving the response information for the acquisition command for the agent and the determination result of ST108 based on the response information is “server or client” will be described.

機器調査部22は、対象機器が、機器情報テーブル200に未登録であるか(つまり、新たに検出された機器であるか)否かを判定する(ST109)。ST109の判定結果が「NO」の場合、機器調査部22は、処理を次回のLOOP1に進める。ST109の判定結果が「YES」の場合、機器調査部22は、対象機器の機器情報を、追加機器テーブル102に追加し(ST110)、処理を次回のLOOP1に進める。 The device investigation unit 22 determines whether or not the target device is not registered in the device information table 200 (that is, is a newly detected device) (ST109). If the determination result of ST109 is "NO", the equipment investigation unit 22 advances the processing to the next LOOP1. When the determination result of ST109 is "YES", the device investigation unit 22 adds the device information of the target device to the additional device table 102 (ST110), and proceeds to the next LOOP1.

(B2)以下、機器調査部22が、エージェント向け取得コマンドに対する応答情報の受信に失敗、又は、受信した応答情報によるST108の判定結果が「不明」である場合について説明する。この場合、機器調査部22は、処理を次回のLOOP1に進める。 (B2) Hereinafter, a case where the device investigation unit 22 fails to receive the response information for the acquisition command for the agent, or the determination result of ST108 based on the received response information is “unknown” will be described. In this case, the equipment investigation unit 22 advances the processing to the next LOOP1.

LOOP1の処理が全て完了した後、機器情報ファイル生成部23は、追加機器テーブル102にレコードが登録されているか否かを判定する(ST111)。ST111の判定結果が「NO」の場合、機器情報ファイル生成部23は、機器情報テーブル200の内容を、機器情報ファイル103として出力し(ST113)、本処理を終了する。ST111の判定結果が「YES」の場合、機器情報ファイル生成部23は、追加機器テーブル102のレコードを、機器情報テーブル200に追加してから(ST112)、機器情報テーブル200の内容を、機器情報ファイル103として出力し(ST113)、本処理を終了する。 After all the processing of LOOP1 is completed, the device information file generation unit 23 determines whether or not a record is registered in the additional device table 102 (ST111). When the determination result of ST111 is "NO", the device information file generation unit 23 outputs the contents of the device information table 200 as the device information file 103 (ST113), and ends this process. When the determination result of ST111 is "YES", the device information file generation unit 23 adds the record of the additional device table 102 to the device information table 200 (ST112), and then adds the contents of the device information table 200 to the device information. It is output as a file 103 (ST113), and this process is terminated.

<効果>
上記の処理により、ネットワーク構成調査装置10は、ネットワークに接続されている機器を自動的に検出し、その検出した機器の各種情報(機器名201、機器種別202、アドレス203等)を、機器情報ファイル103に出力することができる。
<Effect>
By the above processing, the network configuration investigation device 10 automatically detects the device connected to the network, and provides various information (device name 201, device type 202, address 203, etc.) of the detected device to the device information. It can be output to file 103.

(実施の形態2)
<概要>
実施の形態2では、実施の形態1で説明した処理により出力された機器情報ファイル103を用いて、ネットワークの構成を調査し、ネットワーク構成情報ファイルを出力する。具体的には、図1に示すネットワーク構成の場合、ネットワーク構成調査装置10は、Router1の上位がインターネットに接続しており、Router1の下位にGateway1が接続されており、Gateway1の下位にClient1、Server1、Printer1、Printer2、Gateway2、Router2が接続されており、Gateway2の下位にClient2が接続されており、Router2の下位にClinent3が接続されている、ことを示すネットワーク構成情報ファイルを出力する。以下、詳細に説明する。なお、図1にはHUBが記載されていないが、ネットワーク上にはHUBが配置されていてもよい。
(Embodiment 2)
<Overview>
In the second embodiment, the network configuration is investigated using the device information file 103 output by the process described in the first embodiment, and the network configuration information file is output. Specifically, in the case of the network configuration shown in FIG. 1, in the network configuration investigation device 10, the upper part of Route1 is connected to the Internet, Gateway1 is connected to the lower part of Route1, and Client1 and Service1 are connected to the lower part of Gateway1. , Internet1, Printer2, Gateway2, and Route2 are connected, Client2 is connected below Gateway2, and Clinent3 is connected below Router2, and a network configuration information file indicating that the network configuration information file is output is output. Hereinafter, a detailed description will be given. Although HUB is not shown in FIG. 1, HUB may be arranged on the network.

ネットワーク構成調査装置10は、図5に示すように、図2に示す機能20、21、22、23及びデータ101、102、103、200、300に加えて、ネットワーク調査部32と、HUB調査部33と、ネットワーク構成情報生成部34と、GW情報テーブル340と、ルータ情報テーブル360と、HUB情報テーブル380と、監視対象機器テーブル400と、非監視対象機器テーブル420とを備え、ネットワーク構成情報ファイル500を出力する。まず、各データ300、320、340、380、400、420、500について説明し、次に、各機能32、33、34ついて説明する。 As shown in FIG. 5, the network configuration investigation device 10 includes the network investigation unit 32 and the HUB investigation unit in addition to the functions 20, 21, 22, 23 and the data 101, 102, 103, 200, 300 shown in FIG. A network configuration information file including 33, a network configuration information generation unit 34, a GW information table 340, a router information table 360, a HUB information table 380, a monitored device table 400, and a non-monitored device table 420. Output 500. First, each data 300, 320, 340, 380, 400, 420, 500 will be described, and then each function 32, 33, 34 will be described.

<データ>
次に、図6を用いて、PING調査テーブル300について説明する。PING調査テーブル300は、エコー応答を返してきたアドレス301と、アドレス301の機器が監視対象か否かを示す監視対象フラグ302と、アドレス301の機器のMACアドレス303と、を含むレコードを管理する。監視対象フラグ302は、例えば、「0」が監視対象、「1」が非監視対象、「2」が監視対象のGWであることを示す。
<Data>
Next, the PING survey table 300 will be described with reference to FIG. The PING investigation table 300 manages a record including the address 301 that returned the echo response, the monitoring target flag 302 indicating whether or not the device at the address 301 is the monitoring target, and the MAC address 303 of the device at the address 301. .. The monitoring target flag 302 indicates, for example, that "0" is a monitoring target, "1" is a non-monitoring target, and "2" is a monitoring target GW.

次に、図7を用いて、ルーティング情報テーブル320について説明する。ルーティング情報テーブル320は、宛先321と、宛先321に対するサブネットマスク322と、宛先321におけるGWアドレス323と、GWアドレス323に係る処理が確定したか否かを示すGW確定フラグ324と、を含むレコードを管理する。GW確定フラグ324は、例えば、「0」が未確定、「1」が確定済みであることを示す。 Next, the routing information table 320 will be described with reference to FIG. 7. The routing information table 320 contains a record including a destination 321 and a subnet mask 322 for the destination 321, a GW address 323 at the destination 321 and a GW confirmation flag 324 indicating whether or not the processing related to the GW address 323 is confirmed. to manage. The GW confirmation flag 324 indicates, for example, that "0" is unconfirmed and "1" is confirmed.

次に、図8を用いて、GW情報テーブル340を説明する。GW情報テーブル340は、GWの機器名341と、機器名341のGWに設定されている1又は2以上のアドレス342a、342bと、を含むレコードを管理する。GW情報テーブル340は、後述のルータ情報テーブル360を作成する際に用いられる。 Next, the GW information table 340 will be described with reference to FIG. The GW information table 340 manages a record including the device name 341 of the GW and one or more addresses 342a and 342b set in the GW of the device name 341. The GW information table 340 is used when creating the router information table 360 described later.

次に、図9を用いて、ルータ情報テーブル360を説明する。ルータ情報テーブル360は、ルータの機器名361と、機器名361のルータアドレス362と、機器名361に設定されている上位アドレス363及び下位アドレス364と、機器名361に対する処理を完了したか否かを示す完了フラグ365と、を含むレコードを管理する。 Next, the router information table 360 will be described with reference to FIG. The router information table 360 shows whether or not the processing for the device name 361 of the router, the router address 362 of the device name 361, the upper address 363 and the lower address 364 set in the device name 361, and the device name 361 is completed. The completion flag 365 indicating the above and the record including the completion flag 365 are managed.

次に、図10を用いて、HUB情報テーブル380を説明する。HUB情報テーブル380は、HUBポート番号381と、HUBポート番号381に接続されている機器のMACアドレス382と、MACアドレス382を有する機器の機器名383と、を含むレコードを管理する。なお、HUB情報テーブル380は、HUB毎に生成される。 Next, the HUB information table 380 will be described with reference to FIG. The HUB information table 380 manages a record including the HUB port number 381, the MAC address 382 of the device connected to the HUB port number 381, and the device name 383 of the device having the MAC address 382. The HUB information table 380 is generated for each HUB.

次に、図11を用いて、監視対象機器テーブル400を説明する。監視対象機器テーブル400は、監視対象である機器の機器名401と、機器名401の機器の機器種別402と、機器名401の機器のアドレス403と、機器名401の機器のネットワーク構成上における起点404と、機器名401の機器の電源状態405と、を含むレコードを管理する。起点404には、機器名又はインターネット等が登録される。 Next, the monitored device table 400 will be described with reference to FIG. The monitored device table 400 is a starting point in the network configuration of the device name 401 of the device to be monitored, the device type 402 of the device name 401, the device address 403 of the device name 401, and the device name 401. A record including 404 and the power state 405 of the device with the device name 401 is managed. A device name, the Internet, or the like is registered at the starting point 404.

次に、図12を用いて、非監視対象機器テーブル420を説明する。非監視対象機器テーブル420は、非監視対象である機器の機器名421と、機器名421の機器の機器種別422と、機器名421の機器のアドレス423と、機器名421の機器のネットワーク構成上における起点424と、機器名421の機器の電源状態425と、を含むレコードを管理する。起点424には、機器名又はインターネットが登録される。 Next, the non-monitoring target device table 420 will be described with reference to FIG. The non-monitoring target device table 420 shows the device name 421 of the non-monitoring target device, the device type 422 of the device with the device name 421, the address 423 of the device with the device name 421, and the network configuration of the device with the device name 421. The record including the starting point 424 in the above and the power supply state 425 of the device with the device name 421 is managed. The device name or the Internet is registered at the starting point 424.

次に、図13を用いて、ネットワーク構成情報ファイル500を説明する。ネットワーク構成情報ファイル500は、監視対象機器テーブル400及び非監視対象機器テーブル420のレコードを結合してファイルに出力したものである。したがって、ネットワーク構成情報ファイル500の各項目501乃至505は、監視対象機器テーブル400(又は非監視対象機器テーブル420)の各項目401乃至405(又は421乃至425)と同じである。 Next, the network configuration information file 500 will be described with reference to FIG. The network configuration information file 500 is a file in which the records of the monitored device table 400 and the non-monitored device table 420 are combined and output to a file. Therefore, each item 501 to 505 of the network configuration information file 500 is the same as each item 401 to 405 (or 421 to 425) of the monitored device table 400 (or the non-monitored device table 420).

<機能>
機器調査部22は、PING調査テーブル300のアドレス301の機器が監視対象であるか否か、及び、当該機器のMACアドレスを調査し、PING調査テーブル300に登録する。なお、機器調査部22の処理の詳細は、後に図14乃至21(主に図14)のフローチャートを用いて説明する。
<Function>
The device survey unit 22 investigates whether or not the device at address 301 of the PING survey table 300 is the monitoring target and the MAC address of the device, and registers the device in the PING survey table 300. The details of the processing of the device investigation unit 22 will be described later with reference to the flowcharts of FIGS. 14 to 21 (mainly FIG. 14).

ネットワーク調査部32は、ルーティング情報テーブル320、GW情報テーブル340、及びルータ情報テーブル360を用いてネットワーク構成に関する調査を行い、その調査結果を、監視対象機器テーブル400及び非監視対象機器テーブル420に登録する。なお、ネットワーク調査部32の処理の詳細は、後に図14乃至21のフローチャートを用いて説明する。 The network investigation unit 32 investigates the network configuration using the routing information table 320, the GW information table 340, and the router information table 360, and registers the investigation results in the monitored device table 400 and the non-monitored device table 420. To do. The details of the processing of the network investigation unit 32 will be described later with reference to the flowcharts of FIGS. 14 to 21.

HUB調査部33は、ネットワークに接続されているインテリジェントHUBにSNMPメッセージ等で問い合わせて、当該HUBに接続されている各機器の調査を行い、その調査結果(HUBポート番号、MACアドレス等)を、HUB情報テーブル380に登録する。そして、HUB調査部33は、HUB情報テーブル380の内容を用いて、監視/非監視対象機器テーブル400、420の起点404、323をHUBにする機器を特定する。なお、HUB調査部33の処理の詳細は、後に図14乃至21(主に図20)のフローチャートを用いて説明する。 The HUB investigation unit 33 inquires of the intelligent HUB connected to the network by SNMP message or the like, investigates each device connected to the HUB, and obtains the investigation result (HUB port number, MAC address, etc.). Register in the HUB information table 380. Then, the HUB investigation unit 33 uses the contents of the HUB information table 380 to identify the devices whose starting points 404 and 323 of the monitored / non-monitored device tables 400 and 420 are set to HUB. The details of the processing of the HUB investigation unit 33 will be described later with reference to the flowcharts of FIGS. 14 to 21 (mainly FIG. 20).

ネットワーク構成情報生成部34は、監視対象機器テーブル400及び非監視対象機器テーブル420の両方のレコードを結合し、ネットワーク構成情報ファイル500に出力する。なお、ネットワーク構成情報生成部34の処理の詳細は、後に図14乃至21(主に図21)のフローチャートを用いて説明する。 The network configuration information generation unit 34 combines the records of both the monitored device table 400 and the non-monitored device table 420 and outputs the records to the network configuration information file 500. The details of the processing of the network configuration information generation unit 34 will be described later with reference to the flowcharts of FIGS. 14 to 21 (mainly FIG. 21).

<フローチャート>
以下、図14乃至21のフローチャートを用いて、ネットワーク構成情報ファイルを出力するまでの処理の流れを説明する。
<Flowchart>
Hereinafter, the flow of processing until the network configuration information file is output will be described with reference to the flowcharts of FIGS. 14 to 21.

まず、図14に示す処理について説明する。 First, the process shown in FIG. 14 will be described.

ファイル読み込み部20は、機器情報ファイル103(図2参照)に記録されている機器のうち、監視対象機器の情報を、監視対象機器テーブル400に読み込み、非監視対象機器(例えば、機器種別がGW又は不明の機器)の情報を、非監視対象機器テーブル420に読み込む(ST301)。 The file reading unit 20 reads the information of the monitored device among the devices recorded in the device information file 103 (see FIG. 2) into the monitored device table 400, and the non-monitored device (for example, the device type is GW). Or the information of the unknown device) is read into the non-monitored device table 420 (ST301).

次に、ファイル読み込み部20は、機器情報ファイル103に記録されている機器のうち、機器種別「ルータ」の機器名及びアドレスを、ルータ情報テーブル360に読み込む(ST302)。 Next, the file reading unit 20 reads the device name and address of the device type "router" among the devices recorded in the device information file 103 into the router information table 360 (ST302).

次に、PING調査部21は、アドレス調査範囲設定ファイル101(図2参照)に予め設定されている各セグメント範囲内のアドレスに対して、エコー要求(PING要求)を送信する(ST303)。このとき、PING調査部21は、ST303に要する処理時間を短縮するために、マルチスレッド処理で各アドレスに対してエコー要求を送信する。 Next, the PING investigation unit 21 transmits an echo request (PING request) to an address within each segment range preset in the address investigation range setting file 101 (see FIG. 2) (ST303). At this time, the PING investigation unit 21 transmits an echo request to each address by multithread processing in order to shorten the processing time required for ST303.

次に、PING調査部21は、エコー応答を返してきたアドレスを、PING調査テーブル300に登録する(ST304)。このとき、機器調査部22は、PING調査テーブル300において、アドレス301の機器が監視対象である場合、監視対象フラグ302に「0」を、アドレス301の機器が非監視対象である場合、監視対象フラグ302に「1」を登録する。 Next, the PING investigation unit 21 registers the address that returned the echo response in the PING investigation table 300 (ST304). At this time, in the PING investigation table 300, the device investigation unit 22 sets the monitoring target flag 302 to "0" when the device at the address 301 is the monitoring target, and monitors the device at the address 301 when the device is the non-monitoring target. Register "1" in the flag 302.

次に、ネットワーク構成調査装置10は、PING調査テーブル300に登録された各アドレス301に対して、以下のST305からST310の処理(「LOOP2」と呼ぶ)を実行する。なお、LOOP2の説明において、PING調査テーブル300の処理対象のアドレス301を「対象アドレス」と呼ぶ。 Next, the network configuration survey device 10 executes the following processes from ST305 to ST310 (referred to as "LOOP2") for each address 301 registered in the PING survey table 300. In the description of LOOP2, the processing target address 301 of the PING search table 300 is referred to as a “target address”.

次に、機器調査部22は、対象アドレスの機器のMACアドレスを調査し、PING調査テーブル300に登録する(ST305)。 Next, the device investigation unit 22 investigates the MAC address of the device of the target address and registers it in the PING investigation table 300 (ST305).

次に、ネットワーク調査部32は、対象アドレスの機器(「対象機器」と呼ぶ)が監視対象であり、かつ、対象機器の機器種別が「PC」であるか否かを判定する(ST306)。ST306の判定結果が「NO」の場合、ネットワーク調査部32は、処理を次回のLOOP2に進める。 Next, the network investigation unit 32 determines whether or not the device at the target address (referred to as the “target device”) is the monitoring target and the device type of the target device is “PC” (ST306). If the determination result of ST306 is "NO", the network investigation unit 32 advances the process to the next LOOP2.

ST306の判定結果が「YES」の場合、ネットワーク調査部32は、エージェント向けのルーティング情報の取得コマンドを、対象機器(つまりPC)に送信する(ST307)。 When the determination result of ST306 is "YES", the network investigation unit 32 transmits a command for acquiring routing information for the agent to the target device (that is, a PC) (ST307).

ネットワーク調査部32は、ST307の取得コマンドに対する応答の受信に成功したか否かを判定する(ST308)。 The network investigation unit 32 determines whether or not the response to the acquisition command of ST307 has been successfully received (ST308).

ST308の判定結果が「YES」の場合、ネットワーク調査部32は、その応答によって取得したルーティング情報の内容を、ルーティング情報テーブル320の宛先321、サブネットマスク322、GWアドレス323に登録する。また、ネットワーク調査部32は、GW確定フラグ324に「0」を登録する(ST309)。そして、ネットワーク調査部32は、処理を次回のLOOP2に進める。 When the determination result of ST308 is "YES", the network investigation unit 32 registers the contents of the routing information acquired by the response in the destination 321 of the routing information table 320, the subnet mask 322, and the GW address 323. Further, the network investigation unit 32 registers "0" in the GW confirmation flag 324 (ST309). Then, the network investigation unit 32 advances the processing to the next LOOP2.

ST308の判定結果が「NO」の場合、ネットワーク調査部32は、対象機器の情報を、監視対象機器テーブル400の機器名401、機器種別402、アドレス403に登録する。また、ネットワーク調査部32は、電源状態405に「OFF」を登録する(ST310)。そして、ネットワーク調査部32は、処理を次回のLOOP2に進める。 When the determination result of ST308 is "NO", the network investigation unit 32 registers the information of the target device in the device name 401, device type 402, and address 403 of the monitored device table 400. Further, the network investigation unit 32 registers "OFF" in the power supply state 405 (ST310). Then, the network investigation unit 32 advances the processing to the next LOOP2.

LOOP2の処理が全て完了した後、ネットワーク調査部32は、非監視対象機器テーブル420から、PING調査テーブル300に未登録であるアドレス423のレコードを削除する(ST311)。そして、ネットワーク構成調査装置10は、処理を図15に示す「A」に進める。 After all the processing of LOOP2 is completed, the network investigation unit 32 deletes the record of the address 423 that is not registered in the PING investigation table 300 from the non-monitoring target device table 420 (ST311). Then, the network configuration investigation device 10 advances the process to "A" shown in FIG.

次に、図15を用いて、図14の処理の続きを説明する。 Next, the continuation of the process of FIG. 14 will be described with reference to FIG.

ネットワーク調査部32は、ルーティング情報テーブル320に登録されている各レコードに対して、以下のST321からST3341の処理(「LOOP3」と呼ぶ)を実行する。なお、LOOP3の説明において、ルーティング情報テーブル320の処理対象のレコードを「対象レコード」と呼ぶ。 The network investigation unit 32 executes the following processes from ST321 to ST3341 (referred to as “LOOP3”) for each record registered in the routing information table 320. In the description of LOOP3, the record to be processed in the routing information table 320 is referred to as a "target record".

ネットワーク調査部32は、対象レコードの宛先321が「0.0.0.0」であるか否かを判定する(ST321)。 The network investigation unit 32 determines whether or not the destination 321 of the target record is "0.0.0.0" (ST321).

(C1)以下、ST321の判定結果が「YES」の場合の処理を説明する。 (C1) Hereinafter, processing when the determination result of ST321 is “YES” will be described.

ネットワーク調査部32は、対象レコードのGWアドレス323が、自己のネットワーク構成調査装置10と同じセグメントに属しているか否かを判定する(ST322)。ST322の判定結果が「NO」の場合、ネットワーク調査部32は、ルーティング情報テーブル320から対象レコードを削除し(ST323)、処理をST340へ進める。 The network investigation unit 32 determines whether or not the GW address 323 of the target record belongs to the same segment as its own network configuration investigation device 10 (ST322). When the determination result of ST322 is "NO", the network investigation unit 32 deletes the target record from the routing information table 320 (ST323), and proceeds to the process to ST340.

ST322の判定結果が「YES」の場合、ネットワーク調査部32は、ルータ情報テーブル360の機器名361及び下位アドレス364に対して、それぞれ、対象レコードのGWアドレス323に対応する機器名、及び、GWアドレス323を登録する。また、ネットワーク調査部32は、対象レコードのGWアドレス323と同一であるPING調査テーブル300のアドレス301を特定し、その特定したアドレス301に対応付けられている監視対象フラグ302を「2」に変更する。また、ネットワーク調査部32は、対象レコードのGW確定フラグ324を「1」に変更する(ST324)。そして、ネットワーク調査部32は、処理をST340へ進める。 When the determination result of ST322 is "YES", the network investigation unit 32 sets the device name corresponding to the GW address 323 of the target record and the GW for the device name 361 and the lower address 364 of the router information table 360, respectively. Register the address 323. Further, the network investigation unit 32 identifies the address 301 of the PING investigation table 300 which is the same as the GW address 323 of the target record, and changes the monitoring target flag 302 associated with the specified address 301 to "2". To do. Further, the network investigation unit 32 changes the GW confirmation flag 324 of the target record to "1" (ST324). Then, the network investigation unit 32 advances the processing to ST340.

(C2)以下、ST321の判定結果が「NO」の場合の処理を説明する。 (C2) Hereinafter, processing when the determination result of ST321 is "NO" will be described.

ネットワーク調査部32は、ルーティング情報テーブル320において、宛先321が対象レコードの宛先321と同じセグメントであり、かつ、GW確定フラグ324が「0」である他のレコードが存在する場合、当該他のレコード及び対象レコード(「同一セグメントのレコード」と呼ぶ)のGW確定フラグ324を「1」に変更する(ST331)。 In the routing information table 320, when the destination 321 is the same segment as the destination 321 of the target record and there is another record in which the GW confirmation flag 324 is "0", the network investigation unit 32 determines the other record. And the GW confirmation flag 324 of the target record (referred to as "record of the same segment") is changed to "1" (ST331).

次に、ネットワーク調査部32は、同一セグメントのレコードが、ルータ情報テーブル360に登録されているか否かを判定する(ST332)。ST332の判定結果が「YES」の場合、ネットワーク調査部32は、処理を次回のLOOP3に進める。 Next, the network investigation unit 32 determines whether or not the record of the same segment is registered in the router information table 360 (ST332). If the determination result of ST332 is "YES", the network investigation unit 32 advances the process to the next LOOP3.

ST332の判定結果が「NO」の場合、ネットワーク調査部32は、ルータ情報テーブル360の機器名361に、対象レコードのGWアドレス323の機器名を登録する。また、ネットワーク調査部32は、対象レコードのGWアドレス323に一致するPING調査テーブル300のアドレス301を特定し、その特定したアドレス301に対応付けられている監視対象フラグを「2」に変更する。また、ネットワーク調査部32は、対象レコードのGWアドレス323の機器名及びGWアドレス323を、GW情報テーブル340の機器名341及びアドレス342に登録する(ST333)。そして、ネットワーク調査部32は、処理をST340へ進める。 When the determination result of ST332 is "NO", the network investigation unit 32 registers the device name of the GW address 323 of the target record in the device name 361 of the router information table 360. Further, the network investigation unit 32 identifies the address 301 of the PING investigation table 300 that matches the GW address 323 of the target record, and changes the monitoring target flag associated with the specified address 301 to "2". Further, the network investigation unit 32 registers the device name and the GW address 323 of the GW address 323 of the target record in the device name 341 and the address 342 of the GW information table 340 (ST333). Then, the network investigation unit 32 advances the processing to ST340.

(C3)以下、ST340以降の処理を説明する。 (C3) Hereinafter, the processing after ST340 will be described.

ネットワーク調査部32は、対象レコードのGWアドレス323が、PING調査テーブル300のアドレス301に存在するか否かを判定する(ST340)。ST340の判定結果が「YES」の場合、ネットワーク調査部32は、処理を次回のLOOP3に進める。 The network investigation unit 32 determines whether or not the GW address 323 of the target record exists at the address 301 of the PING investigation table 300 (ST340). If the determination result of ST340 is "YES", the network investigation unit 32 proceeds to the next LOOP3.

ST340の判定結果が「NO」の場合、ネットワーク調査部32は、対象レコードのGWアドレス323に対応する機器名、当該機器名の機器の機器種別、及びGWアドレス323を、非監視対象機器テーブル420の機器名421、機器種別422、及びアドレス423に登録する(ST341)。そして、ネットワーク調査部32は、処理を次回のLOOP3に進める。 When the determination result of ST340 is "NO", the network investigation unit 32 sets the device name corresponding to the GW address 323 of the target record, the device type of the device with the device name, and the GW address 323 to the non-monitoring target device table 420. It is registered in the device name 421, the device type 422, and the address 423 (ST341). Then, the network investigation unit 32 advances the processing to the next LOOP3.

LOOP3の処理が全て完了した後、ネットワーク調査部32は、処理を図16に示す「B」に進める。 After all the processing of LOOP3 is completed, the network investigation unit 32 advances the processing to "B" shown in FIG.

次に、図16を用いて、図15の処理の続きを説明する。 Next, the continuation of the process of FIG. 15 will be described with reference to FIG.

ネットワーク調査部32は、ルーティング情報テーブル320におけるGW確定フラグ324が「0」のGWアドレス323の中に、PING調査テーブル300のアドレス301と一致するものが存在するか否かを判定する(ST361)。ST361の判定結果が「NO」の場合、ネットワーク調査部32は、処理をST371へ進める。 The network investigation unit 32 determines whether or not any of the GW addresses 323 whose GW confirmation flag 324 in the routing information table 320 is "0" matches the address 301 of the PING investigation table 300 (ST361). .. If the determination result of ST361 is "NO", the network investigation unit 32 advances the process to ST371.

ST361の判定結果が「YES」の場合、ネットワーク調査部32は、ST361で一致したGWアドレス323の機器名を、ルータ情報テーブル360の機器名361に登録する。また、ネットワーク調査部32は、PING調査テーブル300において、ST361で一致したアドレス301に対応付けられている監視対象フラグを「2」に変更する。また、ネットワーク調査部32は、ST361で一致したGWアドレス323を、GW情報テーブル340のST361で一致したGWアドレス323の機器名341に対応付けられているアドレス342に登録する。また、ネットワーク調査部32は、ルーティング情報テーブル320において、ST361で一致したGWアドレス323に対応付けられているGW確定フラグ324を「1」に変更する(ST362)。そして、ネットワーク調査部32は、処理をST371へ進める。 When the determination result of ST361 is "YES", the network investigation unit 32 registers the device name of the GW address 323 that matches in ST361 in the device name 361 of the router information table 360. Further, the network investigation unit 32 changes the monitoring target flag associated with the address 301 matched in ST361 to "2" in the PING investigation table 300. Further, the network investigation unit 32 registers the GW address 323 matched in ST361 in the address 342 associated with the device name 341 of the GW address 323 matched in ST361 of the GW information table 340. Further, the network investigation unit 32 changes the GW confirmation flag 324 associated with the GW address 323 matched in ST361 to "1" in the routing information table 320 (ST362). Then, the network investigation unit 32 advances the processing to ST371.

以下、ST371以降の処理を説明する。 Hereinafter, the processing after ST371 will be described.

ネットワーク調査部32は、ルーティング情報テーブル320におけるGW確定フラグ324が「0」の宛先321の中に、PING調査テーブル300のアドレス301とセグメントが一致するものが存在するか否かを判定する(ST371)。ST371の判定結果が「NO」の場合、ネットワーク調査部32は、処理を図17に示す「C」へ進める。 The network investigation unit 32 determines whether or not there is a destination 321 whose GW confirmation flag 324 is "0" in the routing information table 320 whose segment matches the address 301 of the PING investigation table 300 (ST371). ). When the determination result of ST371 is "NO", the network investigation unit 32 advances the process to "C" shown in FIG.

ST371の判定結果が「YES」の場合、ネットワーク調査部32は、ST371で一致した宛先321に対応付けられているGWアドレス323の機器名を、ルータ情報テーブル360の機器名361に登録する。また、ネットワーク調査部32は、ST371で一致した宛先321に対応付けられているGWアドレス323の機器名、及び、GWアドレス323を、GW情報テーブル340の機器名341及びアドレス342に登録する。また、ネットワーク調査部32は、ルーティング情報テーブル320において、ST371で一致した宛先321に対応付けられているGW確定フラグ324を「1」に変更する(ST372)。そして、ネットワーク調査部32は、処理を図17に示す「C」へ進める。 When the determination result of ST371 is "YES", the network investigation unit 32 registers the device name of the GW address 323 associated with the destination 321 matched in ST371 in the device name 361 of the router information table 360. Further, the network investigation unit 32 registers the device name of the GW address 323 and the GW address 323 associated with the destination 321 matched in ST371 in the device name 341 and the address 342 of the GW information table 340. Further, the network investigation unit 32 changes the GW confirmation flag 324 associated with the destination 321 matched in ST371 to "1" in the routing information table 320 (ST372). Then, the network investigation unit 32 advances the processing to “C” shown in FIG.

次に、図17を用いて、図16の処理の続きを説明する。 Next, the continuation of the process of FIG. 16 will be described with reference to FIG.

ネットワーク調査部32は、ルータ情報テーブル360において、ルータアドレス362が、自己のネットワーク構成調査装置10と同じセグメントに属している各レコードについて、以下のST401からST412の処理(「LOOP4」と呼ぶ)を実行する。なお、LOOP4の説明において、ルータ情報テーブル360の処理対象のレコードを「対象レコード」と呼ぶ。 The network investigation unit 32 performs the following ST401 to ST412 processing (referred to as "LOOP4") for each record in which the router address 362 belongs to the same segment as its own network configuration investigation device 10 in the router information table 360. Execute. In the description of LOOP4, the record to be processed in the router information table 360 is referred to as a "target record".

ネットワーク調査部32は、対象レコードの完了フラグ365が「0」であるか否かを判定する(ST401)。ST401の判定結果が「NO」の場合、ネットワーク調査部32は、処理を次回のLOOP4に進める。ST401の判定結果が「YES」の場合、ネットワーク調査部32は、対象レコードの機器名361が「ルータ」であるか否かを判定する(ST402)。 The network investigation unit 32 determines whether or not the completion flag 365 of the target record is “0” (ST401). If the determination result of ST401 is "NO", the network investigation unit 32 proceeds to the next LOOP4. When the determination result of ST401 is "YES", the network investigation unit 32 determines whether or not the device name 361 of the target record is "router" (ST402).

(D1)以下、ST402の判定結果が「YES」の場合を説明する。 (D1) Hereinafter, the case where the determination result of ST402 is “YES” will be described.

ネットワーク調査部32は、SNMPコマンドを用いて、対象レコードのルータ(「対象ルータ」と呼ぶ)の情報を取得する(ST403)。ルータ情報には、少なくとも、対象ルータの各ネットワークインタフェースに設定されているアドレスが含まれている。 The network investigation unit 32 acquires the information of the router (referred to as “target router”) of the target record by using the SNMP command (ST403). The router information includes at least the addresses set for each network interface of the target router.

次に、ネットワーク調査部32は、ST403で取得したルータ情報に基づいて、対象ルータにインターネット側のアドレスが設定されているか否かを判定する(ST404)。例えば、ネットワーク調査部32は、図22に示すアドレス以外が設定されている場合、インターネット側のアドレスが設定されていると判定する。 Next, the network investigation unit 32 determines whether or not the address on the Internet side is set in the target router based on the router information acquired in ST403 (ST404). For example, when the address other than the address shown in FIG. 22 is set, the network investigation unit 32 determines that the address on the Internet side is set.

ST404の判定結果が「YES」の場合、ネットワーク調査部32は、対象レコードにおいて、上位アドレス363に「Internet」を、下位アドレス364にルータアドレス362を、完了フラグ365に「1」を登録する(ST405)。そして、ネットワーク調査部32は、処理を次回のLOOP4に進める。 When the determination result of ST404 is "YES", the network investigation unit 32 registers "Internet" in the upper address 363, the router address 362 in the lower address 364, and "1" in the completion flag 365 in the target record ( ST405). Then, the network investigation unit 32 advances the processing to the next LOOP4.

ST404の判定結果が「NO」の場合、ネットワーク調査部32は、対象レコードにおいて、上位アドレス363にルータアドレス362を、下位アドレス364に、ルータ情報に含まれる他セグメント側のルータアドレスを、完了フラグ365に「1」を登録する(ST406)。 When the determination result of ST404 is "NO", the network investigation unit 32 sets the router address 362 as the upper address 363 and the router address on the other segment side included in the router information as the lower address 364 in the target record as a completion flag. Register "1" in 365 (ST406).

次に、ネットワーク調査部32は、PING調査テーブル300及び非監視対象機器テーブル420から、アドレス423が、他セグメント側のルータアドレスと一致するレコードを削除する(ST407)。 Next, the network investigation unit 32 deletes a record whose address 423 matches the router address on the other segment side from the PING investigation table 300 and the non-monitoring target device table 420 (ST407).

次に、ネットワーク調査部32は、ルータ情報テーブル360に、他セグメント側のルータアドレスと同じセグメントに属するルータのレコードが存在するか否かを判定する(ST413)。ST413の判定結果が「YES」の場合、ネットワーク調査部32は、ST408で同じセグメントに属していると判定したレコードについて、ST401からの処理を実行する。ST413の判定結果が「NO」の場合、ネットワーク調査部32は、処理を次回のLOOP4へ進める。 Next, the network investigation unit 32 determines whether or not there is a record of a router belonging to the same segment as the router address on the other segment side in the router information table 360 (ST413). When the determination result of ST413 is "YES", the network investigation unit 32 executes the process from ST401 for the record determined to belong to the same segment in ST408. If the determination result of ST413 is "NO", the network investigation unit 32 advances the process to the next LOOP4.

(D2)以下、ST402の判定結果が「NO」の場合を説明する。 (D2) Hereinafter, the case where the determination result of ST402 is "NO" will be described.

ネットワーク調査部32は、GW情報テーブル340にレコードが存在するか否かを判定する(ST411)。ST411の判定結果が「NO」の場合、ネットワーク調査部32は、処理を次回のLOOP4へ進める。 The network investigation unit 32 determines whether or not a record exists in the GW information table 340 (ST411). If the determination result of ST411 is "NO", the network investigation unit 32 advances the process to the next LOOP4.

ST411の判定結果が「YES」の場合、ネットワーク調査部32は、GW情報テーブル340から、ネットワーク構成調査装置10のデフォルトGWアドレスと同じセグメントに属するアドレス342を特定し、その特定したアドレス342を対象レコードの上位アドレス363に登録する。また、ネットワーク構成調査装置10は、GW情報テーブル340において、上記で特定したアドレスに対応付けられている他方のアドレスを、対象レコードの下位アドレス364に登録する。また、ネットワーク調査部32は、対象レコードの完了フラグ365を「1」に変更する。また、ネットワーク調査部32は、上記の上位アドレス363を、非監視対象機器テーブル420の対応する機器名421のアドレス423に登録する。そして、ネットワーク調査部32は、処理を上記のST413へ進める(ST412)。 When the determination result of ST411 is "YES", the network investigation unit 32 identifies an address 342 belonging to the same segment as the default GW address of the network configuration investigation device 10 from the GW information table 340, and targets the specified address 342. Register at the upper address 363 of the record. Further, the network configuration investigation device 10 registers the other address associated with the address specified above in the GW information table 340 in the lower address 364 of the target record. Further, the network investigation unit 32 changes the completion flag 365 of the target record to "1". Further, the network investigation unit 32 registers the above-mentioned upper address 363 at the address 423 of the corresponding device name 421 in the non-monitoring target device table 420. Then, the network investigation unit 32 advances the processing to the above-mentioned ST413 (ST412).

LOOP4の処理が全て完了した後、ネットワーク調査部32は、処理を図18に示す「D」に進める。 After all the processing of LOOP4 is completed, the network investigation unit 32 advances the processing to "D" shown in FIG.

次に、図18を用いて、図17の処理の続きを説明する。 Next, the continuation of the process of FIG. 17 will be described with reference to FIG.

ネットワーク調査部32は、ルータ情報テーブル360において、完了フラグ365が「0」かつ機器名361が「GW」の各レコードについて、下記のST421からST431の処理(「LOOP5」と呼ぶ)を実行する。なお、LOOP5の説明において、ルータ情報テーブル360における処理対象のレコードを「対象レコード」と呼ぶ。また、ルータ情報テーブル360における対象レコードの機器名361を、対象機器名361と呼ぶ。 The network investigation unit 32 executes the following ST421 to ST431 processes (referred to as “LOOP5”) for each record in which the completion flag 365 is “0” and the device name 361 is “GW” in the router information table 360. In the description of LOOP5, the record to be processed in the router information table 360 is referred to as a "target record". Further, the device name 361 of the target record in the router information table 360 is referred to as the target device name 361.

ネットワーク調査部32は、ルータ情報テーブル360に、完了フラグ365「0」かつ機器名365「ルータ」のレコードが存在するか否かを判定する(ST421)。 The network investigation unit 32 determines whether or not the record of the completion flag 365 “0” and the device name 365 “router” exists in the router information table 360 (ST421).

(E1)以下、ST421の判定結果が「YES」の場合を説明する。 (E1) Hereinafter, the case where the determination result of ST421 is “YES” will be described.

ネットワーク調査部32は、ST421でルータの機器名361を、対象レコードの上位アドレス361に登録する。また、ネットワーク調査部32は、GW情報テーブル340の対象機器名361と同じ機器名341のアドレス342を、対象レコードの下位アドレス364に登録する。また、ネットワーク調査部32は、対象レコードの完了フラグ365を「1」に変更する。また、ネットワーク調査部32は、非監視対象機器テーブル420において、対象機器名361と同じ機器名421に対応付けられているアドレス423に、下位アドレス364を登録する(ST422)。そして、ネットワーク調査部32は、処理を次回のLOOP5に進める。 The network investigation unit 32 registers the device name 361 of the router in ST421 at the upper address 361 of the target record. Further, the network investigation unit 32 registers the address 342 of the device name 341, which is the same as the target device name 361 of the GW information table 340, in the lower address 364 of the target record. Further, the network investigation unit 32 changes the completion flag 365 of the target record to "1". Further, the network investigation unit 32 registers the lower address 364 at the address 423 associated with the same device name 421 as the target device name 361 in the non-monitoring target device table 420 (ST422). Then, the network investigation unit 32 advances the processing to the next LOOP 5.

(E2)以下、ST421の判定結果が「NO」の場合を説明する。 (E2) Hereinafter, the case where the determination result of ST421 is “NO” will be described.

ネットワーク調査部32は、対象機器名361と同じGW情報テーブル340の機器名341を特定し、その特定した機器名341に対応付けられているアドレス342を、下位アドレス364に登録する。また、ネットワーク調査部32は、対象レコードの完了フラグ365を「1」に変更する。また、ネットワーク調査部32は、対象機器名361と同じ非監視対象機器テーブル420の機器名421を特定し、その特定した機器名421に対応付けられているアドレス423に、下位アドレス364を登録する(ST423)。そして、ネットワーク調査部32は、処理を次回のLOOP5に進める。 The network investigation unit 32 identifies the device name 341 of the GW information table 340 which is the same as the target device name 361, and registers the address 342 associated with the specified device name 341 in the lower address 364. Further, the network investigation unit 32 changes the completion flag 365 of the target record to "1". Further, the network investigation unit 32 identifies the device name 421 of the non-monitoring target device table 420 which is the same as the target device name 361, and registers the lower address 364 at the address 423 associated with the specified device name 421. (ST423). Then, the network investigation unit 32 advances the processing to the next LOOP 5.

LOOP5の処理が全て完了した後、ネットワーク調査部32は、ルータ情報テーブル360の完了フラグ365が「0」かつ機器名361が「ルータ」である各レコードについて、下記のST431の処理(「LOOP6」と呼ぶ)を実行する。なお、LOOP6の説明において、ルータ情報テーブル360における処理対象のレコードを「対象レコード」と呼ぶ。 After all the processing of LOOP5 is completed, the network investigation unit 32 processes the following ST431 (“LOOP6”” for each record in which the completion flag 365 of the router information table 360 is “0” and the device name 361 is “router”. ) Is executed. In the description of LOOP6, the record to be processed in the router information table 360 is referred to as a "target record".

ネットワーク調査部32は、対象レコードの上位アドレス363に「Internet」を登録する。また、ネットワーク調査部32は、対象レコードの下位アドレス364に、対象レコードのルータアドレス362を登録する。また、ネットワーク調査部32は、対象レコードの完了フラグ365を「1」に変更する(ST431)。そして、ネットワーク調査部32は、処理を次回のLOOP6に進める。 The network investigation unit 32 registers "Internet" at the upper address 363 of the target record. Further, the network investigation unit 32 registers the router address 362 of the target record in the lower address 364 of the target record. Further, the network investigation unit 32 changes the completion flag 365 of the target record to "1" (ST431). Then, the network investigation unit 32 advances the processing to the next LOOP6.

LOOP6の処理が全て完了した後、ネットワーク調査部32は、処理を図19に示す「E」へ進める。 After all the processing of LOOP6 is completed, the network investigation unit 32 advances the processing to "E" shown in FIG.

次に、図19を用いて、図18の処理の続きを説明する。 Next, the continuation of the process of FIG. 18 will be described with reference to FIG.

ネットワーク調査部32は、監視対象機器テーブル400及び非監視対象機器テーブル420の各レコードについて、以下のST501からST531の処理(「LOOP7」と呼ぶ)を実行する。なお、LOOP7の説明において、監視対象機器テーブル400及び非監視対象機器テーブル420における処理対象のレコードを「対象レコード」と呼ぶ。また、対象レコードの機器名401、421を「対象機器名」と呼ぶ。 The network investigation unit 32 executes the following ST501 to ST531 processes (referred to as “LOOP7”) for each record of the monitored device table 400 and the non-monitored device table 420. In the description of LOOP 7, the record to be processed in the monitored device table 400 and the non-monitored device table 420 is referred to as a “target record”. Further, the device names 401 and 421 of the target record are referred to as "target device names".

ネットワーク調査部32は、対象レコードの機器種別402、422から、対象レコードの機器の種別を判定する(ST501)。 The network investigation unit 32 determines the type of the device of the target record from the device types 402 and 422 of the target record (ST501).

(F1)以下、ST501の判定結果が「ルータ」の場合について説明する。 (F1) Hereinafter, the case where the determination result of ST501 is “router” will be described.

ネットワーク調査部32は、ルータ情報テーブル360において対象機器名401、421と同じ機器名361に対応付けられている上位アドレス363が、「Internet」であるか否かを判定する(ST502)。 The network investigation unit 32 determines whether or not the upper address 363 associated with the same device name 361 as the target device names 401 and 421 in the router information table 360 is "Internet" (ST502).

ST502の判定結果が「YES」の場合、ネットワーク調査部32は、対象レコードの起点404に「Internet」を登録する(ST503)。そして、ネットワーク調査部32は、処理を次回のLOOP7に進める。 When the determination result of ST502 is "YES", the network investigation unit 32 registers "Internet" at the starting point 404 of the target record (ST503). Then, the network investigation unit 32 advances the processing to the next LOOP 7.

ST502の判定結果が「NO」の場合、ネットワーク調査部32は、ルータ情報テーブル360から、対象機器名401、421と機器名361が一致し、かつ、対象機器名401、421のアドレス403、423とセグメントが同じ下位アドレス364を特定する。そして、ネットワーク調査部32は、その特定した下位アドレス364を、対象レコードの起点404に登録する(ST504)。そして、ネットワーク調査部32は、処理を次回のLOOP7に進める。 When the determination result of ST502 is "NO", the network investigation unit 32 finds that the target device names 401 and 421 and the device name 361 match from the router information table 360, and the addresses 403 and 423 of the target device names 401 and 421. Identifies a subordinate address 364 with the same segment as. Then, the network investigation unit 32 registers the specified lower address 364 at the starting point 404 of the target record (ST504). Then, the network investigation unit 32 advances the processing to the next LOOP 7.

(F2)以下、ST501の判定結果が「PC、プリンタ又はHUB」の場合について説明する。 (F2) Hereinafter, the case where the determination result of ST501 is “PC, printer or HUB” will be described.

ネットワーク調査部32は、ルータ情報テーブル360から、対象機器名401、421のアドレス403、423とセグメントが同じ下位アドレス364を特定する。そして、ネットワーク調査部32は、その特定した下位アドレス364を、対象レコードの起点404に登録する(ST511)。そして、ネットワーク調査部32は、処理を次回のLOOP7に進める。 From the router information table 360, the network investigation unit 32 identifies a lower address 364 having the same segment as the addresses 403 and 423 of the target device names 401 and 421. Then, the network investigation unit 32 registers the specified lower address 364 at the starting point 404 of the target record (ST511). Then, the network investigation unit 32 advances the processing to the next LOOP 7.

(F3)以下、ST501の判定結果が「GW」の場合について説明する。 (F3) Hereinafter, the case where the determination result of ST501 is “GW” will be described.

ネットワーク調査部32は、ルータ情報テーブル360の対象機器名401、402と同じ機器名361のレコードにおいて、上位アドレス363が未登録の場合、対象レコードの起点404に「Internet」を登録し、上位アドレス363がルータの機器名である場合、対象レコードの起点404に当該ルータの機器名を登録する。それ以外の場合、ネットワーク調査部32は、ルータ情報テーブル360から、上位アドレス363とセグメントが同じである下位アドレス364を特定し、その特定した下位アドレス364を、対象レコードの起点404に登録する(ST521)。そして、ネットワーク調査部32は、処理を次回のLOOP7に進める。 If the upper address 363 is not registered in the record of the same device name 361 as the target device names 401 and 402 in the router information table 360, the network investigation unit 32 registers "Internet" at the starting point 404 of the target record and registers the upper address. When 363 is the device name of the router, the device name of the router is registered at the starting point 404 of the target record. In other cases, the network investigation unit 32 identifies the lower address 364 whose segment is the same as that of the upper address 363 from the router information table 360, and registers the specified lower address 364 in the starting point 404 of the target record ( ST521). Then, the network investigation unit 32 advances the processing to the next LOOP 7.

以下、ST501の判定結果が「その他(不明)」の場合について説明する。 Hereinafter, the case where the determination result of ST501 is “other (unknown)” will be described.

ネットワーク調査部32は、ルータ情報テーブル360から、対象機器名401、421のアドレス403、423とセグメントが同じ下位アドレス364を特定できた場合、その特定した下位アドレス364を、対象レコードの起点404に登録する。 When the network investigation unit 32 can identify the lower address 364 whose segment is the same as the addresses 403 and 423 of the target device names 401 and 421 from the router information table 360, the specified lower address 364 is set as the starting point 404 of the target record. sign up.

一方、上記の特定ができなかった場合、ネットワーク調査部32は、ルーティング情報テーブル320から、対象機器名401、421のアドレス403、423とセグメントが同じ宛先321を特定し、非監視対象機器テーブル420から、その特定した宛先321と一致するアドレス423に対応付けられている機器名421を特定する。そして、ネットワーク調査部32は、その特定した機器名421を、対象レコードの起点404に登録する(ST531)。そして、ネットワーク調査部32は、処理を次回のLOOP7に進める。 On the other hand, when the above cannot be specified, the network investigation unit 32 identifies the destination 321 having the same segment as the addresses 403 and 423 of the target device names 401 and 421 from the routing information table 320, and the non-monitoring target device table 420. Therefore, the device name 421 associated with the address 423 that matches the specified destination 321 is specified. Then, the network investigation unit 32 registers the specified device name 421 at the starting point 404 of the target record (ST531). Then, the network investigation unit 32 advances the processing to the next LOOP 7.

LOOP7の処理が全て完了した後、ネットワーク構成調査装置10は、処理を図20に示す「F」に進める。 After all the processing of LOOP7 is completed, the network configuration investigation device 10 advances the processing to "F" shown in FIG.

次に、図20を用いて、図19の処理の続きを説明する。 Next, the continuation of the process of FIG. 19 will be described with reference to FIG.

HUB調査部33は、ネットワーク上の各インテリジェントHUBについて、下記のST601からST603の処理(「LOOP8」と呼ぶ)を実行する。なお、LOOP8の説明において、処理対象のインテリジェントHUBを「対象HUB」と呼ぶ。 The HUB investigation unit 33 executes the following ST601 to ST603 processes (referred to as "LOOP8") for each intelligent HUB on the network. In the description of LOOP8, the intelligent HUB to be processed is referred to as "target HUB".

HUB調査部33は、対象HUBから、各HUBポート番号、及び、そのHUBポート番号に接続されている機器のMACアドレスを取得し、HUB情報テーブル380のHUBポート番号381及びMACアドレス382に登録する(ST601)。 The HUB investigation unit 33 acquires each HUB port number and the MAC address of the device connected to the HUB port number from the target HUB, and registers them in the HUB port number 381 and the MAC address 382 of the HUB information table 380. (ST601).

次に、HUB調査部33は、MACアドレス382と一致するPING調査テーブル300のMACアドレス303を特定し、その特定したMACアドレス303に対応付けられているアドレス301を特定する。そして、HUB調査部33は、その特定したアドレス301と一致する監視/非監視対象機器テーブル400、420のアドレス403、423を特定し、その特定したアドレス403、423に対応付けられている機器名401、421を特定する。そして、HUB調査部33は、その特定した機器名401、421を、HUB情報テーブル380の機器名383に登録する(ST602)。 Next, the HUB investigation unit 33 identifies the MAC address 303 of the PING investigation table 300 that matches the MAC address 382, and identifies the address 301 associated with the identified MAC address 303. Then, the HUB investigation unit 33 identifies the addresses 403 and 423 of the monitored / non-monitored target device tables 400 and 420 that match the specified address 301, and the device name associated with the specified address 403 and 423. Identify 401 and 421. Then, the HUB investigation unit 33 registers the specified device names 401 and 421 in the device name 383 of the HUB information table 380 (ST602).

次に、HUB調査部33は、HUB情報テーブル380から、対象HUBに対する起点404の機器と同じ機器名383のレコードを削除する。また、HUB調査部33は、その削除したレコードのHUBポート番号381と同じHUBポート番号381の他のレコードを、HUB情報テーブル380から削除する(ST603)。そして、HUB調査部33は、処理を次回のLOOP8へ進める。 Next, the HUB investigation unit 33 deletes the record of the same device name 383 as the device of the starting point 404 for the target HUB from the HUB information table 380. Further, the HUB investigation unit 33 deletes another record having the same HUB port number 381 as the HUB port number 381 of the deleted record from the HUB information table 380 (ST603). Then, the HUB investigation unit 33 advances the processing to the next LOOP 8.

LOOP8の処理が全て完了した後、HUB調査部33は、HUBが複数存在しているか否かを判定する(ST610)。 After all the processing of LOOP8 is completed, the HUB investigation unit 33 determines whether or not a plurality of HUBs exist (ST610).

ST610の判定結果が「NO」の場合、HUB調査部33は、監視/非監視対象機器テーブル400の機器名401、421が、HUB情報テーブル380の機器名383と一致するレコードの起点404、424を、「HUB」とする。そして、HUB調査部33は、処理を図21の「G」に進める(ST611)。 When the determination result of ST610 is "NO", the HUB investigation unit 33 determines that the device names 401 and 421 of the monitored / non-monitored device table 400 match the device names 383 of the HUB information table 380, and the starting points 404 and 424 of the records. Let be "HUB". Then, the HUB investigation unit 33 advances the processing to “G” in FIG. 21 (ST611).

ST610の判定結果が「YES」の場合、HUB調査部33は、各HUB情報テーブル380について、登録されているレコードの多い順に、下記のST612の処理(「LOOP9」と呼ぶ)を実行する。なお、LOOP9の説明において、処理対象のHUB情報テーブル380を「対象HUB情報テーブル」と呼ぶ。 When the determination result of ST610 is "YES", the HUB investigation unit 33 executes the following ST612 processing (referred to as "LOOP9") for each HUB information table 380 in descending order of the number of registered records. In the description of LOOP 9, the HUB information table 380 to be processed is referred to as a "target HUB information table".

HUB調査部33は、監視/非監視対象機器テーブル400、420の機器名401、421が、対象HUB情報テーブル380の機器名383と一致するレコードの起点を、当該対象HUB情報テーブルに対応する「HUB」とする。そして、HUB調査部33は、処理を次回のLOOP9に進める(ST612)。 The HUB investigation unit 33 sets the starting point of the record in which the device names 401 and 421 of the monitored / non-monitored device tables 400 and 420 match the device name 383 of the target HUB information table 380 to correspond to the target HUB information table. HUB ". Then, the HUB investigation unit 33 advances the processing to the next LOOP 9 (ST612).

LOOP9の処理が全て完了した後、ネットワーク構成調査装置10は、処理を図21の「G」に進める。 After all the processing of LOOP 9 is completed, the network configuration investigation device 10 advances the processing to "G" in FIG.

次に、図21を用いて、図20の処理の続きを説明する。 Next, the continuation of the process of FIG. 20 will be described with reference to FIG.

ネットワーク構成情報生成部34は、監視/非監視対象機器テーブル400、420のすべてのレコードにおいて、起点404、424が登録されているか否かを判定する(ST621)。 The network configuration information generation unit 34 determines whether or not the starting points 404 and 424 are registered in all the records of the monitored / non-monitored target device tables 400 and 420 (ST621).

ST621の判定結果が「NO」の場合、ネットワーク構成情報生成部34は、エラー応答を出力して(ST640)、本処理を終了する。 When the determination result of ST621 is "NO", the network configuration information generation unit 34 outputs an error response (ST640) and ends this process.

ST621の判定結果が「YES」の場合、ネットワーク構成情報生成部34は、機器情報ファイル103と、監視対象機器テーブル400との間で、存在する機器が異なっているか否かを判定する(ST622)。 When the determination result of ST621 is "YES", the network configuration information generation unit 34 determines whether or not the existing devices are different between the device information file 103 and the monitored device table 400 (ST622). ..

ST622の判定結果が「YES」の場合、ネットワーク構成情報生成部34は、更新フラグを「0」とし(ST623)、処理をST630へ進める。 When the determination result of ST622 is "YES", the network configuration information generation unit 34 sets the update flag to "0" (ST623) and proceeds to the process to ST630.

ST622の判定結果が「NO」の場合、ネットワーク構成情報生成部34は、前回のネットワーク構成情報ファイル500と比較して、監視対象機器テーブル400の何れかの機器の電源状態405に変化があったか、又は、非監視対象機器テーブル420において不明な機器の追加又は削除があったか否かを判定する(ST624)。 When the determination result of ST622 is "NO", the network configuration information generation unit 34 has changed the power supply state 405 of any of the devices in the monitored device table 400 as compared with the previous network configuration information file 500. Alternatively, it is determined whether or not an unknown device has been added or deleted in the non-monitored device table 420 (ST624).

ST624の判定結果が「YES」の場合、ネットワーク構成情報生成部34は、更新フラグを「1」とし(ST625)、処理をST630へ進める。 When the determination result of ST624 is "YES", the network configuration information generation unit 34 sets the update flag to "1" (ST625) and proceeds to the process to ST630.

ST624の判定結果が「NO」の場合、ネットワーク構成調査装置10は、処理をST631へ進める。 If the determination result of ST624 is "NO", the network configuration investigation device 10 advances the process to ST631.

以下、ST630以降の処理について説明する。 Hereinafter, the processing after ST630 will be described.

ネットワーク構成情報生成部34は、ST623又はST625の更新フラグと、監視対象機器テーブル400及び非監視対象機器テーブル420を、ネットワーク構成情報ファイル500として出力する(ST630)。 The network configuration information generation unit 34 outputs the update flag of ST623 or ST625, the monitored device table 400, and the non-monitored device table 420 as the network configuration information file 500 (ST630).

次に、ネットワーク構成情報生成部34は、正常応答を出力して(ST631)、本処理を終了する。 Next, the network configuration information generation unit 34 outputs a normal response (ST631), and ends this process.

<効果>
上記の処理により、ネットワーク構成調査装置10は、ネットワークに接続されている機器に関するネットワーク構成を自動的に検出し、その検出したネットワーク構成に係る情報(機器名401、421、機器種別402、422、アドレス403、424、起点404、424)を、ネットワーク構成情報500に出力することができる。
<Effect>
By the above processing, the network configuration investigation device 10 automatically detects the network configuration related to the device connected to the network, and the information related to the detected network configuration (device names 401, 421, device type 402, 422, The address 403, 424, starting point 404, 424) can be output to the network configuration information 500.

また、ネットワーク構成調査装置10は、上記のように、エージェント及び/又はインテリジェントHUB等と連携してネットワーク構成に関する情報を収集することにより、セグメントを跨ぐネットワーク構成情報を、比較的短時間で生成することができる。 Further, as described above, the network configuration investigation device 10 collects information on the network configuration in cooperation with the agent and / or the intelligent HUB, etc., to generate network configuration information across segments in a relatively short time. be able to.

以上、本発明に係る実施形態について図面を参照して詳述してきたが、上述した装置10の機能は、コンピュータプログラムにより実現され得る。 Although the embodiments according to the present invention have been described in detail with reference to the drawings, the functions of the device 10 described above can be realized by a computer program.

図23は、装置10の機能をプログラムにより実現するコンピュータのハードウェア構成を示す図である。このコンピュータ1100は、キーボードやマウス、タッチパッドなどの入力装置1101、ディスプレイやスピーカーなどの出力装置1102、CPU(Central Processing Unit)1103、ROM(Read Only Memory)1104、RAM(Random Access Memory)1105、ハードディスク装置やSSD(Solid State Drive)などの記憶装置1106、DVD−ROM(Digital Versatile Disk Read Only Memory)やUSB(Universal Serial Bus)メモリなどの記録媒体から情報を読み取る読取装置1107、ネットワークを介して通信を行う送受信装置1108を備え、各部はバス1109により接続される。 FIG. 23 is a diagram showing a hardware configuration of a computer that realizes the functions of the device 10 by a program. The computer 1100 includes an input device 1101 such as a keyboard, a mouse, and a touch pad, an output device 1102 such as a display and a speaker, a CPU (Central Processing Unit) 1103, a ROM (Read Only Memory) 1104, and a RAM (Random Access Memory) 1105. A storage device 1106 such as a hard disk device or SSD (Solid State Drive), a reading device 1107 that reads information from a recording medium such as a DVD-ROM (Digital Versatile Disk Read Only Memory) or a USB (Universal Serial Bus) memory, via a network. A transmission / reception device 1108 for communication is provided, and each unit is connected by a bus 1109.

そして、読取装置1107は、上記装置10の機能を実現するためのプログラムを記録した記録媒体からそのプログラムを読み取り、記憶装置1106に記憶させる。あるいは、送受信装置1108が、ネットワークに接続されたサーバ装置と通信を行い、サーバ装置からダウンロードした上記各装置の機能を実現するためのプログラムを記憶装置1106に記憶させる。 Then, the reading device 1107 reads the program from the recording medium on which the program for realizing the function of the device 10 is recorded, and stores the program in the storage device 1106. Alternatively, the transmission / reception device 1108 communicates with the server device connected to the network, and stores the program downloaded from the server device for realizing the function of each device in the storage device 1106.

そして、CPU1103が、記憶装置1106に記憶されたプログラムをRAM1105にコピーし、そのプログラムに含まれる命令をRAM1105から順次読み出して実行することにより、上記装置10の機能が実現される。 Then, the CPU 1103 copies the program stored in the storage device 1106 to the RAM 1105, and sequentially reads and executes the instructions included in the program from the RAM 1105, thereby realizing the function of the device 10.

本発明は、ネットワーク構成及びネットワークに接続されている各機器の状態を視覚的に提示するシステム診断装置、方法、及びプログラムに有用である。 The present invention is useful for system diagnostic devices, methods, and programs that visually present the network configuration and the status of each device connected to the network.

10 ネットワーク構成調査装置
20 ファイル読み込み部
21 PING調査部
22 機器調査部
23 機器情報ファイル生成部
32 ネットワーク調査部
33 HUB調査部
34 ネットワーク構成情報生成部
101 アドレス調査範囲設定ファイル
102 追加機器テーブル
103 機器情報ファイル
200 機器情報テーブル
300 PING調査テーブル
320 ルーティング情報テーブル
340 GW(Gateway)情報テーブル
360 ルータ情報テーブル
380 HUB情報テーブル
400 監視対象機器テーブル
420 非監視対象機器テーブル
500 ネットワーク構成情報ファイル
10 Network configuration survey device 20 File reading unit 21 PING survey unit 22 Equipment survey department 23 Device information file generation unit 32 Network survey unit 33 HUB survey unit 34 Network configuration information generation unit 101 Address survey range setting file 102 Additional device table 103 Device information File 200 Device information table 300 PING survey table 320 Routing information table 340 GW (Gateway) information table 360 Router information table 380 HUB information table 400 Monitored device table 420 Non-monitored device table 500 Network configuration information file

Claims (7)

複数の機器が接続されているネットワークの構成を調査するネットワーク構成調査装置であって、
前記ネットワーク上の各機器の種別を調査する機器調査部と、
前記種別がコンピュータである機器で稼働しているエージェント向けのルーティング情報の取得コマンドを送信し、ルーティング情報の取得に成功した場合、前記ルーティング情報の内容をルーティング情報テーブルに登録し、前記ルーティング情報テーブルに基づいて、前記複数の機器のネットワーク上の関係を示すネットワーク構成情報を生成するネットワーク調査部と、
を備えるネットワーク構成調査装置。
A network configuration survey device that surveys the configuration of a network to which multiple devices are connected.
The Equipment Investigation Department, which investigates the types of each equipment on the network,
When the acquisition command of the routing information for the agent operating in the device whose type is a computer is transmitted and the acquisition of the routing information is successful, the contents of the routing information are registered in the routing information table and the routing information table is registered. A network research unit that generates network configuration information indicating the relationship between the plurality of devices on the network based on
A network configuration survey device equipped with.
前記ネットワーク調査部は、
前記種別がルータである機器に対して、当該ルータ機器のネットワークインタフェースに係るアドレスを取得するための第1のSNMPメッセージを送信し、当該第1のSNMPメッセージによって取得したネットワークインタフェースに係るアドレスに基づいて、当該ルータ機器の上位アドレス及び下位アドレスを特定し、その特定した上位アドレス及び下位アドレスをルータ情報テーブルに登録し、前記ルータ情報テーブルに基づいて、前記ネットワーク構成情報を生成する、
請求項1に記載のネットワーク構成調査装置。
The network research department
A first SNMP message for acquiring an address related to the network interface of the router device is transmitted to a device whose type is a router, and based on the address related to the network interface acquired by the first SNMP message. The upper address and the lower address of the router device are specified, the specified upper address and the lower address are registered in the router information table, and the network configuration information is generated based on the router information table.
The network configuration investigation device according to claim 1.
所定範囲内のアドレスに対してエコー要求を送信し、エコー応答を返してきたアドレスをPING調査テーブルに登録するPING調査部、をさらに備え、
前記機器調査部は、
前記PING調査テーブルの登録アドレスに対して、機器情報を取得するための第2のSNMPメッセージを送信し、
前記機器情報の取得に成功した場合、当該機器情報に基づいて前記登録アドレスの機器の種別を特定し、
前記機器情報の取得に失敗した場合、前記登録アドレスに対してエージェント向けの機器情報の取得コマンドを送信し、当該取得コマンドによって取得した機器情報に基づいて、前記登録アドレスの機器の種別を特定する、
請求項1又は2に記載のネットワーク構成調査装置。
Further equipped with a PING investigation unit, which sends an echo request to an address within a predetermined range and registers the address returning the echo response in the PING investigation table.
The equipment research department
A second SNMP message for acquiring device information is sent to the registered address in the PING search table, and the device information is acquired.
If the acquisition of the device information is successful, the type of the device with the registered address is specified based on the device information.
If the acquisition of the device information fails, a device information acquisition command for the agent is sent to the registered address, and the device type of the registered address is specified based on the device information acquired by the acquisition command. ,
The network configuration investigation device according to claim 1 or 2.
前記ネットワークは、複数の異なるセグメントを含んでおり、
前記エージェントは、自装置が属するセグメントとは異なるセグメントに属する機器で稼働しており、
前記ネットワーク調査部は、前記複数の異なるセグメントを含む前記ネットワークの構成情報を生成する、
請求項1乃至3の何れか1項に記載のネットワーク構成調査装置。
The network contains a number of different segments.
The agent is operating in a device that belongs to a segment different from the segment to which the own device belongs.
The network investigation unit generates configuration information of the network including the plurality of different segments.
The network configuration investigation device according to any one of claims 1 to 3.
前記種別がHUBである機器に対して、当該HUB機器の各ポートの状況及び各ポートに接続されている機器の情報を取得するための第3のSNMPメッセージを送信し、当該第3のSNMPメッセージによって取得した情報を用いて、前記複数の機器のネットワーク上の関係を特定するHUB調査部、をさらに備える、
請求項1乃至4の何れか1項に記載のネットワーク構成調査装置。
A third SNMP message for acquiring the status of each port of the HUB device and the information of the device connected to each port is transmitted to the device whose type is HUB, and the third SNMP message is transmitted. The HUB investigation unit, which identifies the relationship between the plurality of devices on the network by using the information acquired by the above-mentioned device, is further provided.
The network configuration investigation device according to any one of claims 1 to 4.
複数の機器が接続されているネットワークの構成を調査するネットワーク構成調査プログラムであって、
前記ネットワーク上の各機器の種別を調査する機器調査処理と、
前記種別がコンピュータである機器で稼働しているエージェント向けのルーティング情報の取得コマンドを送信し、ルーティング情報の取得に成功した場合、前記ルーティング情報の内容をルーティング情報テーブルに登録し、前記ルーティング情報テーブルに基づいて、前記複数の機器のネットワーク上の関係を示すネットワーク構成情報を生成するネットワーク調査処理と、
をコンピュータに実行させるネットワーク構成調査プログラム。
A network configuration survey program that investigates the configuration of a network to which multiple devices are connected.
The device investigation process for investigating the type of each device on the network and
When the acquisition command of the routing information for the agent operating in the device whose type is a computer is transmitted and the acquisition of the routing information is successful, the contents of the routing information are registered in the routing information table and the routing information table is registered. A network investigation process that generates network configuration information indicating the relationship between the plurality of devices on the network based on
A network configuration survey program that lets a computer run.
複数の機器が接続されているネットワークの構成を調査する方法であって、
前記ネットワーク上の各機器の種別を調査する機器調査ステップと、
前記種別がコンピュータである機器で稼働しているエージェント向けのルーティング情報の取得コマンドを送信し、ルーティング情報の取得に成功した場合、前記ルーティング情報の内容をルーティング情報テーブルに登録し、前記ルーティング情報テーブルに基づいて、前記複数の機器のネットワーク上の関係を示すネットワーク構成情報を生成するネットワーク調査ステップと、
を有するネットワーク構成調査方法。
This is a method of investigating the configuration of a network to which multiple devices are connected.
A device survey step for investigating the type of each device on the network, and
When the acquisition command of the routing information for the agent operating in the device whose type is a computer is transmitted and the acquisition of the routing information is successful, the contents of the routing information are registered in the routing information table and the routing information table is registered. A network survey step that generates network configuration information indicating the relationship between the plurality of devices on the network based on
Network configuration survey method.
JP2017100005A 2017-05-19 2017-05-19 Network configuration survey device, network configuration survey program, and network configuration survey method Active JP6871804B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2017100005A JP6871804B2 (en) 2017-05-19 2017-05-19 Network configuration survey device, network configuration survey program, and network configuration survey method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2017100005A JP6871804B2 (en) 2017-05-19 2017-05-19 Network configuration survey device, network configuration survey program, and network configuration survey method

Publications (2)

Publication Number Publication Date
JP2018195186A JP2018195186A (en) 2018-12-06
JP6871804B2 true JP6871804B2 (en) 2021-05-12

Family

ID=64571373

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2017100005A Active JP6871804B2 (en) 2017-05-19 2017-05-19 Network configuration survey device, network configuration survey program, and network configuration survey method

Country Status (1)

Country Link
JP (1) JP6871804B2 (en)

Also Published As

Publication number Publication date
JP2018195186A (en) 2018-12-06

Similar Documents

Publication Publication Date Title
EP2921955B1 (en) Capability monitoring in a service oriented architecture
US20120297059A1 (en) Automated creation of monitoring configuration templates for cloud server images
US8543692B2 (en) Network system
JP7056893B2 (en) Application programming interface Methods, devices, API gateways, and programs for transmitting API requests.
JP5617304B2 (en) Switching device, information processing device, and fault notification control program
US20160373268A1 (en) Information processing system, information processing method, and storage medium
CN110619022B (en) Node detection method, device, equipment and storage medium based on block chain network
US8582447B2 (en) Loopback device and mirroring method
EP3382981A1 (en) A user equipment and method for protection of user privacy in communication networks
JP4616035B2 (en) Server load balancing program, apparatus and method
JP6871804B2 (en) Network configuration survey device, network configuration survey program, and network configuration survey method
RU2008121872A (en) NEAREST NODE FOR CONNECTIONS OF DISTRIBUTED SERVICES
JP2016144186A (en) Communication information controller, relay system, communication information control method, and communication information control program
JP5383927B2 (en) Method and management device for discovering communication devices connected to communication network
JP6816511B2 (en) Session management program, session management method, information processing device, and information processing system
JP2010039661A (en) Server load distribution device, method, and program
JP5292335B2 (en) Connection destination node selection method, apparatus and program
JP3944214B2 (en) Device management system, apparatus and method
US10623449B2 (en) Communication mediation system, communication mediation device, communication mediation method, and communication mediation program
JP6502418B2 (en) Electronic device management system and electronic device management method
US20140126463A1 (en) Communication system and communication method
KR101400136B1 (en) Security system and operating method thereof
CN117880154A (en) Gateway monitoring method of micro-service system and related equipment
JP2011095895A (en) Device information obtaining method and device
CN115277351A (en) Distributed management system

Legal Events

Date Code Title Description
RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20190704

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20191107

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20200430

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20210301

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20210416

R150 Certificate of patent or registration of utility model

Ref document number: 6871804

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250