JP4869831B2 - ADAPTER GENERATION DEVICE, METHOD, AND PROGRAM - Google Patents

ADAPTER GENERATION DEVICE, METHOD, AND PROGRAM Download PDF

Info

Publication number
JP4869831B2
JP4869831B2 JP2006221572A JP2006221572A JP4869831B2 JP 4869831 B2 JP4869831 B2 JP 4869831B2 JP 2006221572 A JP2006221572 A JP 2006221572A JP 2006221572 A JP2006221572 A JP 2006221572A JP 4869831 B2 JP4869831 B2 JP 4869831B2
Authority
JP
Japan
Prior art keywords
character string
information
adapter
connection
script
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2006221572A
Other languages
Japanese (ja)
Other versions
JP2008046847A (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.)
Nippon Telegraph and Telephone Corp
Original Assignee
Nippon Telegraph and Telephone 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 Nippon Telegraph and Telephone Corp filed Critical Nippon Telegraph and Telephone Corp
Priority to JP2006221572A priority Critical patent/JP4869831B2/en
Publication of JP2008046847A publication Critical patent/JP2008046847A/en
Application granted granted Critical
Publication of JP4869831B2 publication Critical patent/JP4869831B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Stored Programmes (AREA)

Description

本発明は、ネットワーク管理装置およびネットワーク管理プログラムに関し、特にTelnet、FTP(File Transfer Protocol)、SSH(Secure SHell)などのユーザ名およびパスワードなどを必要とするCLI(Command Line Interface)上で、ユーザと機器との対話型の通信を行なう通信プロトコルを用いた接続装置、情報取得や装置に対するパラメータ設定試験を行なう装置の技術に関する。   The present invention relates to a network management apparatus and a network management program, and in particular, on a CLI (Command Line Interface) that requires a user name and password such as Telnet, FTP (File Transfer Protocol), and SSH (Secure Shell). The present invention relates to a technology of a connection device using a communication protocol that performs interactive communication with a device, and a device that performs information acquisition and parameter setting tests for the device.

従来、インターネットに代表される通信ネットワークを構成するルータやスイッチといったNetwork Element(またはNetwork Equipment。以下NEとする)に対して、情報収集やパラメータ設定、動作確認試験といった管理を実行するNetwork Management System(以下NMSとする)では、対象の機器であるNEに対してCLIを通じてコマンド送信などを実行する機能が存在する。   Conventionally, a network management system (execution of management such as information collection, parameter setting, and operation check test for network elements (or network equipment, hereinafter referred to as NE) such as routers and switches constituting a communication network represented by the Internet). (Hereinafter referred to as NMS) has a function of executing command transmission or the like via the CLI to the NE that is the target device.

また、対象の機器が様々なベンダから構成される複数種別の機器から構成される場合、それぞれに異なるインタフェース仕様に合わせて送信するコマンド文字列や接続するプロトコルを変更する。   Further, when the target device is composed of a plurality of types of devices composed of various vendors, the command character string to be transmitted and the protocol to be connected are changed according to different interface specifications.

ここで、各機種特有の処理機能は、PerlやExpectのようなスクリプトである簡易で柔軟な言語(汎用言語)で記述され、管理システムであるNMSが対象NEを決定し、決定された対象NEに合わせたスクリプトを選択し実行する方法が知られている。これらのスクリプトを、NMSのインタフェースアダプタと呼ぶ。インタフェースアダプタの製造方法についてはスクリプトのコーディングのほか、既存の記述が用いられている(非特許文献1および特許文献1参照)。   Here, the processing functions specific to each model are described in a simple and flexible language (general language) which is a script such as Perl or Expect, and the management system NMS determines the target NE, and the determined target NE There is known a method of selecting and executing a script suitable for the above. These scripts are called NMS interface adapters. For the interface adapter manufacturing method, existing descriptions are used in addition to script coding (see Non-Patent Document 1 and Patent Document 1).

一方、NEに対して起動・再起動・停止、各種パラメータ追加・変更・削除、情報収集、といった運用作業を行なうために、ネットワーク運用者はTelnet、FTP、SSHといった通信プロトコルを用いて自端末からNEに接続し、CLI上でコマンドを実行し、NEからの応答を確認する。
これらの作業には、情報取得や機器の動作確認試験など、例えば、1日に1回、1時間に1回と定期的に同様の操作を行なうルーチンワークが含まれる。
On the other hand, in order to perform operations such as starting / restarting / stopping, adding / changing / deleting various parameters, collecting information, etc., the network operator uses a communication protocol such as Telnet, FTP, or SSH from his / her terminal. Connect to NE, execute command on CLI, and confirm response from NE.
These operations include routine work such as information acquisition and device operation check tests that perform the same operations periodically, for example, once a day and once an hour.

これらのルーチンワークとなる操作に対し、スクリプト言語や通信ソフトなどの特定のソフトウェアで動作するマクロやシェルスクリプトのコードに、一連の処理を記述しておくことで、一連の処理を一つのコマンド処理で実行することや、タイマーを設定して特定の時間に動作させ、スケジューリングにより何度も同じ操作を実行させるといったことが簡単に行なうことができる。   For these routine work operations, a series of processes are described in a macro or shell script code that runs on specific software such as a script language or communication software. It is possible to easily perform the above operations, or set a timer to operate at a specific time and execute the same operation over and over by scheduling.

しかしながら、上述のようなマクロやスクリプトのコードを記述するためには、スクリプト言語や通信ソフトなどの特定のソフトウェアで動作するマクロのコードに関する知識が必要である。これらのマクロコードを記述するにはネットワーク運用に必要なCLI上の操作手順とは異なった知識が必要となるため、知識を持たないネットワーク運用者がコードを書くことは難しい。
また、ネットワーク運用者が知識を持っている場合でも、その場で実現したいルーチンワークのスクリプト記述を行なうために、スクリプトの文法などの記述ルールを調べる手間がかかる。
However, in order to describe macro and script codes as described above, knowledge of macro codes that operate with specific software such as script language and communication software is required. In order to describe these macro codes, knowledge different from the operation procedure on the CLI necessary for network operation is required, so that it is difficult for a network operator who does not have knowledge to write the code.
Even if the network operator has knowledge, it takes time to check the description rules such as script grammar in order to write the script of the routine work to be realized on the spot.

また、ネットワーク運用者がスクリプトやマクロコードを記述できた場合においても、記述したコードを実際のNEに対して実行し、その結果が期待通りであることを確認しなければ、実際の業務に用いることはできない。
そのため、スクリプトやマクロコードを実際の業務に用いるためには、スクリプトやマクロコードの開発ステップと、実際のNEに対する試験ステップとの、2つのステップが必要となる。
Even if the network operator can write a script or macro code, if the written code is executed on an actual NE and the result is not confirmed as expected, it is used for actual work. It is not possible.
For this reason, in order to use a script or macro code for actual work, two steps of a script or macro code development step and an actual NE test step are required.

そこで、ネットワーク運用者のコマンド処理とその応答の一部を記録し、スクリプトと同様のテキストフォーマットで表示することで、オペレータに見やすい処理記録スクリプトを生成し、その処理記録スクリプトを前述のスクリプトやマクロコードと同様に利用することができる技術が、例えば、非特許文献2に記載される技術として知られている。
この場合、実際のネットワーク運用者の処理からスクリプトが生成されるため、試験を行なう必要はなく、上述の問題が解決できる。
NTT技術ジャーナルVol.17 No.8,2005年8月号,pp.14〜17,インタフェース触診・調合技術,三好優,木村辰幸 特開2006−72806号公報 http://www.dar.cojp/product/SNMP/DA/index.html インターネット(2006/5/31確認) Digital Architect社Webページ,Device Authority:デバイスオーソリティ〈ネットワークデバイスの資産管理、一括自動設定変更ツール〉
Therefore, by recording a part of the network operator's command processing and its response and displaying it in the same text format as the script, a processing recording script that is easy to see for the operator is generated. A technique that can be used similarly to the code is known as a technique described in Non-Patent Document 2, for example.
In this case, since the script is generated from the processing of the actual network operator, it is not necessary to perform a test, and the above problem can be solved.
NTT Technical Journal Vol. 17 No. 8, August 2005, pp. 14-17, Interface palpation / mixing technology, Yu Miyoshi, Yasuyuki Kimura JP 2006-72806 A http: // www. dar. cojp / product / SNMP / DA / index. html Internet (2006/5/31 confirmation) Digital Architect Web page, Device Authority: Device Authority <Network device asset management, batch automatic setting change tool>

しかしながら、非特許文献2に示される技術においても、ネットワーク運用者のコマンド処理から生成できるスクリプトは、一連の実際の処理がシーケンシャルに記録されるだけであることから、以下の(ア)から(エ)に示す例のような、高度な応用が出来ないという問題点がある。   However, even in the technique disclosed in Non-Patent Document 2, the script that can be generated from the network operator's command processing only records a series of actual processing sequentially. There is a problem that the advanced application cannot be performed as in the example shown in FIG.

(ア)NEの応答によって次に実行するコマンドを変更すること(分岐処理記述の追加)が出来ない。
例)NEのCPU使用率を検出するコマンドのあと、80%以上ならばアクセス制限を行なうコマンドを実行するが、80%未満ならばコマンドを実行しないで処理を終了する、ことが出来ない。
(イ)コマンドを送信する前に明示的に待ち時間を設定すること(待ち時間処理記述の追加)が出来ない。
例)1分間で受信したパケット数を計測するために、受信パケット数を表示するコマンドを実行したあと1分間明示的に待ち状態とし、再度同じコマンドを実行することが出来ない。
(A) The command to be executed next can not be changed (addition of branch process description) by the NE response.
Example) After a command for detecting the CPU usage rate of the NE, if it is 80% or more, a command for restricting access is executed, but if it is less than 80%, the process cannot be terminated without executing the command.
(A) It is not possible to explicitly set the waiting time (addition of waiting time processing description) before sending the command.
Example) In order to measure the number of packets received in one minute, after executing the command to display the number of received packets, it is explicitly put into a waiting state for one minute, and the same command cannot be executed again.

(ウ)コマンド送信後、NEからの応答待ち時間を設定すること(タイムアウト時間処理記述の追加)が出来ない。
例)コマンド送信後、応答が10秒なかった場合、NEとの接続を切断することが出来ない。
(エ)外部アプリケーションから実行される場合に、特定のパラメータを受け、同時に実行すること(外部引数処理の追加)が出来ない。
例)外部アプリケーションが、IPアドレス192.168.1.1を送信し、そのIPアドレス192.168.1.1が付けられたインタフェースであるEhternet0に関するトラヒックやルーティング情報、アクセスリストの情報を取得することが出来ない。また、外部アプリケーションは送信するIPアドレスを変更することによって実行する対象となるインタフェースを変更することが出来ない。
(C) It is not possible to set a response waiting time from the NE (addition of a timeout time processing description) after sending the command.
Example) If there is no response for 10 seconds after sending the command, the connection with the NE cannot be disconnected.
(D) When executed from an external application, it cannot receive specific parameters and execute them simultaneously (addition of external argument processing).
Example) An external application transmits an IP address 192.168.1.1, and obtains traffic, routing information, and access list information related to Ethernet 0 that is an interface to which the IP address 192.168.1.1 is attached. I can't. Further, the external application cannot change the interface to be executed by changing the IP address to be transmitted.

また、ルーチンワークにおいて、ネットワーク運用者はNEの応答に関わらず、上記の(ア)から(エ)に示す例のような処理を行なうことが多い。
しかし、多くの場合、NEの応答により、複数の選択肢から次の処理を決定する高度な作業が存在する。これらの判断を反映したスクリプトは、上記非特許文献2に示されるようなシーケンシャルな実行記録だけではなく、複数の処理記述が必要であるため、生成できない。
つまり、単一の状況の実行は簡単化し、正常に実行できるが、与えられたパラメータや応答に対して処理を変更できないため、柔軟性を欠くという問題がある。
Also, in routine work, the network operator often performs the processes as shown in the above examples (a) to (d) regardless of the NE response.
However, in many cases, there is an advanced task of determining the next processing from a plurality of options according to the response of the NE. A script reflecting these determinations cannot be generated because it requires not only sequential execution records as shown in Non-Patent Document 2, but also a plurality of process descriptions.
That is, the execution of a single situation is simplified and can be executed normally, but there is a problem that the processing cannot be changed with respect to given parameters and responses, so that flexibility is lacking.

また、対象となる機器の種別や、種別が同じ機器でも開発ベンダが異なる機器群が混在するネットワーク環境においては、機器ごとにインタフェースアダプタを用意する必要があるという問題がある。例えば、管理システムに一つの機能を追加するだけでも、インタフェースアダプタとなるスクリプトファイルは機器の種別の数だけ開発が必要となる。
また、機器側のOSの更新や機能の追加による仕様変更や、新しい機器の導入といったネットワークの増改築によってもNMSのインタフェースアダプタを作成しなければならないという問題がある。
In addition, there is a problem that it is necessary to prepare an interface adapter for each device in a network environment in which device groups of the target device or devices of the same type are mixed even in a device group with different development vendors. For example, even if only one function is added to the management system, it is necessary to develop as many script files as interface adapters as there are device types.
In addition, there is a problem that an NMS interface adapter must be created also by network expansion such as specification changes due to device OS updates and addition of functions, and introduction of new devices.

スクリプト言語によって記述されるインタフェースアダプタの作成には、やはりスクリプト言語の実装知識が必要となるため、開発者にはネットワーク管理とは異なるスキルが必要となる。
結果、上記のような機器やネットワーク構成の変更に合わせ、その場で(オンサイト)で対応するインタフェースアダプタを構築し、利用するといった柔軟性を持っていないという問題がある。
The creation of an interface adapter described in a script language still requires knowledge of the implementation of the script language, so developers need different skills from network management.
As a result, there is a problem that it does not have the flexibility to construct and use a corresponding interface adapter on the spot (on-site) in accordance with the change of the device and network configuration as described above.

本発明は、このような事情に鑑みてなされたもので、その目的は、オペレータの操作ログから、NMSのインタフェースアダプタとして利用されるスクリプトを生成するアダプタ生成装置、方法およびプログラムを提供することにある。   The present invention has been made in view of such circumstances, and an object thereof is to provide an adapter generation apparatus, method, and program for generating a script used as an NMS interface adapter from an operator operation log. is there.

この発明は上述した課題を解決するためになされたもので、請求項1に記載の発明は、端末とネットワークを介して接続されるアダプタ生成装置であり、ユーザより入力された第1の文字列を送信する入出力手段と、前記入出力手段から受信した第1の文字列を前記端末に送信し、前記送信した第1の文字列の応答である第2の文字列を前記端末から受信し、前記受信した第2の文字列を前記入出力手段に送信する送受信手段と、前記第1の文字列と前記第2の文字列とを取得するキャプチャ手段と、前記取得した第2の文字列と前記第1の文字列とを関連付けて、前記端末へ文字列を送信するためのスクリプトを生成するスクリプト生成手段と、同一の処理に対するスクリプトの記述と汎用的に用いられる汎用言語による記述とを関連付けて変換ルールとして予め記憶している変換ルール記憶手段と、前記生成したスクリプトを前記変換ルールに基づいてアダプタ言語の記述に変換することにより、前記端末へ文字列を送信するための汎用言語により記述されるアダプタファイルを生成するアダプタ生成手段と、を有することを特徴とするアダプタ生成装置である。 The present invention has been made to solve the above-described problems. The invention according to claim 1 is an adapter generation device connected to a terminal via a network, and a first character string input by a user. And the first character string received from the input / output means is transmitted to the terminal, and the second character string that is a response to the transmitted first character string is received from the terminal. Transmitting / receiving means for transmitting the received second character string to the input / output means; capture means for acquiring the first character string and the second character string; and the acquired second character string. A script generating means for generating a script for transmitting the character string to the terminal by associating the first character string with the first character string, a script description for the same processing, and a description in a general-purpose language used for general purposes Association It is described in a general-purpose language for transmitting a character string to the terminal by converting conversion script storage means stored in advance as a conversion rule and converting the generated script into an adapter language description based on the conversion rule. An adapter generation unit that generates an adapter file .

請求項に記載の発明は、汎用言語により記述される文字列の記述と追加的な制御を実行するための文字列の記述である追加挿入可能記述とを関連付けてアダプタ追加パターンファイルルールとして予め記憶しているアダプタ追加パターンファイルルール記憶手段を有し、前記アダプタ生成手段が、前記アダプタファイルの記述から文字列の記述を検出し、前記検出した文字列の記述に基づいて前記アダプタ追加パターンファイルルールから追加挿入可能記述を抽出し、前記抽出した追加挿入可能記述を表示し、前記表示した追加挿入可能記述の中から選択された追加挿入可能記述を前記アダプタファイルに追記する、ことを特徴とする請求項に記載のアダプタ生成装置である。 According to the second aspect of the present invention, a description of a character string described in a general language and an additional insertable description that is a description of a character string for executing additional control are associated in advance as an adapter additional pattern file rule. An adapter addition pattern file rule storage means is stored, wherein the adapter generation means detects a description of a character string from the description of the adapter file, and the adapter addition pattern file is based on the detected description of the character string. An additional insertable description is extracted from the rule, the extracted additional insertable description is displayed, and the additional insertable description selected from the displayed additional insertable descriptions is added to the adapter file. The adapter generation device according to claim 1 .

請求項に記載の発明は、前記スクリプトまたは前記アダプタファイルに基づいて、前記端末へ文字列を送信する自動実行手段、を有することを特徴とする請求項1または請求項に記載のアダプタ生成装置である。 The invention according to claim 3 further comprises automatic execution means for transmitting a character string to the terminal based on the script or the adapter file. Adapter generation according to claim 1 or 2 Device.

請求項4に記載の発明は、端末のシステム情報と関連付けて前記端末と接続するための接続情報を予め記憶する接続情報記憶手段と、接続先の端末を指定する接続先情報を受信する接続先入力手段と、前記接続先入力手段の受信した接続先情報に基づいて、前記接続先情報の端末に関するシステム情報を検出するプロダクト検出手段と、前記プロダクト検出手段が検出したシステム情報と関連する接続情報を前記接続情報記憶手段から選択し、前記選択した接続情報に基づき前記接続先情報の端末へ接続するログイン手段と、を有することを特徴とする請求項1から請求項3のいずれか1項に記載のアダプタ生成装置である。 According to a fourth aspect of the present invention, there is provided a connection information storage means for preliminarily storing connection information for connecting to the terminal in association with the system information of the terminal, and a connection destination for receiving connection destination information for designating a connection destination terminal. Based on the connection destination information received by the connection destination input means, product detection means for detecting system information related to the terminal of the connection destination information, and connection information related to the system information detected by the product detection means was selected from the connection information storage means, a log-in means for connecting to a terminal of the connection destination information based on the selected connection information, to any one of claims 1 to 3, characterized in that it comprises a It is an adapter production | generation apparatus of description.

請求項5に記載の発明は、前記スクリプトまたは前記アダプタファイルに基づいて、前記端末へ文字列を送信する自動実行手段と、端末のシステム情報と関連付けて前記端末と接続するための接続情報を予め記憶する接続情報記憶手段と、接続先の端末を指定する接続先情報を受信する接続先入力手段と、前記接続先入力手段の受信した接続先情報に基づいて、前記接続先情報の端末に関するシステム情報を検出するプロダクト検出手段と、前記プロダクト検出手段が検出したシステム情報と関連する接続情報を前記接続情報記憶手段から選択し、前記選択した接続情報に基づき前記接続先情報の端末へ接続するログイン手段と、を有し、前記ログイン手段が、前記選択した接続情報を識別する接続情報識別情報を前記スクリプト生成手段に送信し、前記スクリプト生成手段が、前記ログイン手段から受信した接続情報識別情報に基づいた記述を前記スクリプトまたはアダプタファイルに記述し、前記自動実行手段が、前記スクリプトまたはアダプタファイルの前記接続情報識別情報に基づいた記述により、前記接続情報識別情報を前記ログイン手段に送信し、前記ログイン手段が、前記自動実行手段から受信した接続情報識別情報に基づいて、接続情報を前記接続情報記憶手段から選択し、前記選択した接続情報に基づき前記接続先情報の端末へ接続する、ことを特徴とする請求項1から請求項3のいずれか1項に記載のアダプタ生成装置である。 According to the fifth aspect of the present invention, automatic execution means for transmitting a character string to the terminal based on the script or the adapter file and connection information for connecting to the terminal in association with system information of the terminal are stored in advance. A connection information storage means for storing; a connection destination input means for receiving connection destination information for designating a connection destination terminal; and a system related to the terminal of the connection destination information based on the connection destination information received by the connection destination input means Product detection means for detecting information, and login information for selecting connection information related to the system information detected by the product detection means from the connection information storage means and connecting to the terminal of the connection destination information based on the selected connection information And the log-in means sends connection information identification information for identifying the selected connection information to the script generation means. The script generation means describes in the script or adapter file a description based on the connection information identification information received from the login means, and the automatic execution means provides the connection information identification information of the script or adapter file. The connection information identification information is transmitted to the login unit according to the description based on the connection information, and the login unit selects connection information from the connection information storage unit based on the connection information identification information received from the automatic execution unit. 4. The adapter generation device according to claim 1 , wherein the adapter generation device connects to a terminal having the connection destination information based on the selected connection information. 5.

請求項6に記載の発明は、前記端末の設定情報を保存するためのNEコンフィグファイル記憶手段と、前記端末に接続し、前記接続した端末の設定情報を前記端末から取得し、前記取得した設定情報を前記NEコンフィグファイル記憶手段に保存するバックアップ手段と、前記NEコンフィグファイル記憶手段に保存される設定情報に基づいて端末に接続し、前記接続した端末の設定情報を、前記設定情報に基づいて変更するロールバック手段と、を有することを特徴とする請求項1から請求項5のいずれか1項に記載のアダプタ生成装置である。 The invention described in claim 6 is an NE configuration file storage means for storing the setting information of the terminal, connected to the terminal, acquires setting information of the connected terminal from the terminal, and the acquired setting A backup unit that stores information in the NE configuration file storage unit; and a terminal that is connected to the terminal based on setting information stored in the NE configuration file storage unit, and the setting information of the connected terminal is based on the setting information. an adapter generating apparatus according to any one of claims 1 to 5, characterized in that it comprises a and rollback means for changing.

請求項7に記載の発明は、前記アダプタ生成装置のIPアドレスの情報と検索するIPアドレスの範囲の情報とシードデバイスのIPアドレスの情報とに基づき、ネットワーク上の端末を検出するディスカバリ手段、を有することを特徴とする請求項1から請求項6のいずれか1項に記載のアダプタ生成装置である。 According to a seventh aspect of the present invention, there is provided a discovery means for detecting a terminal on the network based on the IP address information of the adapter generation device, the IP address range information to be searched, and the IP address information of the seed device. It is an adapter production | generation apparatus of any one of Claims 1-6 characterized by the above-mentioned.

請求項8に記載の発明は、端末とネットワークを介して接続されるアダプタ生成装置で用いられるアダプタ生成方法であり、入出力手段が、ユーザより入力された第1の文字列を送信する入出力過程と、送受信手段が、前記入出力手段から受信した第1の文字列を前記端末に送信し、前記送信した第1の文字列の応答である第2の文字列を前記端末から受信し、前記受信した第2の文字列を前記入出力手段に送信する送受信過程と、キャプチャ手段が、前記第1の文字列と前記第2の文字列とを取得するキャプチャ過程と、スクリプト生成手段が、前記取得した第2の文字列と前記第1の文字列とを関連付けて、前記端末へ文字列を送信するためのスクリプトを生成するスクリプト生成過程と、アダプタ生成手段が、同一の処理に対するスクリプトの記述と汎用的に用いられる汎用言語による記述とを関連付けて変換ルールとして予め記憶している変換ルール記憶手段から読み出した前記変換ルールに基づいて、前記生成したスクリプトを、アダプタ言語の記述に変換することにより、前記端末へ文字列を送信するための汎用言語により記述されるアダプタファイルを生成するアダプタ生成過程と、を有することを特徴とするアダプタ生成方法である。
The invention according to claim 8 is an adapter generation method used in an adapter generation device connected to a terminal via a network, wherein the input / output means transmits the first character string input by the user. And transmitting and receiving means transmits a first character string received from the input / output means to the terminal, and receives a second character string that is a response to the transmitted first character string from the terminal, A transmission / reception process of transmitting the received second character string to the input / output unit , a capture process of acquiring the first character string and the second character string by a capture unit, and a script generation unit; A script generation process for generating a script for transmitting the character string to the terminal by associating the acquired second character string with the first character string; The generated script is converted into an adapter language description based on the conversion rule read out from the conversion rule storage means stored in advance as a conversion rule in association with the description of the script and the description in a general-purpose language used for general purposes. An adapter generation method comprising: an adapter generation step of generating an adapter file described in a general language for transmitting a character string to the terminal by conversion.

請求項に記載の発明は、端末とネットワークを介して接続されるコンピュータに、ユーザより入力された第1の文字列を送信する入出力手段と、前記入出力手段から受信した第1の文字列を前記端末に送信し、前記送信した第1の文字列の応答である第2の文字列を前記端末から受信し、前記受信した第2の文字列を前記入出力手段に送信する送受信手段と、前記第1の文字列と前記第2の文字列とを取得するキャプチャ手段と、前記取得した第2の文字列と前記第1の文字列とを関連付けて、前記端末へ文字列を送信するためのスクリプトを生成するスクリプト生成手段と、同一の処理に対するスクリプトの記述と汎用的に用いられる汎用言語による記述とを関連付けて変換ルールとして予め記憶している変換ルール記憶手段から読み出した前記変換ルールに基づいて、前記生成したスクリプトを、アダプタ言語の記述に変換することにより、前記端末へ文字列を送信するための汎用言語により記述されるアダプタファイルを生成するアダプタ生成手段と、の機能を実行させるアダプタ生成プログラムである。

The invention according to claim 9 is an input / output means for transmitting a first character string input by a user to a computer connected to a terminal via a network, and a first character received from the input / output means. Transmission / reception means for transmitting a string to the terminal, receiving a second character string that is a response to the transmitted first character string from the terminal, and transmitting the received second character string to the input / output means And a capture means for acquiring the first character string and the second character string, and associating the acquired second character string and the first character string, and transmitting the character string to the terminal read out a script generating means for generating a script for, from the conversion rule storing means stored in advance as the script description and converted in association with the description by a general purpose language used universally rules for the same process Was based on the conversion rule, a script that said generating, by converting the description of the adapter language, and adapter generating means for generating an adapter file described by a general-purpose language for sending a string to the terminal, This is an adapter generation program that executes the above functions.

この発明によれば、設定処理記録を行なう機能により、ネットワーク管理者が特定のスクリプト言語やマクロコードの記述方法に関する知識を持たずとも、システムがネットワーク管理者の操作からスクリプト言語やマクロコードの生成と同様の記述を生成し、さらに、設定処理記録補助を行なう機能により、該記述に条件分岐処理や、待ち時間を指定する処理といった、シーケンシャルに進められるネットワーク管理者の処理記録からは生成できない記述を利用者(ネットワーク運用者)の簡易な操作や既存文からの自動置き換えにより、追記し、アダプタを生成することができるという効果を奏する。   According to the present invention, the function of recording the setting process allows the system to generate the script language and macro code from the operation of the network administrator without the network administrator having knowledge of the specific script language and macro code description method. A description that cannot be generated from the processing record of the network administrator that is advanced sequentially, such as conditional branch processing and processing to specify waiting time for the description, by the function that generates the same description as that described above, and the function of assisting setting processing recording Can be added by a simple operation of a user (network operator) or automatic replacement from an existing sentence, and an adapter can be generated.

また、本発明によれば、外部パラメータをスクリプトの動作内容に反映するために、処理コマンドの一部を特定の定義文字に置き換え、外部アプリケーションからの実行依頼を、パラメー夕の内容によって柔軟に変更することができるという効果を奏する。   Further, according to the present invention, in order to reflect external parameters in the operation content of the script, a part of the processing command is replaced with a specific definition character, and the execution request from the external application is flexibly changed according to the content of the parameter setting. There is an effect that can be done.

また、本発明によれば、視認性を維持するための表示部と実行に必要なコードを処理する実行部を有するだけでなく、その表示スクリプトを既存の汎用スクリプト言語フォーマットに変換することができるという効果を奏する。   Further, according to the present invention, not only has a display unit for maintaining visibility and an execution unit for processing code necessary for execution, but the display script can be converted into an existing general-purpose script language format. There is an effect.

以下、図面を参照して、本発明の実施の形態について説明する。図1は、この発明の一実施形態によるアダプタ生成装置の構成を示す概略ブロック図である。
アダプタ生成装置1は、NE2とネットワークNW3とを介して接続されている。また、ユーザAは、アダプタ生成装置1を用いて、NE2との通信や処理を実行する。
なお、ユーザAとは、オペレータ、ネットワーク管理者、操作者などのユーザである。
Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 is a schematic block diagram showing a configuration of an adapter generation device according to an embodiment of the present invention.
The adapter generation device 1 is connected via the NE 2 and the network NW 3. Also, the user A uses the adapter generation device 1 to execute communication and processing with the NE 2.
Note that the user A is a user such as an operator, a network administrator, or an operator.

まず、アダプタ生成装置1において、スクリプトを生成するためのブロックについて説明する。
CLI部131は、従来の特定の通信ソフトや特定のOS(オペレーティングシステム)上でのCLIによるコマンドプロンプトと同様に、仮装端末として、ユーザAから入力される送信コマンドを表示し、NE2の応答情報を表示する機能を有する。
First, a block for generating a script in the adapter generation device 1 will be described.
The CLI unit 131 displays a transmission command input from the user A as a disguise terminal in the same manner as a command prompt by CLI on a specific communication software or a specific OS (operating system) in the past, and NE2 response information It has a function to display.

GUI部101は、CLIやスクリプトファイルをコンポーネントとして格納し、入力や表示をユーザAに提示する機能を持つ。
GUI部101は、表示装置と入力装置とを有しており、ユーザAが入力した入力情報を、または、ユーザAが確認するための出力情報を、表示装置を介してユーザAへ表示する機能を有する。また、GUI部101は、ユーザAが入力装置を用いて入力した入力情報を受信する機能を有する。
ここで、例えば、表示装置とはCRT(Cathode Ray Tube)や液晶表示装置等であり、入力装置とはキーボードやマウス等の入力デバイスのことである。
The GUI unit 101 has a function of storing CLI and script files as components and presenting input and display to the user A.
The GUI unit 101 has a display device and an input device, and displays the input information input by the user A or the output information for the user A to confirm to the user A via the display device. Have The GUI unit 101 has a function of receiving input information input by the user A using an input device.
Here, for example, the display device is a CRT (Cathode Ray Tube), a liquid crystal display device, or the like, and the input device is an input device such as a keyboard or a mouse.

実施の形態においては、CLI部131によるCLIの表示および入力と、GUI部101によるGUIの表示および入力とがある。図2を用いて、この関係を説明する。
図2に示されるように、GUIの中に、対象選択画面、ファイルツリー画面、スクリプト表示画面、CLIコンソールがある。実施の形態においては、このように、GUIの一部にCLIがある。
一般的には、ユーザAは、GUIにおいてはマウスを用いて選択や入力の操作をし、GUI上のCLI部分をマウスで選択した後、CLIにおいてキーボードでコマンドなどを入力し、NE2との接続やNE2での処理を実行する。
In the embodiment, there are CLI display and input by the CLI unit 131 and GUI display and input by the GUI unit 101. This relationship will be described with reference to FIG.
As shown in FIG. 2, the GUI includes a target selection screen, a file tree screen, a script display screen, and a CLI console. In the embodiment, the CLI is a part of the GUI as described above.
In general, the user A performs selection and input operations using a mouse in the GUI, selects a CLI portion on the GUI with the mouse, and then inputs a command or the like with the keyboard in the CLI, and connects to the NE2. And processing in NE2.

図1のアダプタ生成装置1の説明に戻り、NE−IF部132は、GUI部101またはCLI部131から入力されたユーザAからの入力に基づいて、TelnetやFTP、SSHといったプロトコルでNE2と接続し、NE2へコマンドを送信し、NE2からの応答を受信する機能を有する。   Returning to the description of the adapter generation device 1 in FIG. 1, the NE-IF unit 132 is connected to the NE 2 using protocols such as Telnet, FTP, and SSH based on the input from the user A input from the GUI unit 101 or the CLI unit 131. And has a function of transmitting a command to NE2 and receiving a response from NE2.

キャプチャ部141は、NE−IF部132とCLI部131との間で送受信される文字列情報を取得する機能を有する。例えば、キャプチャ部141は、ユーザAがCLI部131に入力しNE−IF部132を介してNE2へ送信する送信文字列(コマンド)と、送信した文字列の応答であるNE2から受信する応答文字列とを、取得する。
なお、文字列とは、複数の文字からなるものであり、改行などの制御文字を含んでもよい。
The capture unit 141 has a function of acquiring character string information transmitted / received between the NE-IF unit 132 and the CLI unit 131. For example, the capture unit 141 includes a transmission character string (command) input by the user A to the CLI unit 131 and transmitted to the NE 2 via the NE-IF unit 132, and a response character received from the NE 2 that is a response to the transmitted character string. Get a column.
The character string is composed of a plurality of characters and may include control characters such as line feeds.

なお、キャプチャ部141は、NE−IF部132とCLI部131との間で送受信される文字列情報を取得するため、キャプチャ部141が取得する文字列情報である送信文字列および応答文字列には、例えば通信プロトコルに関する部分はなく、ユーザAがCLI部131により入力した文字列、NE−IF部132がCLI部131の表示装置に表示する文字列、および、リターンキーや改行コードの情報が含まれる。   Note that the capture unit 141 acquires character string information transmitted / received between the NE-IF unit 132 and the CLI unit 131, so that the capture character string information acquired by the capture unit 141 is transmitted to the transmission character string and the response character string. For example, there is no portion related to the communication protocol, and a character string input by the user A through the CLI unit 131, a character string displayed on the display device of the CLI unit 131 by the NE-IF unit 132, and information on the return key and line feed code are included. included.

また、キャプチャ部141は、取得した送信文字列および応答文字列である文字列情報を、ログとしてログ記憶部151に保存する機能を有する。
また、キャプチャ部141は、取得した送信文字列および応答文字列である文字列情報を、後述のスクリプト生成部142に送信する。
Further, the capture unit 141 has a function of storing the acquired transmission character string and character string information, which is a response character string, in the log storage unit 151 as a log.
Further, the capture unit 141 transmits the acquired transmission character string and character string information that is a response character string to the script generation unit 142 described later.

スクリプト生成部142は、キャプチャ部141が取得した文字列情報からスクリプトを生成する機能を有する。また、スクリプト生成部142は、生成したスクリプトをスクリプトファイルとしてスクリプト記憶部152に記憶する機能を有する。
スクリプト生成部142は、例えば、コマンドとNE2からの応答文字列の一部、該通信時のログインユーザ名やパスワード、プロトコル情報を明示的に記録し、スクリプトを生成し、ユーザAにGUI部101を通じて生成したスクリプトを表示させる機能を有する。スクリプト生成部142は、例えば、図2のスクリプト生成画面に、生成したスクリプトを表示する。
なお、スクリプト生成部142は、接続しているNE2を識別できる情報、例えば、NE2のIPアドレス情報などをスクリプトにファイル名として記述しておく。これにより、NE2毎に、スクリプトファイルが作成される。
スクリプト生成部142が、キャプチャ部141から受信した文字列情報からスクリプトを生成する方法は後に詳述する。
The script generation unit 142 has a function of generating a script from character string information acquired by the capture unit 141. The script generation unit 142 has a function of storing the generated script in the script storage unit 152 as a script file.
For example, the script generation unit 142 explicitly records a command and a part of a response character string from the NE 2, a login user name and password at the time of the communication, and protocol information, generates a script, and sends the script to the user A with the GUI unit 101. It has a function to display the script generated through. For example, the script generation unit 142 displays the generated script on the script generation screen of FIG.
The script generation unit 142 describes information that can identify the connected NE 2, for example, IP address information of the NE 2 as a file name in the script. As a result, a script file is created for each NE2.
A method by which the script generation unit 142 generates a script from character string information received from the capture unit 141 will be described in detail later.

アダプタ生成部143は、スクリプト記憶部152に保存されたスクリプトファイルからスクリプトファイルを選択し、選択したスクリプトファイルの情報を、本発明による装置がない環境においてもユーザAが実行した処理内容を再実行させることができるExpectなど汎用のスクリプト言語フォーマット(汎用言語)に、変換ルール記憶部155に予め記憶される変換ルールに基づいて変換し、変換したスクリプトファイルをアダプタファイルとしてアダプタファイル記憶部153に保存する機能を有する。
また、アダプタ生成部143は、処理内容の自動変換では記述されない条件分岐やタイムアウト処理、待ち時間処理、外部APからの引き数受付処理を、アダプタ追加パターンファイルルール記憶部154に予め格納されている処理記述に基づいて、アダプタファイルに追記する機能を有する。
The adapter generation unit 143 selects a script file from the script files stored in the script storage unit 152, and re-executes the processing contents executed by the user A in the environment without the apparatus according to the present invention. Can be converted to a general-purpose script language format (general-purpose language) such as Expect based on the conversion rules stored in advance in the conversion rule storage unit 155, and the converted script file is stored in the adapter file storage unit 153 as an adapter file It has the function to do.
In addition, the adapter generation unit 143 stores in advance, in the adapter additional pattern file rule storage unit 154, conditional branching, timeout processing, waiting time processing, and argument reception processing from an external AP that are not described in the automatic conversion of processing contents. Based on the process description, it has a function to add to the adapter file.

変換ルール記憶部155には、同一の処理に対する、スクリプト生成部142が生成するスクリプトによる記述と、Expectなどの汎用のスクリプト言語フォーマットによる記述とが、対応付けられて予め記憶されている。
例えば、図16から18に示すように、同一の処理についてスクリプトによる記述と汎用のスクリプト言語(汎用言語)による記述とが関連付けて予め保存されている。
また、同一の処理であるため、1つのコマンドを示す文字列の関連付けでもよいし、または、複数のコマンドからなる文字列との関連付けでもよい。
In the conversion rule storage unit 155, a description by a script generated by the script generation unit 142 and a description by a general-purpose script language format such as Expect are stored in advance in association with each other.
For example, as shown in FIGS. 16 to 18, a description by a script and a description by a general-purpose script language (general-purpose language) are stored in advance for the same processing.
In addition, since they are the same process, they may be associated with a character string indicating one command, or may be associated with a character string composed of a plurality of commands.

例えば、図16(A)に示すように、1つの処理に対して、スクリプトファイルの記述「telnet.setTimeoutSeconds(5)」と汎用言語の記述「set timeout 5」とが関連付けて記憶されている。
また、例えば、図18(B)に示すように、スクリプトファイルの記述による複数の行からなる処理に対して、汎用言語の記述の複数の行からなる処理が関連付けて予め記憶されている。
For example, as illustrated in FIG. 16A, a script file description “telnet.setTimeoutSeconds (5)” and a general-purpose language description “set timeout 5” are stored in association with each other.
Further, for example, as shown in FIG. 18B, a process consisting of a plurality of lines in the description of the general-purpose language is stored in advance in association with a process consisting of a plurality of lines in the script file description.

文字列パターンとは、このように、図16(A)に示すように、複数の文字列からなるものであってもよいし、図18(B)に示すように、複数の行からなる文字列であってもよい。
なお、ここでは説明のために、図16(A)では引数の5まで記述しているが、コマンド部分とそのコマンドの引数の部分とを検出できるようにし、検出したコマンド部分に対して、1つのコマンドまたは複数のコマンドのよる同一の処理に対して、スクリプトファイルの記述と汎用言語の記述とが関連付けて記憶されるようしてもよい。また、アダプタ生成部143も、コマンドと引数とを検出できるようにしてもよい。
The character string pattern may thus consist of a plurality of character strings as shown in FIG. 16 (A), or a character consisting of a plurality of lines as shown in FIG. 18 (B). It may be a column.
Here, for the sake of explanation, although up to argument 5 is described in FIG. 16A, the command part and the argument part of the command can be detected. The script file description and the general-purpose language description may be stored in association with each other for the same processing by one command or a plurality of commands. The adapter generation unit 143 may also be able to detect commands and arguments.

アダプタファイル記憶部153には、アダプタ生成部143で生成された汎用スクリプト言語フォーマットで記述されたアダプタファイルが格納される。
アダプタ追加パターンファイルルール記憶部154には、アダプタファイルに追記するための、条件分岐やタイムアウト処理、待ち時間処理、外部APからの引き数受付処理などの、処理記述のパターンが予め格納されている。
The adapter file storage unit 153 stores an adapter file described in the general-purpose script language format generated by the adapter generation unit 143.
The adapter addition pattern file rule storage unit 154 stores in advance processing description patterns such as conditional branching, timeout processing, waiting time processing, and argument reception processing from an external AP for adding to the adapter file. .

自動実行部144は、GUI部101またはCLI部131による手動接続により、または後述の自動接続部171による自動接続により、アダプタ生成装置1がNE2に接続後、スクリプト記憶部152に保存されたスクリプトファイルまたはアダプタファイル記憶部153に保存されたアダプタファイルに基づいて、CLI部131とNE−IF部132とを通じて、NE2にコマンド情報を送信する機能を有する。
自動実行部144は、例えば、スクリプトファイルからコマンド情報を抜き出し、抜き出したコマンド情報をCLI部131とNE−IF部132とを通じてNE2に送信する。
なお、自動実行部144は、アダプタ生成装置1がNE2と接続した後、NE2を識別する情報、例えばNE2のIPアドレスに基づいて、スクリプトファイルを選択する。
The automatic execution unit 144 is a script file stored in the script storage unit 152 after the adapter generation device 1 is connected to the NE 2 by manual connection by the GUI unit 101 or CLI unit 131 or by automatic connection by the automatic connection unit 171 described later. Alternatively, it has a function of transmitting command information to the NE 2 through the CLI unit 131 and the NE-IF unit 132 based on the adapter file stored in the adapter file storage unit 153.
For example, the automatic execution unit 144 extracts command information from the script file, and transmits the extracted command information to the NE 2 through the CLI unit 131 and the NE-IF unit 132.
The automatic execution unit 144 selects a script file based on information for identifying the NE2, for example, the IP address of the NE2, after the adapter generation device 1 is connected to the NE2.

また、自動実行部144は、NE2の応答からスクリプトファイルまたはアダプタファイルに記述された条件に合致する応答を検出し、検出に応じて次のコマンド情報を送信する機能を有する。
また、自動実行部144はタイマー部145を有しており、タイマー部145が有するタイマー機能により、例えば、予め設定された時刻に予め指定されたNE2に対し接続し、スクリプトに記述された処理を実行する機能を有する。
The automatic execution unit 144 also has a function of detecting a response that matches the conditions described in the script file or the adapter file from the NE2 response and transmitting the next command information in response to the detection.
Further, the automatic execution unit 144 has a timer unit 145, and for example, the timer function of the timer unit 145 connects to the NE2 designated in advance at a preset time, and performs processing described in the script. Has the function to execute.

なお、図1においては、図の簡略のために、自動実行部144は、スクリプト記憶部152およびアダプタファイル記憶部153と直接に接続されていないが、実際には、自動実行部144はスクリプト記憶部152およびアダプタファイル記憶部153と直接に接続されており、スクリプトファイルまたはアダプタファイルをスクリプト記憶部152またはアダプタファイル記憶部153から取得することが可能である。   In FIG. 1, for the sake of simplicity, the automatic execution unit 144 is not directly connected to the script storage unit 152 and the adapter file storage unit 153, but actually, the automatic execution unit 144 stores the script. The script file or adapter file can be acquired from the script storage unit 152 or the adapter file storage unit 153.

自動接続部171は、予め決められたログインユーザ名やパスワードを保持している接続パターン記憶部181から、NE2に応じたユーザ名やパスワードを取得し、取得したユーザ名やパスワードの情報をCLI部131を介してNE2に送信し、CLI部131を介してNE2との自動接続を実行する機能を有する。
また、自動接続部171は、NE2の機種やバージョンなどに応じて、接続する機能を有する。自動接続部171については、後に詳述される。
The automatic connection unit 171 acquires the user name and password corresponding to NE2 from the connection pattern storage unit 181 that holds a predetermined login user name and password, and uses the acquired user name and password information as a CLI unit. It has a function of transmitting to the NE 2 via the 131 and executing an automatic connection with the NE 2 via the CLI unit 131.
The automatic connection unit 171 has a function of connecting according to the NE2 model, version, and the like. The automatic connection unit 171 will be described in detail later.

(記録)
次に、図3を用いて、アダプタ生成装置1がNE2と接続した後、ユーザAが入力するコマンドと、NE2からの応答を記録する概要を説明する。
図3のステップF1からステップF6を用いて、ユーザAがCLI部131とNE−IF部132を用いて実行するオペレーションを説明する。また、図3のG1からG7を用いて、ユーザAのオペレーションに基づいて、キャプチャ部141およびスクリプト生成部142が実行するスクリプトの生成について説明する。
(Record)
Next, an outline of recording a command input by the user A and a response from the NE 2 after the adapter generating apparatus 1 is connected to the NE 2 will be described with reference to FIG.
Operations performed by the user A using the CLI unit 131 and the NE-IF unit 132 will be described using steps F1 to F6 in FIG. Further, generation of a script executed by the capture unit 141 and the script generation unit 142 based on the operation of the user A will be described using G1 to G7 in FIG.

ユーザAは、アダプタ生成装置1のCLI部131を通じて、対象となるNE2と接続する。
このとき、アダプタ生成装置1が、対象のIPアドレスを指定し、該IPアドレスを持つ対象となるNE2に接続を行ない、ユーザ名とパスワードを送信する。また、後述するように、接続パターンファイルである接続パターンに格納されているユーザ名とパスワードを対象となるNE2に送信することで自動接続する方法がある。
なお、接続の直後、後述のバックアップ機能がNE2の設定ファイルをダウンロードし、設定ファイルに一意の名前をつけてNE2の設定情報を保存することができる。
The user A connects to the target NE 2 through the CLI unit 131 of the adapter generation device 1.
At this time, the adapter generation device 1 designates the target IP address, connects to the target NE 2 having the IP address, and transmits the user name and password. As will be described later, there is a method of automatically connecting by transmitting the user name and password stored in the connection pattern, which is a connection pattern file, to the target NE 2.
Immediately after the connection, the backup function described later can download the NE2 setting file, and save the NE2 setting information by giving a unique name to the setting file.

なお、ここでは、アダプタ生成装置1がNE2とTelnetによりNE2に接続した後について説明する。
まず、アダプタ生成装置1がNE2とTelnetによりNE2に接続する(ステップF1)。次に、NE2との接続に応じて、NE−IF部132によりCLI部131の表示装置にプロンプトが表示される(ステップF2)。
その後、ユーザAは、CLI部131の入力装置よりコマンドを入力し、NE−IF部132を介してNE2へコマンドを送信する(ステップF3)。NE−IF部132は、送信したコマンドの応答情報をNE2より受信し、受信した応答情報に基づいてCLI部131の表示装置に応答情報を表示する(ステップF4)。
以降、ステップF3とステップF4とが繰り返される。
Here, a case will be described in which the adapter generation device 1 is connected to NE2 by NE2 and Telnet.
First, the adapter generation device 1 connects to NE2 by NE2 and Telnet (step F1). Next, a prompt is displayed on the display device of the CLI unit 131 by the NE-IF unit 132 according to the connection with the NE 2 (step F2).
Thereafter, the user A inputs a command from the input device of the CLI unit 131, and transmits the command to the NE 2 through the NE-IF unit 132 (step F3). The NE-IF unit 132 receives the response information of the transmitted command from the NE 2, and displays the response information on the display device of the CLI unit 131 based on the received response information (step F4).
Thereafter, Step F3 and Step F4 are repeated.

ユーザAが、CLI部131の入力装置よりNE2との接続終了を示すコマンド(例えば、EXIT)を入力し送信する(ステップF5)と、アダプタ生成装置1とNE2とのTelnetによる接続が切断される(ステップF6)。   When the user A inputs and transmits a command (for example, EXIT) indicating the end of connection with the NE 2 from the input device of the CLI unit 131 (step F5), the connection between the adapter generation device 1 and NE 2 by Telnet is disconnected. (Step F6).

コマンドなどの記録をするためには、ユーザAは、記録の前に、例えば、図2の記録開始ボタンを押す。
図3の説明に戻り、ステップF2において、ユーザAが記録開始ボタンを押したことにより、キャプチャ部141およびスクリプト生成部142は待ち状態(ステップG1)から、スクリプトを生成するモード(ステップH1、および、ステップG2からG4)に移行する。
スクリプトを生成するモードにおいては、キャプチャ部141は、ステップF3とステップF4とにおいて、CLI部131とNE−IF部132との間で送受信される文字列情報を取得する(ステップH1)。
キャプチャ部141が取得した文字列情報に基づいて、スクリプト生成部142はスクリプトを生成し、生成したスクリプトをスクリプト表示画面(図2参照)に表示する。
In order to record a command or the like, the user A presses, for example, a recording start button in FIG. 2 before recording.
Returning to the description of FIG. 3, in step F2, when the user A presses the recording start button, the capture unit 141 and the script generation unit 142 generate a script from the waiting state (step G1) (step H1 and The process proceeds from step G2 to G4).
In the script generation mode, the capture unit 141 acquires character string information transmitted / received between the CLI unit 131 and the NE-IF unit 132 in step F3 and step F4 (step H1).
Based on the character string information acquired by the capture unit 141, the script generation unit 142 generates a script and displays the generated script on the script display screen (see FIG. 2).

ユーザAが、CLI部131の入力装置よりNE2との接続終了を示すコマンド(例えば、EXIT)を送信する(ステップF5)ことに応じて、スクリプト生成部142は生成したスクリプトをスクリプトファイルとしてスクリプト記憶部152に保存する(ステップG7)。
なお、記録停止ボタン(図2参照)の押下に応じて、スクリプト生成部142は、生成したスクリプトをスクリプトファイルとしてスクリプト記憶部152に保存するようにしてもよい。
その後、スクリプト生成部142は、待ち状態(ステップG1)に戻る。
In response to the user A sending a command (for example, EXIT) indicating the end of connection with the NE 2 from the input device of the CLI unit 131 (step F5), the script generation unit 142 stores the generated script as a script file. The data is stored in the unit 152 (step G7).
Note that the script generation unit 142 may store the generated script in the script storage unit 152 as a script file in response to pressing of the recording stop button (see FIG. 2).
Thereafter, the script generation unit 142 returns to the waiting state (step G1).

(スクリプトの生成)
次に、キャプチャ部141とスクリプト生成部142とが、スクリプトを生成する方法について説明する。
アダプタ生成装置1がNE2とTelnetによりNE2に接続した後(図3のステップF1)、ユーザAはNE2の仮想端末としてのCLI部131を用いてコマンドを入力し実行し、その応答である応答情報をNE2から取得する。コマンドおよび応答情報はCLI部131上に表示される。
このとき、CLI部131上の表示情報全てをキャプチャ部141が保存する。
キャプチャ部141は表示情報全てを保存しログに記録すると共に、スクリプト生成部142に表示情報を送信する。
(Generate script)
Next, a method in which the capture unit 141 and the script generation unit 142 generate a script will be described.
After adapter generating apparatus 1 is connected to NE2 by NE2 and Telnet (step F1 in FIG. 3), user A inputs and executes a command using CLI unit 131 as a virtual terminal of NE2, and response information that is a response thereto Is obtained from NE2. The command and response information are displayed on the CLI unit 131.
At this time, the capture unit 141 stores all display information on the CLI unit 131.
The capture unit 141 stores all display information and records it in a log, and transmits the display information to the script generation unit 142.

スクリプト生成部142は表示情報の一部を抜き出し、スクリプト情報を加えて記録する。
スクリプト生成部142が抜き出す情報は、ユーザAの操作によって表示されるコマンド文字列(以降U1とする)と、そのコマンド文字列送信に対する応答情報の、最後の行の最後の文字(以降U2とする)および、最後の行の一番先頭の文字(以降U3とする)とを記録する。また、コマンド送信の決定キー(Enterキー)(以降U4とする)を記録する。
これらU1からU4の4種類の情報は、一つのコマンドを送信するタイミングで記録される。つまり、一つのコマンドごとに4種類の情報が抜き出され、記録される。
なお、スクリプト生成部142は、改行コードを検出することにより、文字列が行として改行されていることを検出し、また、文字列の最後の行であることを検出することにより、文字列の最後の行を検出する。
The script generation unit 142 extracts a part of the display information, adds the script information, and records it.
The information extracted by the script generation unit 142 includes a command character string (hereinafter referred to as U1) displayed by the operation of the user A and the last character of the last line (hereinafter referred to as U2) of response information for the command character string transmission. ) And the first character of the last line (hereinafter referred to as U3). Also, a command transmission determination key (Enter key) (hereinafter referred to as U4) is recorded.
These four types of information U1 to U4 are recorded at the timing of transmitting one command. That is, four types of information are extracted and recorded for each command.
The script generation unit 142 detects that the character string is broken as a line by detecting a line feed code, and detects that the character string is the last line of the character string. Find the last line.

また、U2の最後の行の最後の文字およびU3の最後の行の一番前の文字は、最低一文字を記録するものとするが、二文字以上を記録することとしても良い。または、最後の行全体を記録することとしても良い。
また、U2やU3で記録する文字列のパターンが、そのコマンドの応答中(最後の行以外または最後の行の最後や最初の文字以外)に出現した場合、一意になる文字数を記録することとして、記録する文字数を可変にすることとしても良い。
The last character of the last line of U2 and the frontmost character of the last line of U3 are recorded at least one character, but two or more characters may be recorded. Alternatively, the entire last line may be recorded.
If the character string pattern recorded in U2 or U3 appears in response to the command (other than the last line or the last or first character of the last line), the number of unique characters is recorded. The number of characters to be recorded may be variable.

または、送信したコマンド文字列U1は、送信したコマンド文字列U1と、送信したコマンド文字列U1に対するNE2からの応答情報の全ての文字列(U5とする)と、コマンド送信の決定キー(Enterキー)U4とを、関連付けてスクリプトとして記録してもよい。なおU5は、U2またはU3に相当するものである。   Alternatively, the transmitted command character string U1 includes the transmitted command character string U1, all character strings of response information from the NE 2 (referred to as U5) to the transmitted command character string U1, and a command transmission determination key (Enter key). ) U4 may be associated and recorded as a script. U5 corresponds to U2 or U3.

(スクリプト生成の具体例)
次に、キャプチャ部141とスクリプト生成部142とが、スクリプトを生成する具体的な例を、オペレーションの例と記録の例とを用いて、説明する。
なお、説明において、NE2との接続は既に完了しており、NE−IF部132によりCLI部131の表示装置にプロンプトが表示されており(図2のステップF2参照)、記録開始ボタンは既に押下されているものとする。
(Specific example of script generation)
Next, a specific example in which the capture unit 141 and the script generation unit 142 generate a script will be described using an operation example and a recording example.
In the description, the connection with the NE 2 has already been completed, the NE-IF unit 132 has displayed a prompt on the display device of the CLI unit 131 (see step F2 in FIG. 2), and the recording start button has already been pressed. It is assumed that

また、説明はCLI部131に表示される文字列を用いて説明する。なお、説明のために、CLI部131の表示装置における改行コードを<改行>とし、コマンドの入力を決定するために入力されるエンターキーの入力を<Enterキー入力>として表記している。これは、実際には、CLI部131の表示装置に表示されるものではなく、説明のための表記である。
なお、説明においては、U2およびU3として、文字数を二文字として説明する。
The description will be made using a character string displayed on the CLI unit 131. For the sake of explanation, the line feed code in the display unit of the CLI unit 131 is represented as <line feed>, and the enter key input to determine command input is represented as <Enter key input>. This is not actually displayed on the display device of the CLI unit 131, but is a notation for explanation.
In the description, the number of characters will be described as two characters as U2 and U3.

(ステップV1)まず、CLI部131には、ステップV1に示されるような、プロンプト「Cisco1#」が表示されている。
Cisco1#
(ステップV2)次に、ステップV1のプロンプトが出ている状態で、オペレータは、CLI部131を用いてコマンド「show interfaces」を入力し、NE−IF部132を介してNE2へ送信する。
Cisco1# show interfaces<Enterキー入力>
(ステップV3)ステップV2のコマンドの送信に応じて、例えば、以下のような応答情報をNE−IF部132がNE2から受信し、CLI部131に表示する。
Fastnet0/0 is up, line protocol is up <改行>
Hardware is AmdFE, address is 000d.286a.98e0 (bia 000d.286a.98e0) <改行>
Internet address is 192.168.10.1/24<改行>
MTU 1500 bytes, BW 100000 Kbit, DLY 100 usec, <改行>
reliability 255/255, txload 1/255, rxload 1/255<改行>
Encapsulation ARPA, loopback not set<改行>
Keepalive set (10 sec) <改行>
Full-duplex, 100Mb/s, 100BaseTX/FX<改行>
(途中省略)<改行>
355 lost carrier, 0 no carrier<改行>
0 output buffer failures, 0 output buffers swapped out<改行>
Cisco1#
(ステップV4)このとき、スクリプト生成部142が、最後に受信した1行の文字列「Cisco1#」を抽出しておく。抽出した文字列より、U2とU3は、「Ci」と「1#」とになる。
(ステップV5)次に、オペレータは、例えばコマンド「show version」を入力し、NE2へ送信する。
Cisco1# show version<Enterキー入力>
(V6)送信したコマンド「show version」に対する、NE2からの応答は以下のようになる。
(応答文字列省略。)<改行>
Cisco1#
このとき、スクリプト生成部142が、最後に受信した1行の文字列「Cisco1#」を抽出する。抽出した文字列より、U2とU3は、「Ci」と「1#」とになる。
(ステップV7)このとき、スクリプトは以下のようになり、スクリプトの最後の4行が、上記に対応して、このタイミングで追加して記録される。
この意味の概要は、U2とU3である、「Ci」と「1#」を受信した場合、U3である「show version」とU4である「Enter」を送信する、ということである。なお、U4である「Enter」を送信するとは、Enterキーの入力を送信することである。
スクリプトの詳細な説明については、後に説明する。
telnet.send('show interfaces')
telnet.sendSpecial('Enter')

telnet.waitFor('Ci')
match = telnet.waitPrompt('1#')
telnet.send('show version')
telnet.sendSpecial('Enter')
(ステップV8)続いて、オペレータは、例えばコマンド「disable」を入力する。
Cisco1# disable<Enterキー入力>
(V9)送信したコマンド「disable」に応じて、NE2から以下のような応答が返ってくる。
Cisco1>
スクリプト生成部142が、この受信した最後の1行の文字列の「Cisco1>」の先頭2文字(U2)と最後の2文字(U3)とを記憶する。抽出した文字列より、U2とU3は、「Ci」と「1>」とになる。
(ステップV10)さらに、オペレータは、例えばコマンド「show version」入力する。
この時、先に記憶した文字と、入力したコマンドと、エンターキーの入力に基づいて、以下のようなスクリプトとして生成される。
telnet.waitFor('Ci')
match = telnet.waitPrompt('1>')
telnet.send('show version')
telnet.sendSpecial('Enter')
(ステップV11)生成されたスクリプトには、前のスクリプトの記述にさらに追記され、生成されたスクリプトは、以下のようになる。
telnet.send('show interfaces')
telnet.sendSpecial('Enter')

telnet.waitFor('Ci')
match = telnet.waitPrompt('1#')
telnet.send('show version')
telnet.sendSpecial('Enter')

telnet.waitFor('Ci')
match = telnet.waitPrompt('1#')
telnet.send('disable')
telnet.sendSpecial('Enter')

telnet.waitFor('Ci')
match = telnet.waitPrompt('1>')
telnet.send('show version')
telnet.sendSpecial('Enter')
(Step V1) First, the CLI unit 131 displays a prompt “Cisco1 #” as shown in Step V1.
Cisco1 #
(Step V2) Next, in a state where the prompt of Step V1 is issued, the operator inputs the command “show interfaces” using the CLI unit 131 and transmits it to the NE 2 via the NE-IF unit 132.
Cisco1 # show interfaces <Enter key input>
(Step V3) In response to the transmission of the command in Step V2, for example, the NE-IF unit 132 receives the following response information from the NE 2 and displays it on the CLI unit 131.
Fastnet0 / 0 is up, line protocol is up <line feed>
Hardware is AmdFE, address is 000d.286a.98e0 (bia 000d.286a.98e0) <Line feed>
Internet address is 192.168.10.1/24 <line feed>
MTU 1500 bytes, BW 100000 Kbit, DLY 100 usec, <line feed>
reliability 255/255, txload 1/255, rxload 1/255 <new line>
Encapsulation ARPA, loopback not set
Keepalive set (10 sec) <Line feed>
Full-duplex, 100Mb / s, 100BaseTX / FX <line feed>
(Omitted) <Line feed>
355 lost carrier, 0 no carrier
0 output buffer failures, 0 output buffers swapped out <line feed>
Cisco1 #
(Step V4) At this time, the script generation unit 142 extracts the character string “Cisco1 #” received last line. From the extracted character string, U2 and U3 become “Ci” and “1 #”.
(Step V5) Next, for example, the operator inputs the command “show version” and transmits it to NE2.
Cisco1 # show version <Enter key input>
(V6) The response from NE2 to the transmitted command “show version” is as follows.
(Response character string omitted.) <Line feed>
Cisco1 #
At this time, the script generation unit 142 extracts the character string “Cisco1 #” received last line. From the extracted character string, U2 and U3 become “Ci” and “1 #”.
(Step V7) At this time, the script is as follows, and the last four lines of the script are additionally recorded at this timing corresponding to the above.
The outline of this meaning is that when “Ci” and “1 #”, which are U2 and U3, are received, “show version” which is U3 and “Enter” which is U4 are transmitted. Note that transmitting “Enter” which is U4 means transmitting an input of the Enter key.
Detailed description of the script will be described later.
telnet.send ('show interfaces')
telnet.sendSpecial ('Enter')

telnet.waitFor ('Ci')
match = telnet.waitPrompt ('1 #')
telnet.send ('show version')
telnet.sendSpecial ('Enter')
(Step V8) Subsequently, the operator inputs a command “disable”, for example.
Cisco1 # disable <Enter key input>
(V9) In response to the transmitted command “disable”, the following response is returned from NE2.
Cisco1>
The script generation unit 142 stores the first two characters (U2) and the last two characters (U3) of “Cisco1>” in the received character string of the last one line. From the extracted character string, U2 and U3 become “Ci” and “1>”.
(Step V10) Further, the operator inputs a command “show version”, for example.
At this time, the following script is generated based on the previously stored characters, the input command, and the enter key input.
telnet.waitFor ('Ci')
match = telnet.waitPrompt ('1>')
telnet.send ('show version')
telnet.sendSpecial ('Enter')
(Step V11) The generated script is further added to the description of the previous script, and the generated script is as follows.
telnet.send ('show interfaces')
telnet.sendSpecial ('Enter')

telnet.waitFor ('Ci')
match = telnet.waitPrompt ('1 #')
telnet.send ('show version')
telnet.sendSpecial ('Enter')

telnet.waitFor ('Ci')
match = telnet.waitPrompt ('1 #')
telnet.send ('disable')
telnet.sendSpecial ('Enter')

telnet.waitFor ('Ci')
match = telnet.waitPrompt ('1>')
telnet.send ('show version')
telnet.sendSpecial ('Enter')

以上のようにして、スクリプト生成部142は、コマンド文字列(U1)と、そのコマンド文字列送信に対する応答情報の最後の行の最後の文字(U2)と、該応答情報の最後の行の一番先頭の文字(U3)と、コマンド送信の決定キーであるEnterキー(U4)とに基づいてスクリプトを生成する。   As described above, the script generation unit 142 determines the command character string (U1), the last character (U2) of the last line of the response information for the command character string transmission, and the last line of the response information. A script is generated based on the first character (U3) and an Enter key (U4) which is a command transmission decision key.

なお説明においては、改行コードは行の最後に付けるものとして説明しているが、これに限られるものではなく、行の先頭、または、行の先頭と最後に付けるようにしてもよい。改行コードは、文字列において行を識別できるものであれば、いずれの改行コードを用いてもよい。   In the description, the line feed code is described as being attached to the end of the line, but the present invention is not limited to this, and the line feed code may be attached to the beginning of the line or the beginning and end of the line. As long as the line feed code can identify a line in the character string, any line feed code may be used.

次に、ユーザAが、GUI部101と自動実行部144とを介して、例えば、GUI部101の図2のファイルツリー画面より、スクリプト記憶部152に保存してあるスクリプトファイルを選択することにより、選択されたスクリプトファイルに基づいて、自動実行部144が処理を実行する。   Next, when the user A selects a script file stored in the script storage unit 152 from the file tree screen of FIG. 2 of the GUI unit 101 via the GUI unit 101 and the automatic execution unit 144, for example. The automatic execution unit 144 executes processing based on the selected script file.

自動実行部144は、例えば、スクリプトファイルの記述を上から順に処理していく。例えば、上記スクリプトの一部であり、以下のようなスクリプトが書かれてある場合には、
telnet.waitFor('Ci')
match = telnet.waitPrompt('1#')
telnet.send('show version')
telnet.sendSpecial('Enter')
自動実行部144は、NE2から受信する文字列の最後の1行の先頭の2文字が「Ci」であり、最後の2文字が「1#」である場合に、「show version」の文字列と、決定キーである「Enter」に相当する制御文字列を、NE2へ送信する。
自動実行部144は、送信した後、スクリプトに次に記述されている行を実行する。
なお、具体的な処理については、後に、自動接続も含めたスクリプトファイルの生成と実行において、説明する。
For example, the automatic execution unit 144 sequentially processes the description of the script file from the top. For example, if it is a part of the above script and the following script is written,
telnet.waitFor ('Ci')
match = telnet.waitPrompt ('1 #')
telnet.send ('show version')
telnet.sendSpecial ('Enter')
When the first two characters in the last line of the character string received from NE2 are “Ci” and the last two characters are “1 #”, the automatic execution unit 144 sets the character string “show version”. Then, a control character string corresponding to “Enter” as the determination key is transmitted to NE2.
After the transmission, the automatic execution unit 144 executes the next line described in the script.
The specific processing will be described later in the generation and execution of a script file including automatic connection.

(自動接続)
次に、アダプタ生成装置1が、NE2との接続を自動的に行う方法について説明する。なお、以下に説明する機能は、主に、図1の自動接続部171と接続パターン記憶部181とに関する機能である。
なお、以下に説明するネットワーク接続装置1は、アダプタ生成装置1の一部の機能であり、その対応については、後に説明する。
以下に説明するような接続方法を用いることにより、ネットワーク接続装置1は、例えば、接続するNE2が、同じメーカー製である場合や、バージョンが変わった場合などにおいても、NE2と接続することが可能となる。
(Automatic connection)
Next, a description will be given of a method in which the adapter generation device 1 automatically connects to NE2. Note that the functions described below are mainly functions related to the automatic connection unit 171 and the connection pattern storage unit 181 in FIG.
Note that the network connection device 1 described below is a partial function of the adapter generation device 1, and the correspondence will be described later.
By using the connection method described below, the network connection device 1 can connect to the NE 2 even when the NE 2 to be connected is made by the same manufacturer or the version has changed, for example. It becomes.

まず、本発明の実施の形態に用いる基礎的な技術について概説する。
SNMP(Simple Network Management Protocol)とは、TCP/IPネットワークにおいて、ルータやコンピュータ、端末など、ネットワークに接続された通信機器(NE)をネットワーク経由で監視・制御するためのプロトコルである。
First, the basic technique used in the embodiment of the present invention will be outlined.
SNMP (Simple Network Management Protocol) is a protocol for monitoring and controlling a communication device (NE) connected to a network such as a router, a computer, and a terminal in a TCP / IP network.

また、制御の対象となる機器(NE)は、MIB−II(Management Information Base−II)と呼ばれる管理情報データベースを持っており、管理を行なう機器は対象機器のMIB−IIに基づいて適切な設定を行なうものとする。
また、MIB−IIの1つにSysDescr情報があり、SysDescr情報には、対象NEの機器名や機器名のベンダ名(製造元の情報)や対象NEで動作するプログラムの情報(例えば、OS(オペレーティングシステム)のバージョンなど)などの対象NEのシステム情報が含まれる。
The device (NE) to be controlled has a management information database called MIB-II (Management Information Base-II), and the device to be managed is set appropriately based on the MIB-II of the target device. Shall be performed.
One of the MIB-IIs includes SysDescr information. The SysDescr information includes a device name of the target NE, a vendor name of the device name (manufacturer information), and information of a program operating on the target NE (for example, OS (Operating System)). System information of the target NE such as (system version).

また、実施の形態においては、NEは、SNMPエージェント(Simple Network Management Protocol Agent)が動作しているものとする。ここで、SNMPエージェントとは、SNMPに対応したハブなどのネットワーク機器が備えているプログラムで、自機のMIB−IIを管理し、SNMPマネージャからの要求に従って、MIB−IIをSNMPマネージャに渡したり、自機の操作を行なったりするものである。
なお、本発明による実施の形態においては、後述するように、対象NEでSNMPエージェントが動作していない場合においても、適応可能である。
In the embodiment, it is assumed that the NE is operating an SNMP agent (Simple Network Management Protocol Agent). Here, the SNMP agent is a program provided in a network device such as a hub that supports SNMP, manages its own MIB-II, and passes the MIB-II to the SNMP manager according to a request from the SNMP manager. , To operate the machine.
In the embodiment according to the present invention, as will be described later, the present invention can be applied even when the SNMP agent is not operating in the target NE.

以下、図面を参照して、本発明の実施の形態について説明する。図4は、この発明の一実施形態によるネットワーク接続装置1の構成を示す概略ブロック図である。
同図において図1の各部に対応する部分には同一の符号を付け、その説明を省略する。
図4において、ネットワーク接続装置1は、ユーザAへ出力情報を表示し、また、ユーザAからの入力情報を受信する。また、ネットワーク接続装置1は、NE2へネットワーク3(NW3)を介してNE2と接続する。
Embodiments of the present invention will be described below with reference to the drawings. FIG. 4 is a schematic block diagram showing the configuration of the network connection device 1 according to the embodiment of the present invention.
In the figure, portions corresponding to the respective portions in FIG.
In FIG. 4, the network connection device 1 displays output information to the user A and receives input information from the user A. Further, the network connection apparatus 1 connects to the NE 2 via the network 3 (NW 3).

ネットワーク接続装置1は、GUI部101、プロダクト検出部102、PING接続部103、SNMP接続部104、自動ログイン部105、手動ログイン部106、Telnet接続部107、接続パターンファイル生成部108、productcsv記憶部120、自動ログイン用接続パターンファイル記憶部121を有する。   The network connection apparatus 1 includes a GUI unit 101, a product detection unit 102, a PING connection unit 103, an SNMP connection unit 104, an automatic login unit 105, a manual login unit 106, a Telnet connection unit 107, a connection pattern file generation unit 108, and a product csv storage unit. 120, a connection pattern file storage unit 121 for automatic login.

なお、図4のプロダクト検出部102、自動ログイン部105、手動ログイン部106、接続パターンファイル生成部108は図1の自動接続部171に相当し、また、図4のPING接続部103、SNMP接続部104、Telnet接続部107は、図1のNE−IF部132に相当し、また、図4のproductcsv記憶部120、自動ログイン用接続パターンファイル記憶部121は図1の接続パターン記憶部181に相当するものである。   The product detection unit 102, automatic login unit 105, manual login unit 106, and connection pattern file generation unit 108 in FIG. 4 correspond to the automatic connection unit 171 in FIG. 1, and the PING connection unit 103 and SNMP connection in FIG. Unit 104 and Telnet connection unit 107 correspond to NE-IF unit 132 in FIG. 1, and productcsv storage unit 120 and automatic login connection pattern file storage unit 121 in FIG. 4 are connected to connection pattern storage unit 181 in FIG. It is equivalent.

productcsv記憶部120は、NEの機器のOS名やNEの機器の製造元(ベンダ)を、図5に示すような、Product.csvファイルとして記憶する。Product.csvファイルには、NEの接続情報である後述のプロダクトファイルを一意に決定する文字列が記述されている。   The product csv storage unit 120 stores the OS name of the NE device and the manufacturer (vendor) of the NE device as shown in FIG. Store as a csv file. Product. In the csv file, a character string for uniquely determining a later-described product file, which is NE connection information, is described.

図5のProduct.csvファイルには、NEの機器のOS名やNEの機器の製造元(ベンダ)の名が記述されている。これらは、ユーザAが管理しやすいような分類で任意に記述することが可能である。
例えば、同じ製造元のNEに対して同じログイン方法をしたい場合には、製造元により分類してもよいし、同じOSのNEに対して同じログイン方法をしたい場合には、同じOSにより分類してもよい。また、分類をどのようにするかも任意である。
例えば、図5においては、NEのOS名としてOS1、OS2006、OSY、OS1500、OSZ、OSXPがあり、NEのベンダ名としてRED、BLUE、GREEN、PURPLEがある。なお、NEのOS名には、NEのOS名だけでなくOSのバージョンを含めてもよく、NEのベンダ名には、NEのベンダ名だけでなくNEのシリーズ名やそのバージョンなどを含めた情報であってもよい。
Product. Of FIG. The csv file describes the OS name of the NE device and the name of the manufacturer (vendor) of the NE device. These can be arbitrarily described in a classification that is easy for the user A to manage.
For example, if you want to use the same login method for NEs of the same manufacturer, you may classify by manufacturer, or if you want to use the same login method for NEs of the same OS, Good. Also, how the classification is performed is arbitrary.
For example, in FIG. 5, the OS names of NE are OS1, OS2006, OSY, OS1500, OSZ, OSXP, and the NE vendor names are RED, BLUE, GREEN, and PURPLE. The NE OS name may include not only the NE OS name but also the OS version, and the NE vendor name may include not only the NE vendor name but also the NE series name and its version. It may be information.

自動ログイン用接続パターンファイル記憶部121は、複数の接続パターンファイルを記憶する機能を有する。例えば、図4に示すように、F01、F02、・・・、F08、・・・となる複数の接続パターンファイルを記憶する。
自動ログイン用接続パターンファイル記憶部121が記憶するそれぞれの接続パターンファイルには、該当する対象NEに接続するための情報(接続情報)が記憶されている。
The connection pattern file storage unit 121 for automatic login has a function of storing a plurality of connection pattern files. For example, as shown in FIG. 4, a plurality of connection pattern files that are F01, F02,..., F08,.
Each connection pattern file stored in the connection pattern file storage unit 121 for automatic login stores information (connection information) for connecting to the target NE.

接続パターンファイルの一例を図6に示す。実施の形態においては、接続パターンファイルはXML(eXtensible Markup Language)ファイルである。接続パターンファイルの一部には、対象NEのプロダクトを示すProduct.csvに記述される一つのユニークな文字列が存在し、この文字列により接続パターンファイルのそれぞれが識別される。   An example of the connection pattern file is shown in FIG. In the embodiment, the connection pattern file is an XML (extensible Markup Language) file. Part of the connection pattern file includes Product. Indicating the product of the target NE. There is one unique character string described in csv, and each of the connection pattern files is identified by this character string.

例えば、図6では、<product></product>タグで囲まれている「RED」という文字列が、この接続パターンファイルのユニークな文字列となる。
また、接続パターンファイルには、対象NEに接続するための情報である、ログイン名情報、パスワード情報とともに、対象NEが送信してくるプロンプトに関する情報であるプロンプト情報も記憶してある。ここで、プロンプト情報とは、対象NEが、認証のために送信してくる「Username:」や「Password:」などのプロンプトの文字列である。
For example, in FIG. 6, a character string “RED” surrounded by <product></product> tags is a unique character string of the connection pattern file.
The connection pattern file also stores prompt information, which is information related to a prompt transmitted by the target NE, together with login name information and password information that are information for connecting to the target NE. Here, the prompt information is a character string of a prompt such as “Username:” or “Password:” sent from the target NE for authentication.

例えば、図6において、<LoginName>タグと</LoginName>タグとで囲まれた文字列(例えば、「neso」)がユーザ名情報であり、<Password>タグと</Password>タグとで囲まれた文字列(例えば、「nesopassword」)がパスワード情報であり、<LoginPrompt>タグと</LoginPrompt>タグとで囲まれた文字列(例えば、「Username:」)がログインを入力するためのプロンプト情報であり、<PasswordPrompt>タグと</PasswordPrompt>タグとで囲まれた文字列(例えば「Password:」)がパスワードを入力するためのプロンプト情報である。   For example, in FIG. 6, a character string (for example, “neso”) surrounded by a <LoginName> tag and a </ LoginName> tag is user name information, and is surrounded by a <Password> tag and a </ Password> tag. The character string (for example, “nesopassword”) is password information, and a character string (for example, “Username:”) surrounded by the <LoginPromp> tag and the </ LoginPrompt> tag is a prompt for inputting a login. Information, and a character string (for example, “Password:”) surrounded by a <PasswordPrompt> tag and a </ PasswordPrompt> tag is prompt information for inputting a password.

接続パターンファイルの例に示したタグ内の文字列についてはこの例に限るものではない。図6の例では接続パターンファイルは、インタフェース仕様(システム情報)ごとに一つのファイルが存在する前提で示されているが、タブ内の文字列を変更し全ての情報が一つのファイルにまとめられていても良い。
実施の形態においては、例えば図5に示すproductcsv記憶部120のProduct.csvファイルに含まれる文字列の1つと、例えば図6に示す自動ログイン用接続パターンファイル記憶部121が記憶する1つの接続パターンファイルの<product></product>タグで囲まれる文字列とが一致する。
The character string in the tag shown in the connection pattern file example is not limited to this example. In the example of FIG. 6, the connection pattern file is shown on the assumption that one file exists for each interface specification (system information). However, by changing the character string in the tab, all the information is combined into one file. May be.
In the embodiment, for example, Product. Of the productcsv storage unit 120 shown in FIG. One of the character strings included in the csv file matches the character string enclosed in the <product></product> tag of one connection pattern file stored in the connection pattern file storage unit 121 for automatic login shown in FIG. To do.

図4のネットワーク接続装置1の説明に戻る。GUI部101は、表示装置と入力装置とを有しており、ユーザが入力するためのまたは確認するための出力情報をユーザAへ表示装置を介して表示し、ユーザBが入力装置を用いて入力した入力情報を受信する機能を有する。
ここで、例えば、表示装置とはCRT(Cathode Ray Tube)や液晶表示装置等であり、入力装置とはキーボードやマウス等の入力デバイスのことである。
Returning to the description of the network connection device 1 of FIG. The GUI unit 101 has a display device and an input device, and displays output information for the user to input or confirm to the user A via the display device, and the user B uses the input device. It has a function of receiving input information.
Here, for example, the display device is a CRT (Cathode Ray Tube), a liquid crystal display device, or the like, and the input device is an input device such as a keyboard or a mouse.

例えば、GUI部101がユーザへ表示装置を介して出力する出力情報は、ユーザが接続を希望するNE(以降、対象NEとする)を指定するための情報であり、対象NEのIPアドレスを直接入力するための画面の情報や、対象NEのIPアドレスと関連付けられたアイコンを表示する画面の情報を表示する。
また、例えば、GUI部101がユーザから入力装置を介して受信する入力情報は、直接入力された対象NEのIP、または、選択されたアイコンに関連付けられた対象NEのIPアドレスである。
For example, the output information output from the GUI unit 101 to the user via the display device is information for designating the NE that the user desires to connect to (hereinafter referred to as the target NE), and the IP address of the target NE is directly specified. Information on a screen for inputting and information on a screen for displaying an icon associated with the IP address of the target NE are displayed.
For example, the input information that the GUI unit 101 receives from the user via the input device is the IP of the target NE that is directly input or the IP address of the target NE that is associated with the selected icon.

また、GUI部101は、入力したIPアドレスに基づいて、自動接続を行うのか、または、手動接続を行うのかの接続方法の情報を受信する機能を有する。
また、GUI部101は、入力された接続方法の情報が自動接続の場合には、入力された対象NEのIPアドレスをプロダクト検出部102および自動ログイン部105へ送信し、入力された接続方法の情報が手動接続の場合には、入力された対象NEのIPアドレスを手動ログイン部106へ送信する機能を有する。
Further, the GUI unit 101 has a function of receiving information on a connection method for performing automatic connection or manual connection based on the input IP address.
In addition, when the input connection method information is automatic connection, the GUI unit 101 transmits the input IP address of the target NE to the product detection unit 102 and the automatic login unit 105, and the input connection method information When the information is manual connection, it has a function of transmitting the input IP address of the target NE to the manual login unit 106.

プロダクト検出部102は、対象NEのIPアドレスをGUI部101から受信し、受信したIPアドレスに基づき、対象NEのプロダクト情報を検出し、検出したプロダクト情報を自動ログイン部105へ送信する機能を有する。
プロダクト検出部102が、受信したIPアドレスに基づき対象NEのプロダクト情報を検出する方法は、PING接続部103を介して対象NEが稼動しているか否かを検出し、稼動している場合には、SNMP接続部104を介して対象NEのMIB−IIの一つであるSysDescr情報を取得し、次に、取得したSysDescr情報(の文字列)がproductcsv記憶部120のProduct.csvファイルの記述内に存在するか否かを検出し、検出結果が存在する場合には、SysDescr情報(の文字列)と一致するProduct.csvファイルの記述をプロダクト情報として検出する。
The product detection unit 102 has a function of receiving the IP address of the target NE from the GUI unit 101, detecting the product information of the target NE based on the received IP address, and transmitting the detected product information to the automatic login unit 105. .
The product detection unit 102 detects the product information of the target NE based on the received IP address by detecting whether the target NE is operating via the PING connection unit 103. , SysDescr information that is one of the MIB-IIs of the target NE is acquired via the SNMP connection unit 104, and then the acquired SysDescr information (a character string thereof) is stored in the Product. It is detected whether or not it exists in the description of the csv file, and if the detection result exists, the Product. The description of the csv file is detected as product information.

PING接続部103は、プロダクト検出部102から受信したIPアドレスに基づき、IPアドレスにより指定されるNEが正常に稼動しているか否かの検出を行う機能を有する。
PING接続部103が行うIPアドレスにより指定されるNEが正常に稼動しているか否かの検出の方法は、例えば、PING接続部103が、IPアドレスにより指定されるNEに対してIPパケットを発行し、そのパケットがNEに正しく届き、NEから発行したIPパケットの応答が行われ、IPパケットの応答をNEから受信するか否かを検出することにより行う。
また、NEが正常に稼動していることの検出により、NEまでのネットワークが正常か否かの検出を行うことも可能である。
The PING connection unit 103 has a function of detecting whether or not the NE specified by the IP address is operating normally based on the IP address received from the product detection unit 102.
The method for detecting whether or not the NE specified by the IP address performed by the PING connection unit 103 is operating normally is, for example, that the PING connection unit 103 issues an IP packet to the NE specified by the IP address Then, the packet arrives correctly at the NE, an IP packet issued from the NE is responded, and whether or not the IP packet response is received from the NE is detected.
It is also possible to detect whether the network up to the NE is normal or not by detecting that the NE is operating normally.

SNMP接続部104は、プロダクト検出部102から受信したIPアドレス情報に基づき、IPアドレスにより指定されるNE(対象NE)のMIB−IIの一つであるSysDescr情報を取得する機能を有する。
SNMP接続部104が、対象NEのMIB−IIの一つであるSysDescr情報を取得する方法は、例えば、対象NEとSNMPによるSNMP GetコマンドによりMIB−IIを取得し、MIB−IIの一つであるSysDescr情報を取得する。
The SNMP connection unit 104 has a function of acquiring SysDescr information that is one of the MIB-IIs of the NE (target NE) specified by the IP address based on the IP address information received from the product detection unit 102.
The SNMP connection unit 104 acquires the SysDescr information that is one of the MIB-IIs of the target NE, for example, by acquiring the MIB-II by the SNMP Get command by the target NE and SNMP, and by using one of the MIB-IIs. Get some SysDescr information.

自動ログイン部105は、IPアドレスをGUI部101から受信し、また、プロダクト検出部102から対象NEのプロダクト情報を受信し、受信したプロダクト情報に基づき接続パターンファイルを自動ログイン用接続パターンファイル記憶部121から選択し、選択した接続パターンファイルと受信したIPアドレスに基づいてTelnet接続部107を介して対象NEにログインをする機能を有する。
ここで、自動ログイン部105が受信したプロダクト情報に基づき接続パターンファイルを選択する方法は、自動ログイン部105が、接続パターンファイルにおいて<product></product>タグで囲まれている文字列が、受信したプロダクト情報と一致する接続パターンファイルを、自動ログイン用接続パターンファイル記憶部121から選択することにより実行する。
The automatic login unit 105 receives the IP address from the GUI unit 101, receives the product information of the target NE from the product detection unit 102, and stores the connection pattern file based on the received product information as a connection pattern file storage unit for automatic login 121 has a function of logging in to the target NE via the Telnet connection unit 107 based on the selected connection pattern file and the received IP address.
Here, the method of selecting the connection pattern file based on the product information received by the automatic login unit 105 is that the automatic login unit 105 has a character string enclosed in <product></product> tags in the connection pattern file. The connection pattern file that matches the received product information is selected from the connection pattern file storage unit 121 for automatic login.

手動ログイン部106は、GUI部101から対象NEのIPアドレスを受信し、受信したIPアドレスについての接続するための接続情報を生成し、生成した接続情報に基づいて、受信したIPアドレスにより指定される対象NEへ接続する機能を有する。
また、手動ログイン部106は、生成した接続情報に基づいて、受信したIPアドレスにより指定される対象NEへ接続が成功した場合には、後述の接続パターンファイル生成部108を介して、生成した接続情報を接続パターンファイルとして自動ログイン用接続パターンファイル記憶部121に記憶する機能を有する。
The manual login unit 106 receives the IP address of the target NE from the GUI unit 101, generates connection information for connection with the received IP address, and is designated by the received IP address based on the generated connection information. A function to connect to the target NE.
On the basis of the generated connection information, the manual login unit 106, when the connection to the target NE specified by the received IP address is successful, the generated connection via the connection pattern file generation unit 108 described later. It has a function of storing information in the connection pattern file storage unit 121 for automatic login as a connection pattern file.

Telnet接続部107は、IPアドレスと接続情報とを自動ログイン部105または手動ログイン部106から受信し、受信したIPアドレスにより指定される対象NEに、受信した接続情報に基づいて接続をする機能を有する。   The Telnet connection unit 107 has a function of receiving an IP address and connection information from the automatic login unit 105 or the manual login unit 106 and connecting to the target NE specified by the received IP address based on the received connection information. Have.

接続パターンファイル生成部108は、手動ログイン部106からIPアドレスと接続情報とを受信し、受信したIPアドレスと接続情報に基づき接続パターンファイルを自動ログイン用接続パターンファイル記憶部121に生成する機能を有する。   The connection pattern file generation unit 108 has a function of receiving an IP address and connection information from the manual login unit 106 and generating a connection pattern file in the automatic login connection pattern file storage unit 121 based on the received IP address and connection information. Have.

次に、本発明の一実施形態によるネットワーク接続装置1の動作を図7と図8のフローチャート図を用いて説明する。
まず図7を用いて、第1の動作例として、接続対象であるNEのプロダクトを検出し、検出したNEのプロダクトが有効な接続パターンファイルを予め登録してあるXMLファイルから選択し、選択した接続パターンファイルの内容であるユーザ名やパスワードなどの接続情報に基づき、対象NEに自動ログインする場合の動作を説明する。
Next, the operation of the network connection device 1 according to the embodiment of the present invention will be described with reference to the flowcharts of FIGS.
First, referring to FIG. 7, as a first operation example, a NE product to be connected is detected, and a connection pattern file in which the detected NE product is valid is selected from pre-registered XML files. An operation when automatically logging in to the target NE will be described based on connection information such as a user name and a password that are the contents of the connection pattern file.

まず、GUI部101は、ユーザAからの接続するNE(対象NE)のIPアドレスの入力を受信する(ステップA2)。
次に、GUI部101は、ユーザAからの入力した対象NEに、自動接続するのか手動接続するのかの選択入力を受信する(ステップA3)。ここでは、ユーザAは自動接続を選択入力したとして説明する。
First, the GUI unit 101 receives an input of the IP address of the NE (target NE) to be connected from the user A (step A2).
Next, the GUI unit 101 receives a selection input as to whether to connect automatically or manually to the target NE input from the user A (step A3). Here, it is assumed that the user A has selected and input automatic connection.

対象NEのIPアドレスを受信し、また、自動接続する接続方法の情報を受信したGUI部101は、対象NEのIPアドレスをプロダクト検出部102と自動ログイン部105へ送信する。
次に、対象NEのIPアドレスを受信したプロダクト検出部102は、PING接続部103を介して、対象NEが正常に稼動しているか否かの検出を実行する(ステップA4)。ここでは、対象NEは正常に稼動していると検出されたものとして説明する。
次に、プロダクト検出部102は、SNMP接続部104を介して、対象NEのMIB−IIの一つであるSysDescrの情報を取得する(ステップA5)。
The GUI unit 101 that has received the IP address of the target NE and has received information on the connection method for automatic connection transmits the IP address of the target NE to the product detection unit 102 and the automatic login unit 105.
Next, the product detection unit 102 that has received the IP address of the target NE detects whether or not the target NE is operating normally via the PING connection unit 103 (step A4). Here, the target NE will be described as being detected as operating normally.
Next, the product detection unit 102 acquires information on SysDescr, which is one of the MIB-IIs of the target NE, via the SNMP connection unit 104 (step A5).

次に、SNMP接続部104は、取得したSysDescrの文字列情報を、プロダクト検出部102に送信する。SysDescrの文字列情報をSNMP接続部104から受信したプロダクト検出部102は、SysDescrの文字列情報の中で、productcsv記憶部120のProduct.csvファイルに記述されているものを検出する(ステップA6)。ここでは、Product.csvにSysDescrの文字列が存在したものとして説明する。   Next, the SNMP connection unit 104 transmits the acquired character string information of SysDescr to the product detection unit 102. The product detection unit 102 that has received the SysDesc character string information from the SNMP connection unit 104 includes, in the SysDescr character string information, the Product.product in the productcsv storage unit 120. What is described in the csv file is detected (step A6). Here, Product. Description will be made assuming that the character string of SysDescr exists in csv.

Product.csvファイルにSysDescrの文字列と一致する文字列が存在することを検出した場合、プロダクト検出部102は自動ログイン部105に検出した文字列(プロダクト情報)を送信する(ステップA6)。
ここでは、SysDescrの文字列情報とProduct.csvに記述されている情報とで一致した文字列が「RED」であったとし、「RED」という文字列(プロダクト情報)を、プロダクト検出部102が自動ログイン部105へ送信するとして説明する。
Product. When it is detected that there is a character string that matches the character string of SysDescr in the csv file, the product detection unit 102 transmits the detected character string (product information) to the automatic login unit 105 (step A6).
Here, the character string information of SysDescr and Product. It is assumed that the character string matched with the information described in csv is “RED”, and the character string “product information” (product information) is transmitted to the automatic login unit 105 by the product detection unit 102.

次に、自動ログイン部105はプロダクト情報をプロダクト検出部102から受信し、受信したプロダクト情報(文字列の「RED」)に基づき、接続パターンファイルを自動ログイン用接続パターンファイル記憶部121から検索する(ステップA6)。
例えば、自動ログイン部105は、受信したプロダクト情報が「RED」という文字列の場合、<product>タグと</product>タグとで囲まれる文字列が「RED」である接続パターンファイルを、自動ログイン用接続パターンファイル記憶部121から選択する。
この場合、自動ログイン部105が選択した接続パターンファイルは、例えば、図6で示す接続パターンファイルであるとする。
Next, the automatic login unit 105 receives the product information from the product detection unit 102 and searches the connection pattern file from the automatic login connection pattern file storage unit 121 based on the received product information (character string “RED”). (Step A6).
For example, when the received product information is a character string “RED”, the automatic login unit 105 automatically selects a connection pattern file whose character string “RED” is surrounded by a <product> tag and a </ product> tag. Selection is made from the connection pattern file storage unit 121 for login.
In this case, the connection pattern file selected by the automatic login unit 105 is, for example, the connection pattern file shown in FIG.

次に、自動ログイン部105は、GUI部101から受信したIPアドレスにより指定される対象NEへ、選択した接続パターンファイルに基づき、Telnet接続部107を介して、ログインを実行する(ステップA7)。
自動ログイン部105が対象NEへログインを実行する方法は、例えば、まず、自動ログイン部105がIPアドレスにより指定される対象NEへTelnet接続部107を介してTelnetにより接続する。
Next, the automatic login unit 105 executes login to the target NE specified by the IP address received from the GUI unit 101 via the Telnet connection unit 107 based on the selected connection pattern file (step A7).
As a method for the automatic login unit 105 to log in to the target NE, for example, first, the automatic login unit 105 connects to the target NE specified by the IP address by Telnet via the Telnet connection unit 107.

その後、自動ログイン部105は、選択した接続パターンファイルの<LoginPrompt>タグと</LoginPrompt>タグとで囲まれた文字列または<PasswordPrompt>タグと</PasswordPrompt>タグとで囲まれた文字列が対象NEから送信されてくるのを待つ。
この場合、対象NEから「Username:」または「Password:」の文字列が送信されてくるのを待つことになる。
Thereafter, the automatic login unit 105 receives a character string enclosed between the <LoginPromp> tag and the </ LoginPrompt> tag or a character string enclosed between the <PasswordPrompt> tag and the </ PasswordPrompt> tag of the selected connection pattern file. Wait for transmission from the target NE.
In this case, it waits for the character string “Username:” or “Password:” to be transmitted from the target NE.

次に、自動ログイン部105は、対象NEから文字列を受信し、受信した文字列が、選択した接続パターンファイルの<LoginPrompt>タグと</LoginPrompt>タグとで囲まれた文字列の場合には<LoginName>タグと</LoginName>タグで囲まれた文字列を対象NEへ送信し、また、受信した文字列が選択した接続パターンファイルの<PasswordPrompt>タグと</PasswordPrompt>タグとで囲まれた文字列の場合には<Password>タグと</Password>タグとで囲まれた文字列を送信する。   Next, the automatic login unit 105 receives a character string from the target NE, and when the received character string is a character string surrounded by a <LoginPromp> tag and a </ LoginPromp> tag of the selected connection pattern file. Transmits a character string enclosed by the <LoginName> tag and the </ LoginName> tag to the target NE, and the received character string is enclosed by the <PasswordPrompt> tag and the </ PasswordPrompt> tag of the selected connection pattern file. In the case of the received character string, the character string enclosed by the <Password> tag and the </ Password> tag is transmitted.

この場合、対象NEから文字列「Username:」を受信した場合には、文字列「neso」を対象NEへ送信し、また、対象NEから文字列「Password:」を受信した場合には文字列「nesopassword」を対象NEへ送信する。
これにより、例えば、Telnetなどの通信プロトコル上による対象NEとの接続が完了し、その後、ユーザAは、CLI上で対象NEの設定などが行なえるようになる。
In this case, when the character string “Username:” is received from the target NE, the character string “neso” is transmitted to the target NE, and when the character string “Password:” is received from the target NE, the character string “Nesopassword” is transmitted to the target NE.
Thereby, for example, the connection with the target NE on the communication protocol such as Telnet is completed, and then the user A can set the target NE on the CLI.

例えば、対象NEに接続したことにより、例えば、GUI部101が、CLIコンソールを生成し、生成したCLIコンソールに対象NEからのプロンプトを表示する(ステップA8)。その後、GUI部101が、CLIコンソールを介してユーザAからのコマンドを入力し対象NEへ送信し(ステップA9)、対象NEから応答を取得し、取得した応答をCLIコンソールへ表示する(ステップA10)。その後、GUI部101が、ステップA9とステップA10の処理を繰り返すことにより、ユーザAが対象NEの設定などをすることができる。
その後、GUI部101が、ユーザAからの対象NEとの接続終了の情報を受信し、受信した接続終了の情報を対象NEへ送信し(ステップA11)、対象NEと接続を切断し(ステップA12)、処理を終了する。
For example, by connecting to the target NE, for example, the GUI unit 101 generates a CLI console, and displays a prompt from the target NE on the generated CLI console (step A8). After that, the GUI unit 101 inputs a command from the user A via the CLI console and transmits it to the target NE (step A9), acquires a response from the target NE, and displays the acquired response on the CLI console (step A10). ). Thereafter, the GUI unit 101 repeats the processes of step A9 and step A10, so that the user A can set the target NE.
Thereafter, the GUI unit 101 receives information on the connection termination with the target NE from the user A, transmits the received connection termination information to the target NE (step A11), and disconnects the connection with the target NE (step A12). ), The process is terminated.

なお、自動ログイン部105は、先に選択した接続パターンファイルに、接続した後の対象NEからのプロンプト情報(例えば「>」)や、suやenableなどの権限を変更するコマンドの文字列と、それに関するパスワードプロンプト文字列やパスワード文字列が先に選択した接続パターンファイルにある場合には、これらを用いて、接続した対象NEにおいて、権限を変更する処理を実行する。   The automatic login unit 105 includes, in the previously selected connection pattern file, prompt information (for example, “>”) from the target NE after connection, a character string of a command for changing authority such as su and enable, When the password prompt character string and the password character string related thereto are in the previously selected connection pattern file, the authority changing process is executed in the connected NE using these.

例えば、ステップA8において、対象NEからのプロンプトの文字列「>」を受信したことを自動ログイン部105が検出した場合、自動ログイン部105は、先に選択した接続パターンファイルに記述してある権利変更のコマンドである「su」または「enable」を送信し、パスワードを入力するためのプロンプトの文字列(例えば、「Password:」)を対象NEから受信するのを待ち、パスワードを入力するためのプロンプトの文字列を対象NEから受信すると、パスワード文字列を送信する。
以上により、自動ログイン部105が、選択した接続パターンファイルに基づき、対象NEに接続し、権限変更を実行することが可能となる。
For example, when the automatic login unit 105 detects that the character string “>” of the prompt from the target NE is received in step A8, the automatic login unit 105 sets the right described in the connection pattern file selected earlier. Send the change command “su” or “enable”, wait for receiving the character string of the prompt for entering the password (for example, “Password:”) from the target NE, and enter the password When the prompt character string is received from the target NE, the password character string is transmitted.
As described above, the automatic login unit 105 can connect to the target NE and execute authority change based on the selected connection pattern file.

なお、対象NEがユーザ名やパスワード入力を求めない場合に備え、図6で例示した接続パターンファイルのタグで囲まれた文字列に、例えば「BLANK」といった予約文字列を記述しておき、自動ログイン部105は、接続パターンファイルに基づき対象NEへユーザ名などを送信する場合に、タグで囲まれたユーザ名の文字列に予約文字列である「BLANK」を検出した場合には、ユーザ名などの文字列を送らずに、Enterキーの特殊文字(Enterキーに相当する文字情報)を送信することも可能である。   Note that a reserved character string such as “BLANK” is described in the character string surrounded by the tags of the connection pattern file illustrated in FIG. When the login unit 105 transmits a user name or the like to the target NE based on the connection pattern file, the login unit 105 detects the reserved character string “BLANK” in the character string of the user name surrounded by the tag. It is also possible to send a special character of the Enter key (character information corresponding to the Enter key) without sending a character string such as.

また、上記説明においては、プロダクト検出部102が、受信したSysDescr情報がproductcsv記憶部120のProduct.csvファイルの記述内に、SysDescrの文字列が存在することか否かを検出することにより、対象NEの接続先プロダクトの検出をしたが、productcsv記憶部120のProduct.csvファイルを用いず、プロダクト検出部102が、受信したSysDescr情報を自動ログイン部105へ送信し、自動ログイン部105が受信したSysDescr情報の文字列を含む接続パターンファイルを自動ログイン用接続パターンファイル記憶部121から直接選択するようにしてもよい。   In the above description, the product detection unit 102 determines that the received SysDescr information is stored in Product.csv of the productcsv storage unit 120. The connection destination product of the target NE is detected by detecting whether or not the character string of SysDescr is present in the description of the csv file, but the Product.c in the productcsv storage unit 120 is detected. The product detection unit 102 transmits the received SysDescr information to the automatic login unit 105 without using the csv file, and the connection pattern file including the character string of the SysDescr information received by the automatic login unit 105 is stored in the connection pattern file for automatic login. You may make it select directly from the part 121. FIG.

第1の動作例では、接続するための接続パターンファイルが既に存在し、接続パターンファイルの情報を用いて自動接続する一実施形態によるネットワーク接続装置1の動作について述べた。
次に、一実施形態によるネットワーク接続装置1に接続パターンファイルが存在しない場合の動作について説明する。接続パターンファイルが存在しない場合に、CLIによる運用知識のみを用いて、以後の運用で自動ログインするための設定処理を行なう第2の動作例を図7と図8とを用いて説明する。
In the first operation example, the operation of the network connection device 1 according to the embodiment in which the connection pattern file for connection already exists and the automatic connection is performed using the information of the connection pattern file has been described.
Next, an operation when the connection pattern file does not exist in the network connection device 1 according to the embodiment will be described. A second operation example for performing a setting process for automatic login in the subsequent operation using only the operation knowledge by CLI when there is no connection pattern file will be described with reference to FIGS.

まず、図7において、GUI部101は、ユーザAからの接続するNE(対象NEとする)のIPアドレスの入力を受信する(ステップA2)。次に、GUI部101は、ユーザAからの入力した対象NEに、自動接続するのか手動接続するのかの選択入力を受信する(ステップA3)。ここまでの処理は、第1の動作例と同じである。次に、ステップA3で、ユーザAは手動接続を選択入力したとして説明する。   First, in FIG. 7, the GUI unit 101 receives an input of an IP address of a NE (target NE) to be connected from the user A (step A2). Next, the GUI unit 101 receives a selection input as to whether to connect automatically or manually to the target NE input from the user A (step A3). The processing so far is the same as the first operation example. Next, it is assumed that user A selects and inputs manual connection in step A3.

対象NEのIPアドレスを受信し、また、手動接続する接続方法の情報を受信したGUI部101は、対象NEのIPアドレスを手動ログイン部106へ送信する(図7のD1から図8のD1へ)。
次に、手動ログイン部106は、GUI部101を介してユーザAへ、接続パターンファイルの選択かプロンプト情報の入力の選択かを表示する(図8のステップB4)。ここでは、ユーザAは、プロンプト情報の入力を選択したものとして説明する。
次に、手動ログイン部106は、GUI部101を介してユーザAへ、接続に必要な情報(プロンプト情報)を入力するための画面を表示し、ユーザAがGUI部101を介して入力したプロンプト情報を受信する(ステップB5)。
The GUI unit 101 that has received the IP address of the target NE and also received information on the connection method for manual connection transmits the IP address of the target NE to the manual login unit 106 (from D1 in FIG. 7 to D1 in FIG. 8). ).
Next, the manual login unit 106 displays to the user A via the GUI unit 101 whether to select a connection pattern file or input prompt information (step B4 in FIG. 8). Here, it is assumed that the user A has selected input of prompt information.
Next, the manual login unit 106 displays a screen for inputting information (prompt information) necessary for connection to the user A via the GUI unit 101, and the prompt input by the user A via the GUI unit 101. Information is received (step B5).

例えば、手動ログイン部106が表示するプロンプト情報を入力するための画面は、図9に示すように、対象NEのIPアドレス、ログインプロンプト、ログインユーザ名、パスワードプロンプト、パスワードなどを入力する入力欄を有する。
ユーザAは、図9の入力画面の各入力欄に、それぞれに該当する情報を入力する。
For example, the screen for inputting prompt information displayed by the manual login unit 106 includes an input field for inputting the IP address, login prompt, login user name, password prompt, password, etc. of the target NE as shown in FIG. Have.
User A inputs information corresponding to each of the input fields of the input screen of FIG.

ユーザAは、図9の入力画面に基づき、対象NEのIPアドレス、ログインユーザ名、パスワード、必要な場合はユーザ権限を変更するコマンドを入力する。さらに、ユーザAは、ログインユーザ名を入力する際のプロンプト文字列(例では「Username:」など)、パスワードを入力する際のプロンプト(例では「Password:」など)、ユーザ権限を変更するコマンドを入力する際のプロンプト文字列(例えば、「>」など)を入力する。
なお、手動ログイン部106は、プロンプト情報を入力するための画面を表示する時に、対象NEのIPアドレスの入力欄に、先に手動ログイン部106がGUI部101から受信した対象NEのIPアドレスを予め入力して表示してもよい。
User A inputs a command for changing the IP address, login user name, password, and, if necessary, user authority of the target NE based on the input screen of FIG. Furthermore, the user A prompts a character string for entering a login user name (eg “Username:” in the example), a prompt for entering a password (eg “Password:” in the example), and a command for changing user authority. A prompt character string (for example, “>”) is input.
When the manual login unit 106 displays a screen for inputting prompt information, the IP address of the target NE previously received from the GUI unit 101 by the manual login unit 106 is displayed in the input field of the IP address of the target NE. You may input and display beforehand.

次に、手動ログイン部106は、入力されたプロンプト情報の文字列情報に基づいて、自動ログインのための一時的な接続パターンファイル(テンポラリ接続パターンファイルとする)を、例えば手動ログイン部106のメモリ内に、生成する。   Next, the manual login unit 106 uses, for example, a memory of the manual login unit 106 as a temporary connection pattern file for automatic login (referred to as a temporary connection pattern file) based on the character string information of the input prompt information. Generate within.

実施の形態においては、図9に示した画面により入力された情報は、例えば図6に示すXMLファイルに変換して保存される。例えば、テンポラリ接続パターンファイルには、タグ<LoginPrompt>と</LoginPrompt>との間には、例えば「Username:」などの入力された文字列、タグ<PasswordPrompt>と</PasswordPrompt>との間には例えば「Password:」などの入力された文字列が記述される。   In the embodiment, the information input on the screen shown in FIG. 9 is converted into an XML file shown in FIG. 6, for example, and stored. For example, in the temporary connection pattern file, between the tags <LoginPromp> and </ LoginPromp>, for example, an input character string such as “Username:”, between the tags <PasswordPrompt> and </ PasswordPrompt>. For example, an input character string such as “Password:” is described.

また、テンポラリ接続パターンファイルにおいて、タグ<LoginName>と</LoginName>との間には入力されたユーザ名の文字列が記述され、<Password></Password>内には入力されたパスワード文字列が記述される。
さらにテンポラリ接続パターンファイルにおいて、図9の入力において権限を変更するコマンドが入力された場合には、<Prompt></Prompt>内に例えば入力された「>」の文字列が記述され、<EnableCommand></EnableCommand>には入力された「enable」や「su」といったコマンドの文字列が記述され、<EnablePassword></EnablePassword>内には権限を変更するための入力されたパスワードの文字列が記述される。
In the temporary connection pattern file, a character string of the input user name is described between the tags <LoginName> and </ LoginName>, and the input password character string is included in <Password></Password>. Is described.
Further, in the temporary connection pattern file, when a command for changing authority is input in the input of FIG. 9, for example, a character string “>” input in <Promp></Prompt> is described, and <EnableCommand ></EnableCommand> describes a character string of the input command such as “enable” or “su”, and <EnablePassword></EnablePassword> includes a character string of the input password for changing the authority. Described.

次に、手動ログイン部106が、生成したテンポラリ接続パターンファイルに基づき、Telnet接続部を介して、GUI部101から受信したIPアドレスにより指定される対象NEへ接続(自動ログイン)をする(ステップB6)。
ここで、手動ログイン部106が実行する対象NEへの接続(図8のステップB6)は、第1の動作例において、自動ログイン部105がプロダクトファイルに基づいて対象NEへ接続した接続(図7のステップA7)と同じである。
Next, based on the generated temporary connection pattern file, the manual login unit 106 connects (automatic login) to the target NE specified by the IP address received from the GUI unit 101 via the Telnet connection unit (step B6). ).
Here, the connection to the target NE executed by the manual login unit 106 (step B6 in FIG. 8) is the connection (FIG. 7) that the automatic login unit 105 connects to the target NE based on the product file in the first operation example. Step A7).

例えば、手動ログイン部106は、Telnet接続部107を介して対象NEに接続後、入力されたテンポラリプロダクトファイルのプロンプト情報である例えば「Username:」または「Password:」の文字列が、対象NEから送信されてくるのを待つ。   For example, after the manual login unit 106 is connected to the target NE via the Telnet connection unit 107, the prompt information of the temporary product file input, for example, “Username:” or “Password:” character string from the target NE. Wait for it to be sent.

手動ログイン部106は、対象NEから上記文字列が送信されたのを検出後、<LoginPrompt></LoginPrompt>内の文字列である「Username:」を検出した場合、<LoginName></LoginName>内に記述されたユーザ名の文字列を、Telnet接続部107を介して対象NEへ送信する。
また、手動ログイン部106は、<PasswordPrompt></PasswordPrompt>内の文字列である「Username:」を検出した場合、<Password></Password>内に記述されたパスワード文字列を、Telnet接続部107を介して対象NEへ送信する。
After detecting that the character string is transmitted from the target NE, the manual login unit 106 detects <UserName:>, which is a character string in <LoginPromp></LoginPrompt>, and <LoginName></LoginName> The character string of the user name described in the URL is transmitted to the target NE via the Telnet connection unit 107.
Further, when the manual login unit 106 detects “Username:” that is a character string in <PasswordPrompt></PasswordPrompt>, the manual login unit 106 converts the password character string described in <Password></Password> into the Telnet connection unit. The information is transmitted to the target NE via 107.

ステップB6にて、手動ログイン部106が送信したユーザ名とパスワードが対象NEにとって正当でなく、手動ログイン部106が対象NEと接続できない場合、手動ログイン部106は、再度プロンプト情報の入力を実行し(ステップB5)、再度入力されたプロンプト情報に基づき対象NEと接続(ステップB6)を繰り返す。   In step B6, when the user name and password transmitted by the manual login unit 106 are not valid for the target NE and the manual login unit 106 cannot connect to the target NE, the manual login unit 106 executes input of prompt information again. (Step B5) Based on the prompt information input again, the connection with the target NE is repeated (Step B6).

ステップB6にて、手動ログイン部106が送信したユーザ名とパスワードが対象NEにとって正当であり、手動ログイン部106が対象NEと接続できた場合、手動ログイン部106が接続パターンファイル生成部を介して、自動ログイン用接続パターンファイル記憶部121に、テンポラリ接続パターンファイルに基づいて接続パターンファイルを生成する(ステップB7)。
ここでは、生成する接続パターンファイルとして、接続パターンファイル名には入力された接続対象のIPアドレスを用いる。例えば、IPアドレスが「192.168.1.5」だとすると、接続パターンファイル名として「192.168.1.5.adapter」といったIPアドレスに「adapter」を付ける命名則で、接続パターンファイルを生成する。
In step B6, when the user name and password transmitted by the manual login unit 106 are valid for the target NE and the manual login unit 106 can connect to the target NE, the manual login unit 106 passes through the connection pattern file generation unit. Then, a connection pattern file is generated in the automatic login connection pattern file storage unit 121 based on the temporary connection pattern file (step B7).
Here, as the connection pattern file to be generated, the input connection target IP address is used as the connection pattern file name. For example, if the IP address is “192.168.1.5”, a connection pattern file is generated with a naming rule that adds “adapter” to an IP address such as “192.168.1.5.adapter” as the connection pattern file name. To do.

次に、対象NEとの接続ができたことより、ユーザAは対象NEの設定などを行う。以降の処理は、図7のステップA8からステップA12と同じである。   Next, since the connection with the target NE has been established, the user A sets the target NE. The subsequent processing is the same as step A8 to step A12 in FIG.

以上のようにして、対象NEと接続するための接続パターンファイルが、自動ログイン用接続パターンファイル記憶部121に、生成される。
以降、実施の形態におけるネットワーク接続装置1の自動ログイン部105が、生成した接続パターンファイルを用いて、対象NEと接続することが可能となる。
As described above, the connection pattern file for connecting to the target NE is generated in the connection pattern file storage unit 121 for automatic login.
Thereafter, the automatic login unit 105 of the network connection device 1 in the embodiment can connect to the target NE using the generated connection pattern file.

例えば、以降、同じ対象NEに接続する場合、自動ログイン部105はGUI部101から入力されたIPアドレスから同じIPアドレスを冠した接続パターンファイルを検索する(ステップB9)。接続パターンファイルを検出した場合、上記手順を自動でログイン処理を実行し、ログインする。(削除されるなどして)接続パターンファイルが存在しなかった場合、未知の対象としてユーザに異なる接続パターンファイルを選択させ、接続する。または該当する接続パターンファイルが存在しないものとして、第2の動作を繰返し、ユーザに必要な文字列を入力させ、接続パターンファイルを生成する。詳細については後に詳述する。   For example, when connecting to the same target NE thereafter, the automatic login unit 105 searches for a connection pattern file bearing the same IP address from the IP address input from the GUI unit 101 (step B9). If a connection pattern file is detected, the above procedure is automatically executed and login is performed. When the connection pattern file does not exist (because it is deleted), the user is made to select a different connection pattern file as an unknown target and connect. Alternatively, assuming that the corresponding connection pattern file does not exist, the second operation is repeated, and a user inputs a necessary character string to generate a connection pattern file. Details will be described later.

次に、図7と図8を用いて、自動的な接続に失敗した場合に、手動ログイン部106が接続処理を実行する動作を説明する。
まず、図7のステップA4で、対象NEのIPアドレスを受信したプロダクト検出部102が、PING接続部103を介して、対象NEが正常に稼動しているか否かの検出を実行し、対象NEは正常に稼動していなかった場合には、対象NEとの接続が不可能であるため、処理を終了する。
Next, an operation in which the manual login unit 106 executes a connection process when automatic connection fails is described with reference to FIGS. 7 and 8.
First, in step A4 of FIG. 7, the product detection unit 102 that has received the IP address of the target NE performs detection of whether or not the target NE is operating normally via the PING connection unit 103. Is not operating normally, the connection with the target NE is impossible, and the process is terminated.

図7のステップA5において、プロダクト検出部102は、SNMP接続部104を介して対象NEのMIB−IIの一つであるSysDescrの情報を取得するが、対象NEがSNMP接続について応答がなかった場合(図7のD2)には、プロダクト検出部102は、対象NMのSNMPエージェントが動作していないことをメッセージ表示し(ステップB10)、選択ダイアログを表示し、ユーザAからのダイアログからの選択入力を待つ(ステップB11)。   In step A5 of FIG. 7, the product detection unit 102 acquires information on SysDescr, which is one of the MIB-IIs of the target NE, via the SNMP connection unit 104, but the target NE does not respond to the SNMP connection. (D2 in FIG. 7), the product detection unit 102 displays a message that the SNMP agent of the target NM is not operating (step B10), displays a selection dialog, and selects input from the dialog from the user A. (Step B11).

プロダクト検出部102が表示する選択ダイアログには、接続パターンファイルの選択と、手動設定と、処理終了とがある。
ユーザAからの選択入力が、接続パターンファイルの選択の場合、手動ログイン部106が、GUI部101を介してユーザAへ、接続パターンファイルの選択かプロンプト情報の入力の選択かを表示する(ステップB4)。以降の処理は先に説明した手順と同様である。
The selection dialog displayed by the product detection unit 102 includes connection pattern file selection, manual setting, and processing end.
When the selection input from the user A is the selection of the connection pattern file, the manual login unit 106 displays the selection of the connection pattern file or the selection of the prompt information to the user A via the GUI unit 101 (step B4). The subsequent processing is the same as the procedure described above.

ユーザAからの選択入力が、手動設定の場合、手動ログイン部106は、GUI部101を介してユーザAへ、接続に必要な情報(プロンプト情報)を入力するための画面を表示し、ユーザAがGUI部101を介して入力したプロンプト情報を入力する(ステップB5)。以降の処理は先に説明した手順と同様である。   When the selection input from the user A is manual setting, the manual login unit 106 displays a screen for inputting information (prompt information) necessary for connection to the user A via the GUI unit 101. Prompt information entered via the GUI unit 101 is input (step B5). The subsequent processing is the same as the procedure described above.

図7のステップA6で、プロダクト検出部102が、productcsv記憶部120のProduct.csvファイルの記述内に、SNMP接続部104から受信したSysDescrの文字列が存在しないことを検出した場合(D3)、自動ログイン部105が、GUI部101から受信したIPアドレスの接続パターンファイルを自動ログイン用接続パターンファイル記憶部121から検索する(ステップB9)。
例えば、GUI部101から受信したIPアドレスが192.168.1.5だとすると、接続パターンファイル名が「192.168.1.5.adapter」である接続パターンファイルを、自動ログイン部105がproductcsv記憶部120から、検索する。
In step A6 in FIG. 7, the product detection unit 102 determines that the Product. When it is detected that the character string of SysDescr received from the SNMP connection unit 104 does not exist in the description of the csv file (D3), the automatic login unit 105 automatically selects the connection pattern file of the IP address received from the GUI unit 101. A search is performed from the login connection pattern file storage unit 121 (step B9).
For example, if the IP address received from the GUI unit 101 is 192.168.1.5, the automatic login unit 105 stores the connection pattern file whose connection pattern file name is “192.168.1.5.adapter” in productcsv. Search from the unit 120.

自動ログイン部105は、受信したIPアドレスの接続パターンファイルを自動ログイン用接続パターンファイル記憶部121から検索できた場合(E2)、検索した接続パターンファイルに基づいて、GUI部101から受信したIPアドレスにより指定される対象NEへ、Telnet接続部107を介して、ログインを実行する(ステップA7)。以降の処理は先に説明した手順と同様である。   When the automatic login unit 105 can retrieve the connection pattern file of the received IP address from the connection pattern file storage unit 121 for automatic login (E2), the IP address received from the GUI unit 101 based on the retrieved connection pattern file. Login is performed to the target NE specified by (1) via the Telnet connection unit 107 (step A7). The subsequent processing is the same as the procedure described above.

自動ログイン部105は、受信したIPアドレスの接続パターンファイルを自動ログイン用接続パターンファイル記憶部121から検索できなかった場合(E2)、手動ログイン部106が、GUI部101を介してユーザAへ、接続パターンファイルの選択かプロンプト情報の入力の選択かを表示する(ステップB4)。以降の処理は先に説明した手順と同様である。   When the automatic login unit 105 cannot retrieve the connection pattern file of the received IP address from the connection pattern file storage unit 121 for automatic login (E2), the manual login unit 106 sends the user A to the user A via the GUI unit 101. Whether to select a connection pattern file or to input prompt information is displayed (step B4). The subsequent processing is the same as the procedure described above.

また、ステップB4の、手動ログイン部106が、GUI部101を介してユーザAへ、接続パターンファイルの選択かプロンプト情報の入力の選択かを表示し、ユーザAの選択が接続パターンファイルの選択であった場合、手動ログイン部106は、productcsv記憶部120からプロダクトファイルの一覧を取得し、取得したプロダクトファイルの一覧を、GUI部101を介してユーザAへ表示し、ユーザAからのプロダクトファイルの選択入力を待つ(ステップB8)。   In step B4, the manual login unit 106 displays to the user A via the GUI unit 101 whether the connection pattern file is selected or the prompt information is input, and the selection of the user A is the selection of the connection pattern file. If there is, the manual login unit 106 acquires a list of product files from the productcsv storage unit 120, displays the acquired list of product files to the user A via the GUI unit 101, and stores the product file from the user A. Wait for selection input (step B8).

ユーザAからのプロダクトファイルの選択入力を受信した手動ログイン部106は、受信した選択入力のプロダクトファイルをproductcsv記憶部120から取得し、取得した接続パターンファイルに基づいて、GUI部101から受信したIPアドレスにより指定される対象NEへ、Telnet接続部107を介して、ログインを実行する(ステップA7)。以降の処理は先に説明した手順と同様である。   The manual login unit 106 that has received the selection input of the product file from the user A acquires the received product file of the selection input from the productcsv storage unit 120, and receives the IP received from the GUI unit 101 based on the acquired connection pattern file. Log in to the target NE specified by the address via the Telnet connection unit 107 (step A7). The subsequent processing is the same as the procedure described above.

以上のように、自動ログイン部105による処理において、対象NEに接続できない場合においても、手動ログイン部106が処理を実行することにより、対象NEと接続できる。   As described above, even if the process by the automatic login unit 105 cannot connect to the target NE, the manual login unit 106 can execute the process to connect to the target NE.

なお、実施の形態として、IPアドレスと関連する接続パターンファイルを、接続パターンファイル名が「192.168.1.5.adapter」として生成すると説明したが、これに限られるものではなく、例えば、接続パターンファイルの中で、タグ<IPADDRESS>と</IPADDRESS>との間に「192.168.1.5」と記述しておき、ファイル名は任意としてもよい。
この場合、自動ログイン部105は、接続パターンファイルの中でタグ<IPADDRESS>と</IPADDRESS>との間の文字列が、GUI部101から受信したIPアドレスと一致する接続パターンファイルを選択し、選択した接続パターンファイルに基づき、受信したIPアドレスにより指定されるNEに接続する機能を有するようにする。
In the embodiment, the connection pattern file related to the IP address is generated as the connection pattern file name “192.168.1.5.adapter”. However, the present invention is not limited to this. For example, In the connection pattern file, “192.168.1.5” is described between the tags <IPADDRESS> and </ IPADDRESS>, and the file name may be arbitrary.
In this case, the automatic login unit 105 selects a connection pattern file in which the character string between the tags <IPADDRESS> and </ IPADDRESS> matches the IP address received from the GUI unit 101 in the connection pattern file, Based on the selected connection pattern file, a function of connecting to the NE specified by the received IP address is provided.

なお、実施の形態として、IPアドレスと関連する接続パターンファイルを、接続パターンファイル名が「192.168.1.5.adapter」として生成する(ステップB7)として説明したが、更に、IPアドレスの後に接続パターンを生成した日時の情報を追加してユニークなファイル名を生成するようにしてもよい。
このようにして接続パターンファイルを生成することにより、自動ログイン部105がGUI部101から受信したIPアドレスの接続パターンファイルを自動ログイン用接続パターンファイル記憶部121から検索する(ステップB9)ときに、同じIPアドレスの接続パターンファイルが複数ある場合においても、自動ログイン部105が、例えば、生成された日時が新しい接続パターンファイルを選択するようにするようにして、1つの接続パターンファイルを選択するようにすることも可能である。
なお、接続パターンファイルにおいて、日時についての情報を、接続パターンファイルの中のタグで囲まれた情報として記述してもよい。この場合、自動ログイン部105は、例えば、接続パターンファイルが複数ある場合、接続パターンファイルのタグの中の日時において、日時が新しい接続パターンファイルを選択するようにする。
In the embodiment, the connection pattern file associated with the IP address is generated as the connection pattern file name “192.168.1.5.adapter” (step B7). Later, information on the date and time when the connection pattern was generated may be added to generate a unique file name.
By generating the connection pattern file in this way, when the automatic login unit 105 searches the connection pattern file for the IP address received from the GUI unit 101 from the connection pattern file storage unit 121 for automatic login (step B9), Even when there are a plurality of connection pattern files with the same IP address, the automatic login unit 105 selects one connection pattern file so that, for example, a connection pattern file with a new date and time generated is selected. It is also possible to make it.
In the connection pattern file, the date and time information may be described as information surrounded by tags in the connection pattern file. In this case, for example, when there are a plurality of connection pattern files, the automatic login unit 105 selects a connection pattern file with a new date and time at the date and time in the tag of the connection pattern file.

次に、接続パターンファイルが存在しない場合に、簡単な方法で接続パターンファイルを生成し、以後の運用で対象NEに自動接続するための設定処理を行なう手順を説明する。
接続パターンファイルに必要な文字列が入力されていることで、自動ログイン部105が自動ログインを行う手順については第1および第2の動作例にて説明した。
次に、第2の動作例で生成した接続パターンファイルを書き換えて、より汎用的な接続パターンファイルに変更する方法について述べる。
Next, a procedure for generating a connection pattern file by a simple method when a connection pattern file does not exist and performing a setting process for automatically connecting to the target NE in subsequent operations will be described.
The procedure for the automatic login unit 105 to perform automatic login by inputting a necessary character string in the connection pattern file has been described in the first and second operation examples.
Next, a method for rewriting the connection pattern file generated in the second operation example and changing it to a more general-purpose connection pattern file will be described.

例えば、第2の動作例において生成した「192.168.1.1.adapter」という接続パターンファイル名の接続パターンファイル(以降、192.168.1.1接続パターンファイルとする)は、対象NEのIPアドレスが192.168.1.1である場合(のみ)に、自動ログイン部105により(ステップB9において)選択される。   For example, the connection pattern file with the connection pattern file name “192.168.1.1.adapter” generated in the second operation example (hereinafter referred to as 192.168.1.1 connection pattern file) is the target NE. Is selected by the automatic login unit 105 (in step B9) when the IP address is 192.168.1.1 (only).

従って、例えば、生成した接続パターンファイルである192.168.1.1接続パターンファイルをコピーし、接続パターンファイルのタグ<product>とタグ</product>との間の文字列(任意の文字列または空白(null文字)であり、例えば「XXX」とする)を変更する。例えば、文字列「XXX」を「ABC」にする。またproduct.csvファイルに、新たに文字列「ABC」の文字列を追記する。   Therefore, for example, the generated connection pattern file 192.168.1.1 connection pattern file is copied, and a character string (arbitrary character string) between the tag <product> and the tag </ product> of the connection pattern file is copied. Or a blank (null character), for example, “XXX” is changed). For example, the character string “XXX” is changed to “ABC”. Also, product. A character string “ABC” is newly added to the csv file.

これにより第1の具体例に新たに「ABC」という文字列で動作する手順が加わることになり、容易に「ABC」のプロダクト(SNMPによりSysDescrの文字列中に「ABC」の文字列が出現する)である対象NEへの自動ログインが実現することが可能となる。   As a result, a procedure for operating with the character string “ABC” is newly added to the first specific example, and the product “ABC” (the character string “ABC” appears easily in the character string of SysDescr by SNMP). It is possible to realize automatic login to the target NE.

次に、図10を用いて、対象NEに、複数のログイン方法がある場合のログインについて説明する。
例えば、対象NEに複数の接続ユーザが存在する場合や、ルータに管理者権限で自動ログインしたい場合と一般使用者権限でログインしたい場合とを使い分けたい場合などが該当する。
接続パターンファイルに、例えば、図10に示すように複数のパターン(default、login、enable、lab)の接続情報を記述しておくことで、多様なログインの方法(ログインパターン)を選択することができる。
Next, with reference to FIG. 10, a description will be given of login when the target NE has a plurality of login methods.
For example, there are a case where there are a plurality of connected users in the target NE, and a case where it is desired to use an automatic login to the router with an administrator authority and a case where it is desired to log in with a general user authority.
For example, various connection methods (login patterns) can be selected by describing connection information of a plurality of patterns (default, login, enable, lab) as shown in FIG. 10 in the connection pattern file. it can.

図10の例では、タグ<default>と</default>とで囲まれた部分、タグ<login>と</login>とで囲まれた部分、タグ<enable>と</enable>とで囲まれた部分、タグ<lab>と</lab>とで囲まれた部分がそれぞれ異なったログインパターンとして記述されている。
それぞれdefault、login、enable、labというユニークな文字列で識別され、これらの文字列をユーザが選択することでログインパターンを変更し自動ログインする。
また、タグ<select>と</select>とで囲まれた部分に、複数のパターンの文字列を記述しておく(default、login、enable、lab)。
In the example of FIG. 10, a portion surrounded by tags <default> and </ default>, a portion surrounded by tags <login> and </ login>, and surrounded by tags <enable> and </ enable>. The parts surrounded by the tags <lab> and </ lab> are described as different login patterns.
Each is identified by a unique character string of default, login, enable, and lab, and when the user selects these character strings, the login pattern is changed and automatic login is performed.
In addition, character strings of a plurality of patterns are described in a portion surrounded by tags <select> and </ select> (default, login, enable, lab).

この場合、手動ログイン部106が、選択した接続パターンファイルに、複数のログイン方法がある場合には、選択した接続パターンファイルの複数のログイン方法からログイン方法を選択し、選択したログイン方法に基づいて接続する機能を有するようにする。   In this case, when there are a plurality of login methods in the selected connection pattern file, the manual login unit 106 selects a login method from the plurality of login methods of the selected connection pattern file, and based on the selected login method. Have a function to connect.

例えば、ステップB8にて、ユーザAからのプロダクトファイルの選択入力に応じて接続パターンファイルを取得した手動ログイン部106が、取得した接続パターンファイルのタグ<select>と</select>とで囲まれた部分に、複数のパターンの文字列があるか否かを検出する。
複数のパターンの文字列がある場合には、手動ログイン部106が、GUI部101を介して、選択した接続パターンファイルのタグ<select>と</select>とで囲まれた文字列(例えば、default、login、enable、lab)をユーザAに表示し、表示した文字列からのユーザAによる選択入力を待つ。
For example, in step B8, the manual login unit 106 that acquired the connection pattern file in response to the selection input of the product file from the user A is surrounded by the tags <select> and </ select> of the acquired connection pattern file. It is detected whether or not there is a character string of a plurality of patterns in the portion.
When there are a plurality of patterns of character strings, the manual login unit 106 uses the GUI unit 101 to select a character string (for example, a character string enclosed by the tags <select> and </ select> of the selected connection pattern file). (default, login, enable, lab) are displayed to the user A, and the selection input by the user A from the displayed character string is awaited.

次に、手動ログイン部106が、表示した文字列からのユーザAの選択入力(例えばenable)を受信した場合、受信した選択入力のタグで囲まれる接続情報に基づき、GUI部101から受信したIPアドレスにより指定される対象NEへ、Telnet接続部107を介して、ログインを実行する(ステップA7)。   Next, when the manual login unit 106 receives the selection input (for example, enable) of the user A from the displayed character string, the IP received from the GUI unit 101 based on the connection information surrounded by the received selection input tag. Log in to the target NE specified by the address via the Telnet connection unit 107 (step A7).

なお、自動ログイン部105は、対象NEとの接続のために選択した接続パターンファイルに複数のログイン方法がある場合には、defaultのログイン方法により接続する。このようにすることにより、ユーザが自動接続を選択した場合には、ユーザは、接続パターンファイルに複数のログイン方法がある場合においても、ログイン方法の選択をする必要がなく、対象NEに接続することが出来る。   Note that when there are a plurality of login methods in the connection pattern file selected for connection with the target NE, the automatic login unit 105 connects using the default login method. In this way, when the user selects automatic connection, the user does not need to select a login method even when there are multiple login methods in the connection pattern file, and connects to the target NE. I can do it.

以上説明したように、本実施の形態においては、NEの製造ベンダ(製造元の名称)や、NEのOS、NEのOSのバージョンなどと関連づけて、予めユーザ名やパスワードなどNEと接続するための接続情報を予め記憶装置に記憶しておく。   As described above, in the present embodiment, the user name, password, etc. for connecting to the NE in advance are associated with the NE manufacturer (manufacturer name), the NE OS, the NE OS version, and the like. Connection information is stored in advance in a storage device.

まず、接続対象NEのIPアドレスをユーザからユーザインタフェースを介して取得する。接続対象NEのIPアドレスを取得する方法は、IPアドレスをユーザが直接入力する方法や、ソフトウェアのGUIにおいて接続対象NEを選択させるアイコンをクリックして指定する方法を用いてもよい。   First, the IP address of the connection target NE is acquired from the user via the user interface. As a method for acquiring the IP address of the connection target NE, a method in which the user directly inputs the IP address or a method of clicking and specifying an icon for selecting the connection target NE in the software GUI may be used.

次に取得したIPアドレスを持つ接続対象NEのCLI上のインタフェース仕様を特定する。インタフェース仕様はNEのOSに依存することが多く、NEのOS種別が特定できれば、NEが送信する文字列情報のパターンすなわちCLIログインのインタフェース仕様を特定できる。
そのために、まずSNMPによってNEからMIB−IIのSysDescrオブジェクトのパラメータを取得し、NEやOSの製造ベンダ、OSのバージョンなどを特定する。
次に、特定したNEのOS、OSのバージョン、製造ベンダなどに基づき、記憶装置から接続情報を検索し、検索した接続情報に基づいて、接続対象NEへ接続する。
Next, the interface specification on the CLI of the connection target NE having the acquired IP address is specified. The interface specification often depends on the NE OS, and if the NE OS type can be specified, the pattern of character string information transmitted by the NE, that is, the CLI login interface specification can be specified.
For this purpose, first, the parameters of the MIB-II SysDescr object are obtained from the NE by SNMP, and the NE, OS manufacturer, OS version, etc. are specified.
Next, connection information is retrieved from the storage device based on the identified NE OS, OS version, manufacturing vendor, and the like, and the connection target NE is connected based on the retrieved connection information.

なお、SNMPエージェントと通信できない場合や、SNMPによる通信を行ないたくない場合には、あらかじめ製造ベンダ名をIPアドレスと共にソフトウェアに入力してもよい。または、あらかじめ接続前に対象NEのプロダクトがわかっている場合は、次の処理で行なう対象NE用のXMLファイルを、手動で直接選択してもよい。   If communication with the SNMP agent is not possible or communication with SNMP is not desired, the manufacturer name may be input to the software together with the IP address in advance. Alternatively, if the product of the target NE is known in advance before connection, the XML file for the target NE to be performed in the next process may be manually selected directly.

以上説明した本発明により、製造プロダクトやNEのOSのバージョンなどの違いにより、CLI上でNEから送信される文字列情報の仕様が異なる複数のNEに対し自動ログインすることができ、特に新しいNEの導入時やOSのバージョン更改などで上記仕様が異なり接続できない場合でも、プログラミングによる再実装などの手順やエージェント技術を必要とせずにすぐに自動接続ができる。   According to the present invention described above, it is possible to automatically log in to a plurality of NEs having different specifications of character string information transmitted from the NE on the CLI due to differences in manufactured products, NE OS versions, and the like. Even if the above specifications are different and connection is not possible due to the introduction of OS or OS version renewal, automatic connection can be made immediately without the need for re-implementation by programming or agent technology.

また、以上説明した本発明により、仕様がそれぞれ異なるNEに対し、ログインユーザ名、ログインパスワード、ユーザの権限を変更する特殊なコマンド(UNIX(登録商標)のCLIにおけるsuコマンドやルータCLIにおけるenableなど)といったパラメータや、NEから送信される文字列情報のインタフェース仕様を、接続パターンファイルと呼ぶXML形式のテキストファイルに記述しておき、インタフェース仕様(対象NEのシステム情報)を読み込む機能と、インタフェース仕様に従ってNEに対して適切な文字列を送信し自動でログインする機能と、複数の異なる仕様を持つNEに対して接続パターンファイルに記述された文字列情報の違いによって自動ログインするために送信する文字列情報を変更し、ユーザが意識することなく自動ログインすることができる。   In addition, according to the present invention described above, special commands for changing the login user name, login password, and user authority (such as the SU command in the UNIX (registered trademark) CLI and the enable in the router CLI) for NEs having different specifications. ) And the interface specification of the character string information transmitted from the NE are described in an XML format text file called a connection pattern file, and the interface specification (system information of the target NE) is read and the interface specification. To send an appropriate character string to the NE and automatically log in to the NE according to the difference between the character string information described in the connection pattern file and the character string sent to the NE having multiple different specifications. Change the column information and the user It is possible to automatically login without having to identify.

また、以上説明した本発明により、SNMPによって対象プロダクトやOSの情報を取得することで、複数あるXMLファイルからどの情報を用いて自動ログインするかを、自動で選択し、ログインすることができる。また、対象ごとに異なるXMLファイルを適用させるルールを登録する機能を有し、そのルールによって特定のNEに特定のXMLファイルを適用し、パスワードやユーザ名が異なっていても自動接続を行うことができる。   Further, according to the present invention described above, it is possible to automatically select and log in which information is used for automatic login from a plurality of XML files by acquiring information on the target product and OS by SNMP. In addition, it has a function to register a rule for applying different XML files for each target, and a specific XML file is applied to a specific NE according to the rule, and automatic connection can be made even if the password and user name are different. it can.

以上のように、本発明を用いると、オペレータが手動でCLIを利用し接続する知識のみしか持たない場合でも、以降のNEに対する自動接続設定を可能とする。
また、NEの製造ベンダやOSの違いにより、プロンプト情報の応答などインタフェース仕様が異なる多種類のNEに対する接続を自動で行なうことができる。NEの製造ベンダやOSの違いにより、プロンプト情報の応答などインタフェース仕様が異なる多種類のNEに対する接続を上記の方法により自動で行なうことができない場合でも、手動でCLIを利用し接続する場合と同等の知識のみで最初の一回以後の処理を自動接続する設定が可能となる。
As described above, when the present invention is used, even when the operator has only knowledge of manually using the CLI to connect, subsequent automatic connection setting for the NE is enabled.
Further, connection to various types of NEs having different interface specifications, such as prompt information response, can be automatically performed depending on the NE manufacturing vendor and OS. Even when connection to multiple types of NEs with different interface specifications such as response to prompt information due to differences in NE manufacturing vendor and OS cannot be performed automatically by the above method, it is equivalent to connecting manually using CLI. With this knowledge alone, it is possible to automatically connect the first and subsequent processes.

また、未知でかつインタフェース仕様が異なるNEを監視することになった場合でも、ネットワーク管理装置のアプリケーションプログラムの開発・実装を行なうことなく、自動接続を行う設定ができる。
また、自動接続のみならず、権限の変更コマンドなど接続時に自動で行ないたい処理の設定を、オペレータが手動でCLIを利用し接続する場合と同等の知識のみある場合でも可能となる。
また、自動接続のみならず、権限の変更コマンドなど接続時に自動で行ないたい処理の設定を、ネットワーク管理装置のアプリケーションプログラムの開発・実装を行なうことなく可能となる。
Even when NEs that are unknown and have different interface specifications are to be monitored, automatic connection can be set without developing and implementing an application program of the network management apparatus.
Further, not only automatic connection but also setting of processing to be automatically performed at the time of connection, such as an authority change command, can be performed even when the operator has only the same knowledge as when manually connecting using the CLI.
Further, not only automatic connection but also setting of processing to be performed automatically at the time of connection such as authority change command can be performed without developing and implementing an application program of the network management apparatus.

また、ユーザ名やパスワードが異なる複数の対象に対し、自動接続が可能となる。
したがって、新規NEを導入し管理対象とする場合においても、ネットワーク管理装置の開発にかかる期間やコスト、手間を一切かけることなく、自動接続および以後の設定処理を継続することができる。
In addition, automatic connection is possible for a plurality of objects with different user names and passwords.
Therefore, even when a new NE is introduced and set as a management target, automatic connection and subsequent setting processing can be continued without taking any period, cost, and effort for development of the network management apparatus.

また、本発明は、CLIの接続に関係する応答を読み込む機能、SNMPによる対象のプロダクトを判定する機能、XMLによる設定定義を読み込み自動接続する機能を有することにより、設定を必要とせずに自動接続を行うことが可能となる。
また、本発明は、XMLの設定定義を表示・変更する複数のユーザインタフェースによる簡単化、設定定義の自動生成を行う機能、XML設定定義を選択する機能を有していることにより、CLIによる設定業務に必要なスキルや知識のみを用いるだけで、自動接続の設定を行い以後の自動接続を実現することが可能となる。
In addition, the present invention has a function of reading a response related to CLI connection, a function of determining a target product by SNMP, and a function of automatically reading and reading a setting definition by XML, so that automatic connection is not required. Can be performed.
In addition, the present invention has a function of simplifying a plurality of user interfaces for displaying / changing an XML setting definition, a function for automatically generating a setting definition, and a function for selecting an XML setting definition. By using only skills and knowledge necessary for business, automatic connection can be set and subsequent automatic connection can be realized.

次に、図11を用いて、NEのSysDescr情報と、Product.csvファイルに含まれる文字列と、接続パターンファイルの<product></product>タグで囲まれる文字列との関連と、その動作について補足する。
図11の(1)に示すように、例えば、NE1からNE10がある。
ここで、NEの管理において、NE1からNE6は同じ接続方法であり(接続情報として、接続のためのユーザ名やパスワードなどが同じ)、また、NE7からNE10は同じ接続方法であるとする。
ここで、NE1からNE6までから取得したシステム情報であるSysDescr情報は、ベンダがベンダ1であり、それぞれのOSがOS2からOS7である、という情報を(文字列として)含んでいるとする。
また、NE7からNE10までから取得したシステム情報であるSysDescr情報は、OSがOS1であり、それぞれのベンダがベンダ2からベンダ5である、という情報を(文字列として)含んでいるとする。
Next, using FIG. 11, the SysDescr information of NE, and Product. It supplements about the relationship between the character string contained in a csv file, and the character string enclosed by the <product></product> tag of a connection pattern file, and its operation | movement.
As shown in (1) of FIG. 11, for example, there are NE1 to NE10.
Here, in the management of NE, NE1 to NE6 have the same connection method (the connection information includes the same user name and password for connection), and NE7 to NE10 have the same connection method.
Here, it is assumed that the SysDescr information, which is system information acquired from NE1 to NE6, includes information (as a character string) that the vendor is vendor 1 and each OS is OS2 to OS7.
Further, it is assumed that the SysDescr information, which is system information acquired from NE7 to NE10, includes information (as a character string) that the OS is OS1 and each vendor is vendor 2 to vendor 5.

例えば、図11(3)に示すように、Product.csvファイルに含まれる文字列が「ベンダ1」と「OS1」である場合、それぞれのNEのシステム情報であるSysDescr情報(の中の文字列の情報で)で、Product.csvファイルに含まれる文字列と一致する情報は、図11(2)に示すように、NE1からNE6は「ベンダ1」であり、NE7からNE10は「OS1」となる。   For example, as shown in FIG. When the character strings included in the csv file are “vendor 1” and “OS1”, the SysDesc information (in the character string information) that is the system information of each NE, and the Product. Information matching the character string included in the csv file is “vendor 1” from NE1 to NE6 and “OS1” from NE7 to NE10 as shown in FIG. 11B.

次に、実施の形態においては、図11(4)に示す接続パターンファイルの<product></product>タグで囲まれる文字列が、図11(2)に示した文字列と一致する接続パターンファイルを選択し、選択した接続パターンファイルの接続情報を用いて、それぞれのNEに接続することが可能となる。
ここで、図11の(3)と(4)に示すように、Product.csvファイルに含まれる文字列と、接続パターンファイルの<product></product>タグで囲まれる文字列は一致する。
Next, in the embodiment, the connection pattern in which the character string enclosed by the <product></product> tag in the connection pattern file shown in FIG. 11 (4) matches the character string shown in FIG. 11 (2). It is possible to select a file and connect to each NE using the connection information of the selected connection pattern file.
Here, as shown in (3) and (4) of FIG. The character string included in the csv file matches the character string enclosed by the <product></product> tag of the connection pattern file.

また、図11のようにNE1からNE10がある場合において、新規にOSがOS1であるNE11が増設された場合においても、NE11にOS1の場合の接続方法を設定することのみで、NE11に接続することが可能となる。これは、NE11のシステム情報の一部がOS1と一致し、OS1の接続パターンファイルが選択され、選択されたOS1の接続パターンファイルに基づきNE11に接続することによる。
また、新規にベンダがベンダ1であるNE12が追加された場合においても、NE12にベンダ1の場合の接続方法を設定することのみで、NE12に接続することが可能となる。これは、NE12のシステム情報の一部がベンダ1と一致し、ベンダ1の接続パターンファイルが選択され、選択されたベンダ1の接続パターンファイルに基づきNE12に接続することによる。
Further, in the case where there are NE1 to NE10 as shown in FIG. 11, even when NE11 whose OS is OS1 is newly added, it is connected to NE11 only by setting the connection method for OS1 to NE11. It becomes possible. This is because part of the system information of NE11 matches OS1, and the connection pattern file of OS1 is selected and connected to NE11 based on the selected connection pattern file of OS1.
Further, even when the NE 12 whose vendor is the vendor 1 is newly added, it is possible to connect to the NE 12 only by setting the connection method for the vendor 1 to the NE 12. This is because part of the system information of the NE 12 matches the vendor 1, the connection pattern file of the vendor 1 is selected, and the NE 12 is connected based on the selected connection pattern file of the vendor 1.

〔第1の具体例〕記録
次に、上記説明した自動接続を用いた場合の、スクリプトファイルの生成について説明する。まず第1の具体例として、ユーザAによる設定処理の記録手順について述べる。
例えば、ユーザAは、図2の対象選択画面より、接続するNE2をアイコンにより選択する。次に、図1の自動接続部171が、選択されたNE2と接続する。
ここで、自動接続部171が、選択されたNE2と接続する方法は、図7から図8を用いて説明したように、選択されたNE2に対応する接続パターンファイルを自動ログイン接続パターンファイル記憶部121から選択し、選択した接続パターンファイルに基づき自動接続部171(または、より詳細には自動ログイン部105)が、NE2と接続の処理を実行する。
接続が完了した後、ユーザAが図2の記録開始ボタンを押すことにより、図3を用いて説明したように、ユーザAの入力とNE2からの応答とに基づいて、スクリプト生成部142がスクリプトを生成する。
[First Specific Example] Recording Next, generation of a script file when the automatic connection described above is used will be described. First, as a first specific example, a recording procedure of setting processing by the user A will be described.
For example, the user A selects the NE 2 to be connected from the target selection screen of FIG. Next, the automatic connection unit 171 shown in FIG. 1 connects to the selected NE2.
Here, as described with reference to FIGS. 7 to 8, the automatic connection unit 171 connects the selected NE 2 with the connection pattern file corresponding to the selected NE 2 as an automatic login connection pattern file storage unit. Based on the selected connection pattern file, the automatic connection unit 171 (or more specifically, the automatic login unit 105) executes processing for connection with NE2.
After the connection is completed, when the user A presses the recording start button in FIG. 2, the script generation unit 142 executes the script based on the input from the user A and the response from the NE 2 as described with reference to FIG. Is generated.

ここで、スクリプト生成部142が生成するスクリプトには、自動接続の情報を含めることが可能である。
例えば、自動接続部171(または、より詳細には自動ログイン部105)が、選択した接続パターンファイルに基づきNE2と接続の処理を実行するときに、選択した接続パターンファイルを識別する情報、例えば接続パターンファイルのファイル名を、選択接続パターンファイル識別情報として記憶しておく。ここでは、選択接続パターンファイル識別情報である接続パターンファイルのファイル名を、「RedPattern.xml」として説明する。
説明の簡略のため、「自動接続部171(または、より詳細には自動ログイン部105)」を、「自動接続部171」として説明する。
Here, the script generated by the script generation unit 142 can include information on automatic connection.
For example, when the automatic connection unit 171 (or more specifically, the automatic login unit 105) executes processing for connection with NE2 based on the selected connection pattern file, information for identifying the selected connection pattern file, for example, connection The file name of the pattern file is stored as selected connection pattern file identification information. Here, the file name of the connection pattern file which is the selected connection pattern file identification information will be described as “Red Pattern.xml”.
For the sake of simplicity, “automatic connection unit 171 (or more specifically, automatic login unit 105)” will be described as “automatic connection unit 171”.

接続が完了した後、ユーザAが図2の記録開始ボタンを押すことにより、自動接続部171が、選択接続パターンファイル識別情報を、スクリプト生成部142に送信する。
ユーザAが図2の記録開始ボタンを押すことにより、スクリプト生成部142は、スクリプトを生成するが、生成するスクリプトに、自動接続部171から受信した選択接続パターンファイル識別情報に基づいて、選択接続パターンファイル識別情報により自動接続するためのスクリプトを生成する。
この場合、例えば、ファイル名が「RedPattern.xml」である接続パターンファイルにより、自動接続するためのスクリプトを生成する。具体的には、後述する図12の(W1)から(W4)の行である。
その後、スクリプト生成部142は、図3を用いて説明したように、ユーザAの入力とNE2からの応答とに基づいて、スクリプト生成部142がスクリプトを生成する。具体的には、後述する図12の(W5)から(W18)の行である。
After the connection is completed, when the user A presses the recording start button in FIG. 2, the automatic connection unit 171 transmits the selected connection pattern file identification information to the script generation unit 142.
When the user A presses the recording start button in FIG. 2, the script generation unit 142 generates a script. Based on the selected connection pattern file identification information received from the automatic connection unit 171, the script generation unit 142 selects A script for automatic connection is generated based on the pattern file identification information.
In this case, for example, a script for automatic connection is generated using a connection pattern file whose file name is “Red Pattern.xml”. Specifically, this is the row from (W1) to (W4) in FIG.
Thereafter, as described with reference to FIG. 3, the script generation unit 142 generates a script based on the input of the user A and the response from the NE 2. Specifically, this is the row from (W5) to (W18) in FIG.

次に、自動実行部144は、スクリプトに基づいて実行する場合において、接続パターンファイルにより自動接続するための記述をスクリプトファイルから検出すると、検出した選択接続パターンファイル識別情報を、自動接続部171に送信する。
例えば、スクリプトの中に選択接続パターンファイル識別情報が、ファイル名が「RedPattern.xml」である接続パターンファイルにより接続する記述である場合、自動実行部144は、選択接続パターンファイル識別情報を、つまりファイル名が「RedPattern.xml」である接続パターンファイルにより接続するという情報を、自動接続部171に送信する。
Next, when executing based on a script, the automatic execution unit 144 detects a description for automatic connection using the connection pattern file from the script file, and sends the detected selected connection pattern file identification information to the automatic connection unit 171. Send.
For example, when the selected connection pattern file identification information in the script is a description of connection by a connection pattern file whose file name is “RedPattern.xml”, the automatic execution unit 144 stores the selected connection pattern file identification information, that is, Information indicating that the connection is made by the connection pattern file whose file name is “Red Pattern.xml” is transmitted to the automatic connection unit 171.

選択接続パターンファイル識別情報を受信した自動接続部171は、受信した選択接続パターンファイル識別情報に基づいて、自動ログイン接続パターンファイル記憶部121から選択し、選択した接続パターンファイルに基づき、NE2と接続の処理を実行する。この場合、ファイル名が「RedPattern.xml」である接続パターンファイルが選択される。   The automatic connection unit 171 that has received the selected connection pattern file identification information selects from the automatic login connection pattern file storage unit 121 based on the received selected connection pattern file identification information, and connects to NE2 based on the selected connection pattern file. Execute the process. In this case, a connection pattern file whose file name is “RedPattern.xml” is selected.

以上のようにして生成された、自動接続の部分を含んだスクリプトファイルの一例を、図12を用いて説明する。なお、図12においては、スクリプトの行を図12の右側に示しており、以下に、図12のスクリプトの行毎に説明を行う。   An example of the script file including the automatic connection part generated as described above will be described with reference to FIG. In FIG. 12, script lines are shown on the right side of FIG. 12, and will be described below for each script line of FIG. 12.

(W0)function main(){
スクリプトの単位を示す記述である。例ではfunction main(){}内の記述をスクリプトの単位として表現している。なお、処理の始まりと終わりとが明示的に示されるならば、どのような記述でも構わない。
なお(W0)の行は、接続記録開始と同時に、スクリプトに記録される。
(W0) function main () {
It is a description indicating the unit of the script. In the example, the description in function main () {} is expressed as a unit of script. Any description may be used as long as the start and end of the process are explicitly indicated.
The line (W0) is recorded in the script simultaneously with the start of connection recording.

(W1)var telnet=newTelnet();
接続手段としてTelnetを用いることを明示的に宣言している。例えばFTPにより接続する場合には、var ftp =newFTP();といった記述により明示的に接続手段を記述する。
例で示しているvarといった記述は、明示的に接続手段が判断できる記述ならばどのようなものでも構わない。例では、Telnet接続を表すtelnetというインスタンスを生成していることを示している。接続記録開始と同時に記録される。Telnetで接続した場合には例に示したように記録されるというように、接続手段によって記述が決定される。
(W1) var telnet = newTelnet ();
It explicitly declares the use of Telnet as a connection means. For example, when connecting by FTP, the connection means is explicitly described by a description such as var ftp = newFTP ();
The description such as var shown in the example may be any description as long as the connection means can explicitly determine. In the example, an instance of telnet representing a telnet connection is generated. Recorded simultaneously with connection recording. The description is determined by the connection means, such as being recorded as shown in the example when connected by Telnet.

(W2)var pattern=Pattern(RedPattern.xml、lab):
自動ログインするために必要な、ユーザ名やログインパスワードといった情報を選択する情報を示す。例では、接続ファイルとしてRedPattern.xmlというファイルを読み込み、その中のlabというパターンを選択してログインすることを宣言している。
このパターンやxmlファイルを変更することでユーザ名等を変更してログインすることができる。自動接続しない場合にはこの記述を記録しないこともできる。また、ユーザ名やパスワードを直接このスクリプト内に記述する方法をとることもできる。
接続するタイミングで接続パターンが一意に決まり、接続記録開始と同時に記録される。
例として、本スクリプトファイルが参照するRedPattern.xmlファイルを図13に示す。これについては、後に詳述する。
(W2) var pattern = Pattern (RedPattern.xml, lab):
Indicates information for selecting information such as a user name and a login password necessary for automatic login. In the example, Red Pattern. A file called xml is read and a pattern called lab is selected to log in.
By changing this pattern or xml file, the user name can be changed to log in. If automatic connection is not used, this description may not be recorded. It is also possible to write the user name and password directly in this script.
The connection pattern is uniquely determined at the timing of connection, and is recorded simultaneously with the start of connection recording.
As an example, the Red Pattern. The xml file is shown in FIG. This will be described in detail later.

(W3)telnet.setTimeoutSeconds(10);
接続後、応答が一定時間以上認められなかった場合、自動的にコネクションを切断する場合の時間を指定する。例では引数の(10)の設定により、10秒返事がなかった場合に切断する処理となっている。
また、引数の値を、例えば(−1)と設定することでタイムアウトによる切断処理を行なわず、応答を待ち続けるように動作させても良い。また、タイムアウトによる設定を記述せずに動作させるようにしても良い。
また、語頭のtelnetという文字列は(W1)で宣言したインスタンスtelnetを示しており、Telnet接続における処理に対する命令であることを明示的に示している。
この記述は接続記録開始と同時に記録される。数値(例では10)は接続記録開始時にあらかじめ決定されており、一意であるものとする。この数値はスクリプトファイルに記述後、ユーザAがGUI部101の画面上から自由に書き換えられるものとする。
(W3) telnet. setTimeoutOuts (10);
Specifies the time for automatically disconnecting the connection if no response is accepted for a certain time after connection. In the example, the processing is disconnected when there is no response for 10 seconds by setting the argument (10).
Further, by setting the argument value to, for example, (−1), it is possible to operate so as to continue waiting for a response without performing disconnection processing due to timeout. Further, the operation may be performed without describing the setting due to the timeout.
The character string “telnet” at the beginning of the word indicates the instance telnet declared in (W1), and explicitly indicates that this is a command for processing in the telnet connection.
This description is recorded simultaneously with the start of connection recording. The numerical value (10 in the example) is determined in advance at the start of connection recording, and is assumed to be unique. It is assumed that the user A can freely rewrite this numerical value from the screen of the GUI unit 101 after being described in the script file.

(W4)telnet.autoLogin(pattern);
(W1)で宣言したTelnet接続にて、自動接続をする命令を示す記述である。この記述により、本発明のアダプタ生成装置は対象NEに接続する。例では、(W2)で宣言したpatternにて示されたパターンにより接続を試みる。
接続記録開始時に記述される。
(W4) telnet. autoLogin (pattern);
This is a description indicating an instruction for automatic connection in Telnet connection declared in (W1). With this description, the adapter generation device of the present invention connects to the target NE. In the example, connection is attempted using the pattern indicated by pattern declared in (W2).
Described at the start of connection recording.

(W0)から(W4)は、NE2と接続し、記録開始ボタン(図2または図3参照)が押した時点で上記の順で同時にスクリプトに記述される。   (W0) to (W4) are described in the script simultaneously in the above order when the recording start button (see FIG. 2 or FIG. 3) is pressed when connected to NE2.

(W5)telnet.wait(‘To’);
(W6)match=telnet.waitPrompt(‘o>’);
接続後、NEの応答の最後の行の一部を記録したものが(W5)と(W6)である。
例では、ログイン後、NE2の応答が「Tokyo>」だった場合の記述例である。(W5)は最後の行の頭文字を記述する。(W6)は最後の行の行末文字を記録する。
記録される文字は、NE2から応答された文字のうち、一意になるパターンを記述するようにする。例では、最後の行の前に、Tという文字が含まれているため、(W5)の記述がToとなる。また、〉という文字が含まれるため(W6)の記述はo〉となる。
(W5) telnet. wait ('To');
(W6) match = telnet. waitPrompt ('o>');
(W5) and (W6) are records of part of the last line of the NE response after connection.
The example is a description example when the response of NE2 is "Tokyo>" after login. (W5) describes the initial letter of the last line. (W6) records the end-of-line character of the last line.
The recorded characters describe a unique pattern among the characters returned from NE2. In the example, since the letter T is included before the last line, the description of (W5) is To. Since the character> is included, the description of (W6) is o>.

例えば、Tbという文字が応答の中に含まれている場合はTokと記述される。参考例を図14に示す。   For example, when the character Tb is included in the response, it is described as Tok. A reference example is shown in FIG.

記述のルールにおいて、この記述を用いて後に自動処理を行なう場合、「match=」が記述されている行のパターンのみ有効とするといった処理を行なうこともできる。
例えば、match=が記述されていない行は無視し、match=が記述されている行のみ、最後の行の行末に特定された文字列が検出された場合のみ、次の行を実行する。なお(W5)のパターンは無視する。
最後の行の行末に「o〉」が検出された場合のみ、以降の処理を継続する。
なお、(W5)の行頭に文字列「match=」を記述する場合、最後の行の行頭に「To」が検出された場合のみ以降の処理を継続するといった処理に変更される。
In the description rule, when automatic processing is performed later using this description, it is also possible to perform processing such that only the line pattern in which “match =” is described is valid.
For example, a line in which “match =” is not described is ignored, and the next line is executed only when a character string specified at the end of the last line is detected only in a line in which “match =” is described. Note that the pattern (W5) is ignored.
Only when “o>” is detected at the end of the last line, the subsequent processing is continued.
When the character string “match =” is written at the beginning of the line (W5), the process is changed to continue the process only when “To” is detected at the beginning of the last line.

以上のように決めることにより、例えば、match=記述を検出した場合、NE2からの受信する応答の文字列の行頭が「To」であることを検出するまで待機する。検出できた場合、次の行へ進む。検出できなかった場合、例えば、予め決められた時間内に接続したNE2からの応答があるか否かにより、以降のよりを続けるか、接続を切断するかの、の処理を実行する。
この場合、「match=」が記述されないことにより(W5)の行は実行されないが、(W5)の行に応答の文字列の行頭が表示されるため、ユーザAがスクリプトを見た場合に、確認がしやすい、という効果がある。
By determining as described above, for example, when match = description is detected, the process waits until it is detected that the head of the character string of the response received from NE2 is “To”. If detected, go to the next line. If not detected, for example, depending on whether or not there is a response from the NE 2 connected within a predetermined time, the process of whether to continue or disconnect is executed.
In this case, the line (W5) is not executed because “match =” is not described, but the beginning of the response character string is displayed in the line (W5). There is an effect that confirmation is easy.

(W7)telnet.send(‘enable’);
ユーザAが送信するコマンド文字列が記述されている。
(W7)ではtelnet上でenableというコマンドをユーザAがCLI部131にて入力し送信した場合に記述された例が示されている。
NE2に実際に送信するまでを一塊として記述する。
(W7) telnet. send ('enable');
A command character string transmitted by the user A is described.
(W7) shows an example described when the user A inputs and transmits a command “enable” on the telnet via the CLI unit 131.
The process until it is actually transmitted to NE2 is described as a lump.

(W8)telnet.sendS(‘Enter’);
ユーザAがEnter(またはReturn)キーなどを操作し、コマンドをNE2に送信した場合に記録される。sendSの文字列Enterは実際にEnterとコマンドをうったのではなく、Enterキーを押したことを明示的に示している。
(W8) telnet. sendS ('Enter');
This is recorded when the user A operates the Enter (or Return) key or the like and transmits a command to the NE 2. The sendS character string Enter explicitly indicates that the Enter key has been pressed, rather than actually receiving an Enter command.

(W5)(W6)(W7)(W8)は、コマンドがNE2に送信された時点で上記の順で同時に記述される。 (W5), (W6), (W7), and (W8) are simultaneously described in the above order when the command is transmitted to NE2.

例ではEnterキーが押下された時点で(W5)から(W8)の記述が記録される。
この後はユーザAによる処理およびNEの応答の一部が上記(W5)から(W8)の記述に従って記述される。(W9)から(W12)、(W13)から(W16)がユーザAによって記述された例である。
In the example, descriptions from (W5) to (W8) are recorded when the Enter key is pressed.
Thereafter, the process by the user A and a part of the NE response are described according to the description of (W5) to (W8). (W9) to (W12) and (W13) to (W16) are examples described by the user A.

(W17)telnet.disconnect();
(W18)}
ユーザAまたはNEによってコネクションが切断された場合、切断を明示的に示す記述が記録される。このとき、スクリプト記述の終わりを示す(W18)の記述が同時に記録される。
(W17) telnet. discconnect ();
(W18)}
When the connection is disconnected by the user A or NE, a description that explicitly indicates the disconnection is recorded. At this time, the description (W18) indicating the end of the script description is simultaneously recorded.

スクリプトには(W5)から(W8)、(W9)から(W12)、(W13)から(W16)のような4種の情報がどの種類の情報に属するかを判別する情報が自動的に追加される。スクリプト例に限らず、4種の情報を識別できるものである。
例えば、上記に説明したU1からU4の4種の情報を、それぞれ識別できるように、「telnet.wait」、「match=telnet.waitPrompt」、「telnet.send」、「telnet.sendS」と、それぞれ異なるスクリプトのコマンドの引き数として記述する。
Information for determining which type of information such as (W5) to (W8), (W9) to (W12), and (W13) to (W16) belongs to the script is automatically added to the script. Is done. Not limited to script examples, four types of information can be identified.
For example, “telnet.wait”, “match = telnet.waitPromp”, “telnet.send”, “telnet.sendS”, respectively, so that the four types of information U1 to U4 described above can be identified. Describe as command argument of different script.

なお、ログおよびスクリプトはユーザAが管理対象であるNE2に接続し切断するまでをひとつの記録単位とし記録されるものとする。つまりスクリプトは接続された際に記録開始しコマンドが入力されるたびに4種類の情報記録を繰返し切断された際に記録終了する。このとき、4種類の情報のほかに、接続対象のIPアドレス、ログインユーザ名、ログインパスワードといった接続に必要な情報をスクリプトファイル内に記録することができる。
なお、切断時、ログおよびスクリプトにGUIを通じファイル名を登録させてもよい。また、切断時間や接続時間、対象のIPアドレスなどを利用し一意のファイル名を自動的に追加しても良い。
The log and script are recorded as one recording unit until the user A connects to and disconnects from the management target NE2. That is, the script starts recording when connected, and ends recording when the four types of information recording are repeatedly cut each time a command is input. At this time, in addition to the four types of information, information necessary for connection such as an IP address to be connected, a login user name, and a login password can be recorded in the script file.
At the time of disconnection, a file name may be registered in the log and script through the GUI. In addition, a unique file name may be automatically added using disconnection time, connection time, target IP address, and the like.

なお、接続、切断を単位とするのではなく全ての記録を一つのファイルに別途まとめて記録しても良い。
また、このときキャプチャ部141はCLI上の表示情報を保存しなくともよい。その場合、本アダプタ生成装置は、通常のCLIを有するソフトウェアとして機能する。
なお、スクリプトの記録はユーザAによってCLI上で行なわれる接続処理、コマンド送信と受信の対話型処理、切断処理と並行して進められ、ユーザAの動作と同時にスクリプトコードが生成され、GUI上に表示される。しかし、GUI上に表示せず、スクリプトを保存することとしてもよい。
スクリプトは4種類の情報を、コマンド送信のたびに追記していくこととし、記録される順番は必ずコマンド送信と同じ順番で記録されるものとする。
Instead of using connection and disconnection as a unit, all records may be recorded separately in one file.
At this time, the capture unit 141 may not store display information on the CLI. In this case, the adapter generation device functions as software having a normal CLI.
The script recording is performed in parallel with the connection process performed by the user A on the CLI, the interactive process of command transmission and reception, and the disconnection process, and a script code is generated simultaneously with the operation of the user A, Is displayed. However, the script may be saved without being displayed on the GUI.
The script adds four types of information each time a command is transmitted, and the recording order is always recorded in the same order as the command transmission.

図13は接続パターンファイルの一例である。なお、この接続パターンファイルは、図10に説明した接続パターンファイルと同様のものである。
接続パターンファイルには、複数のパターンを記述できる。例えば、図13においては、defaultとlabという二つのパターンが記述されている。なお、接続パターンファイルは、一例としてはXMLで記述されているが、同様の別形式で保存されていても構わない。
FIG. 13 is an example of a connection pattern file. The connection pattern file is the same as the connection pattern file described in FIG.
A plurality of patterns can be described in the connection pattern file. For example, in FIG. 13, two patterns, default and lab, are described. The connection pattern file is described in XML as an example, but may be stored in another similar format.

また、ログイン名(例では<LoginName>と</LoginName>とにより囲まれる文字列)とパスワード名(例では<Password>と<Password/>とにより囲まれる文字列)、ログイン名を送信する前に検出しなければならない文字列(例では<LoginPrompt>と</LoginPrompt>とにより囲まれる文字列)、パスワードを送信する前に検出しなければならない文字列(例では<PasswordPrompt>と</PasswordPrompt>とにより囲まれる文字列)、が記述されている。   Also, before sending the login name (character string surrounded by <LoginName> and </ LoginName>) and the password name (character string surrounded by <Password> and <Password /> in the example) and the login name A character string that must be detected (in the example, a character string surrounded by <LoginPromp> and </ LoginPromp>), and a character string that must be detected before sending the password (in the example, <PasswordPrompt> and </ PasswordPrompt>) Character string surrounded by>).

また、記録する際に、Enterキーと同様にsendSに記述されるべき文字列を記述することができる。例えば、<special−key>?</special−key>であり、この記述がある場合、<special−key>と</special−key>とで囲まれる文字列である「?」を?キーとしてユーザが送信すると、Enterキーを押したようにコマンドを送信するようにされるようになる。
また、多くの応答情報があった際に画面送りを自動で行なうように、あらかじめ画面送りを自動で行なうコマンドを記述しておくことができる。例では<pager−off−cmd>terminal length 0</pager−off−cmd>の記述であり、再生時にこのPatternファイルが選択された場合、自動ログイン後にterminallength 0 コマンドを送信する。この場合、terminallength 0 コマンドは、画面送りを自動で行なうコマンドである。
Moreover, when recording, the character string which should be described in sendS can be described similarly to the Enter key. For example, <special-key>? </ Special-key>, and if there is this description, what is a character string surrounded by <special-key> and </ special-key>? When the user transmits as a key, the command is transmitted as if the Enter key is pressed.
In addition, a command for automatically performing screen advancement can be described in advance so that screen advancement is automatically performed when there is a lot of response information. In the example, <pager-off-cmd> terminal length 0 </ pager-off-cmd> is described, and if this Pattern file is selected during reproduction, a terminal length 0 command is transmitted after automatic login. In this case, the terminal length 0 command is a command for automatically moving the screen.

〔第2の具体例〕再生、再利用
第1の具体例では、ユーザAによる操作をスクリプトおよびログとして記録する方法について述べた。
次に、記録したスクリプトを用いて自動実行する手順について説明する。
ユーザAは、GUI部101を介してアダプタファイル記憶部153に保存してあるスクリプトを選択する。このとき接続対象となるNE2をユーザAがIPアドレスを入力するなどして指定する。ただし、スクリプトに接続先のIPアドレスやログインユーザ名、パスワードが書いてある場合はその情報を利用し、自動接続をしてもよい。
ここでは、一例として、図12のスクリプトを選択し、図12のスクリプトを実行した際のアダプタ生成装置1の自動実行部144の動作について説明する。
[Second Specific Example] Reproduction and Reuse In the first specific example, the method of recording the operation by the user A as a script and a log has been described.
Next, a procedure for automatic execution using the recorded script will be described.
The user A selects a script stored in the adapter file storage unit 153 via the GUI unit 101. At this time, the NE 2 to be connected is designated by the user A by inputting an IP address or the like. However, if the connection destination IP address, login user name, and password are written in the script, the information may be used for automatic connection.
Here, as an example, the operation of the automatic execution unit 144 of the adapter generation device 1 when the script of FIG. 12 is selected and the script of FIG. 12 is executed will be described.

まず、選択されたスクリプトファイルの(W0)の行を抽出し、function main()と書かれているか否かを検出することにより、選択されたスクリプトファイルがスクリプトであるか否かを検出する。
スクリプトファイルであることを検出した場合には、次の行である(W1)を実行する。スクリプトファイルでないことを検出した場合には、例えば、ワーニングメッセージを表示し以降の処理を中断する。
ここでは、スクリプトファイルであることを検出するため、次の行に進む。
First, the line (W0) of the selected script file is extracted, and whether or not “function main ()” is written is detected to detect whether or not the selected script file is a script.
If it is detected that the file is a script file, the next line (W1) is executed. If it is detected that it is not a script file, for example, a warning message is displayed and the subsequent processing is interrupted.
Here, the process proceeds to the next line in order to detect that it is a script file.

次に、(W1)の行を抽出し、Telnetによる接続であることを検出し、Telnetセッションを起動する。
次に(W2)の行を抽出し、利用するログインパターンがRedPattern.xmlのlabというパターンであることを検出する。
次に(W3)の行を抽出し、NE2の応答が10秒確認できない場合、コネクションを切断することを決定する。
ここでは、10秒以内にNE2からの確認があるものとして説明する。
Next, the line (W1) is extracted, a connection by Telnet is detected, and a Telnet session is started.
Next, the line of (W2) is extracted, and the login pattern to be used is Red Pattern. It is detected that the pattern is a lab of xml.
Next, the line (W3) is extracted, and if the NE2 response cannot be confirmed for 10 seconds, it is determined to disconnect the connection.
Here, description will be made assuming that there is confirmation from NE2 within 10 seconds.

次に(W4)の行を抽出し、(W2)に記述しているログインパターンに基づいて、自動接続部171を介してNE2に接続する。
接続が成功した場合、NE2から応答がある。
Next, the line (W4) is extracted and connected to NE2 via the automatic connection unit 171 based on the login pattern described in (W2).
If the connection is successful, there is a response from NE2.

次に(W5)の行を抽出する。(W5)の行から文字列「match=」を検出しないため、(W5)の行は無視して、次の行に進む。
なお、文字列「match=」記述を検出した場合には、NE2からの応答の行頭が「To」であることを検出するまで待機する。検出した場合、次の行へ進む。検出できなかった場合、(W3)の行で示されたように10秒間応答を待ち、10秒以内に検出できなかった場合、NE2との接続を切断する。
Next, the row (W5) is extracted. Since the character string “match =” is not detected from the line (W5), the line (W5) is ignored and the process proceeds to the next line.
If the description of the character string “match =” is detected, the process waits until it is detected that the head of the response from NE2 is “To”. If detected, go to the next line. If it cannot be detected, a response is waited for 10 seconds as shown in the row (W3), and if it cannot be detected within 10 seconds, the connection with NE2 is disconnected.

次に(W6)の行を抽出する。(W6)の行から文字列「match=」を検出するため、指定される文字列「o〉」が応答の文字列の行末に検出するまで待機する。行末に検出しない場合、(W3)の行で示されたように10秒間応答を待ち、10秒以内に検出できなかった場合、NE2との接続を切断する。10秒以内に検出した場合、次の行へ進む。
ここでは、10秒以内に文字列「o〉」を検出できた場合について説明する。
Next, the row (W6) is extracted. In order to detect the character string “match =” from the line (W6), the process waits until the designated character string “o>” is detected at the end of the line of the response character string. If it is not detected at the end of the line, a response is waited for 10 seconds as indicated by the line (W3), and if it cannot be detected within 10 seconds, the connection with NE2 is disconnected. If detected within 10 seconds, go to next line.
Here, a case where the character string “o>” can be detected within 10 seconds will be described.

次に(W7)の行を抽出し、(W7)のsend行にある「enable」文字列をNE2に送信する。
次に(W8)の行を抽出し、(W8)のsendS行にある「Enter」を検出し、Enterキー送信時に送信される文字コードをNE2に送信する。
Next, the (W7) line is extracted, and the “enable” character string in the send line of (W7) is transmitted to NE2.
Next, the line (W8) is extracted, “Enter” in the sendS line of (W8) is detected, and the character code transmitted when the Enter key is transmitted is transmitted to NE2.

以降、(W9)から(W16)については、上記(W5)から(W8)の処理と同様に繰り返す。
その後(W17)の行を検出し、Telnetを切断する。
以上のように、スクリプトファイルに基づいて自動実行部144が以上の処理を実行したことにより、ユーザAがスクリプトを記録した時と同じ処理を繰り返すことが可能となる。
Thereafter, (W9) to (W16) are repeated in the same manner as the processes (W5) to (W8).
Thereafter, the line (W17) is detected, and Telnet is disconnected.
As described above, when the automatic execution unit 144 executes the above processing based on the script file, the same processing as when the user A records the script can be repeated.

以上の方法により、ユーザAはCLI部131上の操作を行なうだけで、全く同様の処理を行なうマクロに相当するスクリプトを生成したこととなる。
またエディタ機能を具備したGUI部101上にスクリプトを表示することで、スクリプトの情報を変更することができるため、例えばコマンド文字列を変更することで送信されるコマンドが変わり、処理内容が変更される。処理内容が異なるマクロ相当の機能をコマンドの書き換えだけで生成することができる。
By the above method, the user A generates a script corresponding to a macro that performs exactly the same processing only by performing an operation on the CLI unit 131.
In addition, since the script information can be changed by displaying the script on the GUI unit 101 having the editor function, for example, the command to be transmitted is changed by changing the command character string, and the processing content is changed. The Functions equivalent to macros with different processing contents can be generated simply by rewriting commands.

また、(W5)の情報のみに合致した場合に次のコマンドを送信したり、(W5)(W6)の情報に合致しなくとも次のコマンドを送信したりといった条件を変更することもできる。
このとき、NE2からの応答が多く、一画面で表示できない場合のページ送りを自動で行なうために、接続直後にページ送りを自動で行なうコマンドを送信しておく方法をとることができる。
また、タイマー部145によりスクリプトと対象を指定し、同時に時間を指定することで、毎日1度スクリプトを行なうなどタイマー設定、スケジューリングによる予約実行指定が可能となる。
It is also possible to change the conditions such as transmitting the next command when it matches only the information of (W5), or transmitting the next command even if it does not match the information of (W5) and (W6).
At this time, in order to automatically perform page turning when there is a large number of responses from NE2 and cannot be displayed on one screen, a method of automatically sending a page turning command immediately after connection can be taken.
In addition, by specifying a script and a target by the timer unit 145 and simultaneously specifying a time, it is possible to specify a reservation execution by timer setting and scheduling such that the script is executed once a day.

〔第3の具体例〕アダプタ化
次に、第1の具体例で生成したスクリプトファイルを、汎用のスクリプト言語であるアダプタファイルに変換する手順について説明する。第1の具体例で生成したスクリプトは、第2の具体例のような手順でユーザAが処理内容を再利用するために必要な、例えば図12の(W5)(W6)(W7)(W8)の行のような、NE2から受信する最終行の文字列の先頭の文字列と最後の文字列と、それに応じて送信するコマンドの文字列と送信コードとの、4種の情報に限定することで、ユーザAが見やすく、変更しやすい利点があるが、本発明のアダプタ生成装置1上でしか実行ができない。
[Third Specific Example] Adapterization Next, a procedure for converting the script file generated in the first specific example into an adapter file which is a general-purpose script language will be described. The script generated in the first specific example is necessary for the user A to reuse the processing contents in the procedure as in the second specific example, for example, (W5) (W6) (W7) (W8) in FIG. ), The first character string and the last character string of the character string of the last line received from the NE 2, and the command character string and the transmission code transmitted accordingly are limited to four types of information. Thus, there is an advantage that the user A is easy to see and change, but it can be executed only on the adapter generation device 1 of the present invention.

このスクリプトを汎用のスクリプト言語に変換することで、該スクリプト言語が動作する環境ならばどこでもその機能が実行することが可能となり、該スクリプト言語のファイルを外部システムが遠隔実行することが可能となる。したがって第1の具体例で生成したスクリプトがアダプタとして機能することが可能となる。   By converting this script into a general-purpose script language, the function can be executed anywhere in the environment where the script language operates, and the external system can remotely execute the script language file. . Therefore, the script generated in the first specific example can function as an adapter.

図15にスクリプトファイルをExpectフォーマットに変換する例を示す。なお、Expectとは、対話的なプログラムとのやりとりを自動化するプログラムである。なお、ここでは、Expectについて説明しているが、perlなどの言語でもよい。   FIG. 15 shows an example of converting a script file into Expect format. Note that “Expect” is a program that automates interaction with an interactive program. Here, Expect is described, but a language such as perl may be used.

また、図16から図18に、アダプタ生成部143が実行する第1の具体例で示したスクリプトをExpect言語に変換するルール例を示す。アダプタ生成部143が、このルールに従ってスクリプトファイルを変換することにより、Expect言語で記述されたアダプタファイルが一意に生成される。
なお、図16から図18に示すスクリプトをExpect言語に変換するルールは、変換ルール記憶部155に予め記憶されているものである。
FIGS. 16 to 18 show rule examples for converting the script shown in the first specific example executed by the adapter generation unit 143 into the Expect language. The adapter generation unit 143 converts the script file according to this rule, so that an adapter file described in the Expect language is uniquely generated.
Note that the rules for converting the scripts shown in FIGS. 16 to 18 to the Expect language are stored in advance in the conversion rule storage unit 155.

〔第4の具体例〕アダプタ機能追加
次に、アダプタファイルに第3の具体例から変換される以外の機能、つまり、ユーザAのNE2に対する操作のキャプチャからは得られない情報を、アダプタファイルに追加記述する手順について説明する。
[Fourth Specific Example] Addition of Adapter Function Next, functions other than those converted from the third specific example into the adapter file, that is, information that cannot be obtained from the capture of the operation of the user A by NE2 are stored in the adapter file. The additional description procedure will be described.

まずユーザAは、GUI部101を介して、アダプタ生成部143またはアダプタファイル記憶部153からアダプタファイルを選択し、GUI部101に選択したアダプタファイルの内容を表示する。
Expectなどスクリプト言語で記述されたアダプタファイルには、NE2との通信のやり取りがパターン化されて記述されており、アダプタ生成部143がそのパターンにあわせて追加挿入可能な記述パターン(追加挿入可能記述)を、追加記述の推薦としてGUI部101を介してユーザAに提示し、また、提示した記述パターンを挿入するか否かの選択の情報、例えば「挿入する」ボタンまたは「挿入しない」ボタンの選択を、GUI部101を介してユーザAに提示する。
First, the user A selects an adapter file from the adapter generation unit 143 or the adapter file storage unit 153 via the GUI unit 101, and displays the content of the selected adapter file on the GUI unit 101.
In the adapter file described in script language such as Expect, the communication exchange with NE2 is described in a pattern, and the adapter generation unit 143 can additionally insert a description pattern (addable insertable description) according to the pattern. ) As a recommendation for additional description to the user A via the GUI unit 101, and information on selection as to whether or not to insert the presented description pattern, for example, an “insert” button or a “do not insert” button The selection is presented to the user A via the GUI unit 101.

なお、追加挿入可能な記述パターンは、アダプタ追加パターンファイルルール記憶部154に予め記憶してあるものである。アダプタ追加パターンファイルルール記憶部154には、アダプタファイルに記述されるパターンと、追加挿入可能な記述パターンとが関連づけられて記憶されている。なお、追加挿入可能な記述パターンとは、分岐処理や制御処理のための記述であり、また、例えばexpectにより記述されている記述である。
アダプタ生成部143は、アダプタファイルの記述されるパターンに基づいて、アダプタ追加パターンファイルルール記憶部154から追加挿入可能な記述パターンを検索し、追加記述の推薦としてGUI部101を介してユーザAに提示する。
Note that the description pattern that can be additionally inserted is stored in advance in the adapter additional pattern file rule storage unit 154. The adapter addition pattern file rule storage unit 154 stores a pattern described in the adapter file and a description pattern that can be additionally inserted in association with each other. The description pattern that can be additionally inserted is a description for a branch process or a control process, and is a description described by, for example, expect.
The adapter generation unit 143 searches the adapter additional pattern file rule storage unit 154 for a description pattern that can be additionally inserted based on the pattern described in the adapter file, and informs the user A via the GUI unit 101 as a recommendation for the additional description. Present.

ユーザAはその提示に対し、「挿入する」ボタンまたは「挿入しない」ボタンのいずれか一方を押すことにより、挿入するか否かの選択の情報を、GUI部101を介して入力する。
GUI部101は、ユーザAが入力した選択の情報をアダプタ生成部143に送信し、ユーザAの選択が「挿入する」である場合には、アダプタ生成部143が、提示した追加挿入可能な記述パターンを、アダプタファイルに挿入する。
追加が完了すると、アダプタ生成部143が、追加挿入可能な記述パターンが追加されたアダプタファイルを、アダプタファイル記憶部153に保存する。
In response to the presentation, the user A presses either the “insert” button or the “do not insert” button, and inputs information on whether or not to insert via the GUI unit 101.
The GUI unit 101 transmits the selection information input by the user A to the adapter generation unit 143. When the selection of the user A is “insert”, the adapter generation unit 143 provides the additional insertable description presented. Insert the pattern into the adapter file.
When the addition is completed, the adapter generation unit 143 stores the adapter file to which the description pattern that can be additionally inserted is added in the adapter file storage unit 153.

つまり、アダプタ追加パターンファイルルール記憶部154には、アダプタファイルに記述されるパターンと、追加挿入可能な記述パターンとがアダプタ追加パターンファイルルールとして関連づけられて記憶されている。
アダプタ生成部143は、GUI部101からユーザAにより選択されたアダプタファイルをアダプタファイル記憶部153から読み出し、読み出したアダプタファイルの記述パターンに基づいて、アダプタ追加パターンファイルルール記憶部154から追加挿入可能な記述パターンを抽出し、抽出した追加挿入可能な記述パターンを、アダプタファイルに追記する。
なお、アダプタ生成部143は、抽出した追加挿入可能な記述パターンが複数ある場合には、複数の抽出した追加挿入可能な記述パターンをユーザAにGUI部101を介して表示し、複数の抽出した追加挿入可能な記述パターンの中から選択された抽出した追加挿入可能な記述パターンを追加するようにする。
That is, the adapter addition pattern file rule storage unit 154 stores patterns described in the adapter file and description patterns that can be additionally inserted in association with each other as adapter addition pattern file rules.
The adapter generation unit 143 reads the adapter file selected by the user A from the GUI unit 101 from the adapter file storage unit 153, and can additionally insert from the adapter additional pattern file rule storage unit 154 based on the read description pattern of the adapter file. A simple description pattern is extracted, and the extracted additional insertable description pattern is added to the adapter file.
When there are a plurality of extracted additional insertable description patterns, the adapter generation unit 143 displays a plurality of extracted additional insertable description patterns to the user A via the GUI unit 101 and extracts a plurality of extracted description patterns. An additional insertable description pattern selected from the additionally insertable description patterns is added.

以下、具体的な機能例と機能記述の挿入例について説明する。
まず、Expectの記述例について説明する。Expectの記述において、「expect{」の次の記述は、NE2からの応答情報であり、この応答情報を検出後、sendの後の記述により検出後にどのような情報をNEに送信するかを決定する。
この記述を複数用意することで、エラーメッセージなどの異常処理対処や、特定の文字列出現時に異なる処理を行なう。
なお、条件が異なる処理をアダプタファイルに追記するために、アダプタ生成部143は、ログ記憶部151に記録されているログ中に存在する通信履歴から、該コマンドに対するNE2からの応答文字列全てを抽出し、GUI部101に出力するようにしてもよい。
Hereinafter, a specific function example and a function description insertion example will be described.
First, a description example of Expect will be described. In the description of Expect, the description following “expect {” is response information from NE2, and after this response information is detected, what information is transmitted to NE after detection is determined by the description after send. To do.
By preparing a plurality of such descriptions, an abnormal process such as an error message is dealt with or a different process is performed when a specific character string appears.
In order to add a process with different conditions to the adapter file, the adapter generation unit 143 reads all the response character strings from NE2 to the command from the communication history existing in the log recorded in the log storage unit 151. It may be extracted and output to the GUI unit 101.

次に、本装置がコマンドをNE2へ送信した後に、NE2からの応答の待ち時間によってログアウトなど対処を行なう記述を挿入する場合を例として、追加挿入可能な記述パターンが挿入される方法を説明する。
より具体的には、アダプタファイルの記述に対し、図23に示すように、「timeout{XXX}」の記述を追加する場合について説明する。ここで、「XXX」は任意の文字列である。
Next, a method of inserting a description pattern that can be additionally inserted will be described by taking as an example a case where a description for dealing with logout or the like is inserted according to a response waiting time from NE2 after the apparatus transmits a command to NE2. .
More specifically, a description will be given of a case where a description of “timeout {XXX}” is added to the description of the adapter file as shown in FIG. Here, “XXX” is an arbitrary character string.

スクリプト言語におけるアダプタファイルのコマンドを送信する記述には、一定のパターンが存在する。例えば、図23の、Expectファイルに関しては「send」記述の後に、「“」と「”」とで囲まれた文字列がくる(図23のXB参照)。
アダプタ生成部143は、文字列パターン「send」を検出した場合、アダプタ追加パターンファイルルール記憶部154から検出した文字列パターン「send」の次に来るパターンを検出し、検出したパターンが、例えば、「timeout{send_user(省略)」であるとすると、検出した文字列パターンのあとに「timeout{send_user(省略)」の記述挿入を推薦する画面を表示する(図23のXA参照)。
There is a certain pattern in the description for transmitting the command of the adapter file in the script language. For example, with respect to the Expect file in FIG. 23, a character string enclosed by ““ ”and“ ”” comes after “send” description (see XB in FIG. 23).
When the adapter generation unit 143 detects the character string pattern “send”, the adapter generation unit 143 detects a pattern that follows the character string pattern “send” detected from the adapter additional pattern file rule storage unit 154, and the detected pattern is, for example, If “timeout {send_user (omitted)”, a screen recommending insertion of a description of “timeout {send_user (omitted)” is displayed after the detected character string pattern (see XA in FIG. 23).

図23では、検出した文字列パターンが、X1、X2、X3で示される文字列であり、X1、X2、X3の候補が、XAで示される枠の中に示されている。
ユーザAは、XAで示される枠の中から、候補のX1、X2、X3のいずれかを選択、または、いずれも選択しない。
アダプタ生成部143は、選択された場合には、選択された文字列パターンをアダプタファイルに挿入する。
In FIG. 23, the detected character string patterns are character strings indicated by X1, X2, and X3, and candidates for X1, X2, and X3 are indicated in a frame indicated by XA.
User A selects any one of the candidates X1, X2, and X3 from the frame indicated by XA, or does not select any of them.
When selected, the adapter generation unit 143 inserts the selected character string pattern into the adapter file.

なお、アダプタ生成部143は、選択された文字列パターンを挿入する際、アダプタ追加パターンファイルルール記憶部154に保存されているアダプタ追加ファイルパターンをデフォルトで追加するが、アダプタ生成部143は、選択された文字列パターンの「“」と「”」とで囲まれた文字列を、自由に変更するようにユーザAに提示するようにしてもよい。   When the adapter generation unit 143 inserts the selected character string pattern, the adapter generation unit 143 adds the adapter addition file pattern stored in the adapter addition pattern file rule storage unit 154 by default. The character string surrounded by ““ ”and“ ”” of the character string pattern thus formed may be presented to the user A so as to be freely changed.

GUI部101上でユーザAはNE2からの応答文字列を一部選択する。選択した文字列の一部が条件としてアダプタのsendの後の記述に追記される。また、この条件のパラメータの部分などを変更することで、ユーザAがスクリプトを記録した場合以外の状況への対応記述が可能となる。   On the GUI unit 101, the user A partially selects a response character string from the NE2. A part of the selected character string is added to the description after send of the adapter as a condition. Also, by changing the parameter portion of this condition, it is possible to describe the correspondence to situations other than when user A records a script.

このように、ユーザAのNE2に対する操作のキヤプチャからは得られない情報を、予めアダプタ追加パターンファイルルール記憶部154に記憶しておき、アダプタ生成部143がアダプタファイルにより追加記述することにより、例えば、(ア)NEの応答によって次に実行するコマンドを変更することや(分岐処理記述の追加)、(イ)コマンドを送信する前に明示的に待ち時間を設定することや(待ち時間処理記述の追加)、(ウ)コマンド送信後、NEからの応答待ち時間を設定することや(タイムアウト時間処理記述の追加)、(エ)外部アプリケーションから実行される場合に、特定のパラメータを受け、同時に実行すること(外部引数処理の追加)が出来る。   In this way, information that cannot be obtained from the operation capture for the user A's NE2 is stored in the adapter additional pattern file rule storage unit 154 in advance, and the adapter generation unit 143 additionally describes the adapter file, for example, (A) Changing the next command to be executed in response to the NE response (adding a branch process description), (b) explicitly setting the wait time before sending the command, or (wait process description) (C) When a command is sent, the response wait time from the NE is set, (Addition of timeout time processing description), (d) When executed from an external application, a specific parameter is received and simultaneously Can be executed (addition of external argument processing).

(バックアップ、ロールバック、ディスカバリ)
次に、図1の説明に戻り、バックアップ部173、ロールバック部174、ディスカバリ部172の説明をする。
バックアップ部173は、NE2への接続時に、その時点でのNE2のコンフィグレーションファイルを取得し、設定内容をNEコンフィグファイル記憶部182に保存するバックアップ機能を有する。
(Backup, rollback, discovery)
Next, returning to the description of FIG. 1, the backup unit 173, the rollback unit 174, and the discovery unit 172 will be described.
The backup unit 173 has a backup function of acquiring the NE2 configuration file at the time when connecting to the NE2 and saving the setting contents in the NE configuration file storage unit 182.

ロールバック部174は、NEコンフィグファイル記憶部182に保存されたコンフィグレーションファイルをNE2に送信し、設定により変更されたNE2のコンフィグレーションをバックアップ時の内容にきり戻すロールバック機能を有する。   The rollback unit 174 has a rollback function that transmits the configuration file saved in the NE configuration file storage unit 182 to the NE2 and repeats the NE2 configuration changed by the setting to the contents at the time of backup.

ディスカバリ部172は、本発明装置がネットワークNW3に接続されている際、PingやSNMPを用いてネットワークNW3に存在するNE2および接続関係をNE−IF部132を介して検出し、検出したNE2をユーザAにGUI部101を介して提示するディスカバリ機能を有する。   When the device of the present invention is connected to the network NW3, the discovery unit 172 detects the NE2 existing in the network NW3 and the connection relationship via the NE-IF unit 132 using Ping or SNMP, and the detected NE2 is detected by the user. A has a discovery function to present to A via the GUI unit 101.

また、ディスカバリ部172とロールバック部174とは、タイマー部175と接続されている。タイマー部175が、一定時間毎または予め決められた時間に、ディスカバリ部172またはロールバック部174に信号を送信することにより、信号を受信したディスカバリ部172またはロールバック部174が、一定時間毎または予め決められた時間に、動作することが可能である。
〔第5の具体例〕バックアップ、ロールバック
次に、本発明装置がユーザAや自動実行部144によりNE2に対して処理を行なう前に、NE2の設定ファイルを本発明装置側にアップロードするバックアップ手順および、処理後にアップロードした該設定ファイルをNE2に送信し該設定ファイルの内容をNE2に反映するロールバックの手順について説明する。
The discovery unit 172 and the rollback unit 174 are connected to the timer unit 175. The timer unit 175 transmits a signal to the discovery unit 172 or the rollback unit 174 at regular time intervals or at a predetermined time, so that the discovery unit 172 or rollback unit 174 that has received the signal is It is possible to operate at a predetermined time.
[Fifth Specific Example] Backup, Rollback Next, before the device of the present invention performs processing on NE2 by the user A or the automatic execution unit 144, a backup procedure for uploading the NE2 setting file to the device of the present invention. A rollback procedure for transmitting the setting file uploaded after processing to the NE 2 and reflecting the contents of the setting file to the NE 2 will be described.

なお、NE2の設定ファイルとは、NE2におけるルーティングなどの設定情報などの、NE2で用いる設定情報である。
本装置によりNE2の設定情報を手動または自動により変更することが可能であるが、変更の前にバックアップを取っておくことにより、変更前に戻すことが可能となる。なお、バックアップ部173が実行するバックアップは、履歴として設定情報をファイルとしてNEコンフィグファイル記憶部182に保存する。また、ロールバック部174は、NEコンフィグファイル記憶部182に保存された設定情報の中から任意に選択し、選択した設定情報に基づいてロールバックすることにより、選択した任意の設定情報にNE2の設定情報を戻すことが可能である。
The NE2 setting file is setting information used in NE2, such as setting information such as routing in NE2.
The setting information of the NE 2 can be changed manually or automatically by this apparatus, but it is possible to restore the setting information by making a backup before the change. The backup executed by the backup unit 173 stores the setting information as a history in the NE configuration file storage unit 182 as a file. Further, the rollback unit 174 arbitrarily selects setting information stored in the NE configuration file storage unit 182 and rolls back based on the selected setting information. It is possible to return the setting information.

バックアップ部173のバックアップ機能は、ユーザAによる接続時に起動される、または定期的に接続されるといったアクションによって動作し、ユーザAが選択したデバイスに接続する。
バックアップ機能の利用プロトコルとして、TFTPおよびFTPクライアント、サーバ機能の実装などが考えられる。
バックアップ機能には設定パラメータファイルがテキストファイルで用意されており、対象NE2のプロダクトごとに該テキストファイルに記述したパラメータを読み込んで動作する。
The backup function of the backup unit 173 is activated by an action such as being activated at the time of connection by the user A or periodically connected, and connects to the device selected by the user A.
Possible protocols for using the backup function include implementation of a TFTP and FTP client, a server function, and the like.
A setting parameter file is prepared as a text file for the backup function, and the parameters described in the text file are read and operated for each product of the target NE2.

パラメータとして、例えば、プロダクト名(例えば:RED、BLUE)の情報、使用プロトコル名(例えば:TFTP、FTP)の情報、上記プロトコルのユーザ名およびパスワード(例えば、hoge、hogehoge。これは平文で可)の情報、ダウンロードファイル名や、ファイルのあるディレクトリ名(例えば:running−config)の情報がある。   As parameters, for example, product name (for example: RED, BLUE) information, used protocol name (for example: TFTP, FTP) information, user name and password for the above protocol (for example, hoge, hogehoge, which can be in plain text) Information, download file name, and directory name of the file (for example: running-config).

なお、バックアップ部173には、すぐにバックアップの処理を実行してもよいし、または、タイマー部175によりユーザの時間指定によるタイマーによりバックアップの処理を実行するといった設定を行なうようにしても良い。
バックアップ部173は、バックアップの処理を実行した後、ダウンロードしたファイルについては、例えば、時間などを利用しユニークなファイル名を自動生成し、生成したファイル名で保存する。例えば、IPアドレスの情報、プロダクト名の情報、およびダウンロード時間の情報を、任意に組み合わせてファイル名を生成する。
The backup unit 173 may execute the backup process immediately, or the timer unit 175 may be set to execute the backup process using a timer specified by the user's time.
After executing the backup processing, the backup unit 173 automatically generates a unique file name using, for example, time for the downloaded file, and stores it with the generated file name. For example, the file name is generated by arbitrarily combining information on the IP address, information on the product name, and information on the download time.

次に、図19を用いてにバックアップ手順における、一例としてのバックアップ部173の動作を説明する。
まず、ユーザAがGUI部101により入力したIPアドレスを、GUI部101を介して受信する(ステップS1901)
次に、受信したIPアドレスに基づいて、接続パターン記憶部181(productcsv記憶部120)からプロダクト名を検出する(ステップS1902、S1903)。
次に、検出したプロダクト名に基づいて、自動ログイン用接続パターンファイル記憶部121から接続パターンファイルを取得する(ステップS1904、1905)。
取得した接続パターンファイルに基づいてNEと接続し、接続したNEの設定ファイルを取得する(ステップS1906、1907)。
取得したNEの設定ファイルをNEコンフィグファイル記憶部182に保存する(ステップS1908)。
Next, the operation of the backup unit 173 as an example in the backup procedure will be described with reference to FIG.
First, the IP address input by the user A through the GUI unit 101 is received via the GUI unit 101 (step S1901).
Next, based on the received IP address, the product name is detected from the connection pattern storage unit 181 (productcsv storage unit 120) (steps S1902 and S1903).
Next, a connection pattern file is acquired from the connection pattern file storage unit 121 for automatic login based on the detected product name (steps S1904 and 1905).
The NE is connected based on the acquired connection pattern file, and a setting file of the connected NE is acquired (steps S1906 and 1907).
The acquired NE setting file is stored in the NE configuration file storage unit 182 (step S1908).

ロールバック部174の動作においては、ユーザAがGUI部101を介してNEコンフィグファイル記憶部182に保存された設定ファイルを選択し、選択した設定ファイルに基づいて、バックアップと同様にNEに接続し、接続したNEの設定ファイルを選択した設定ファイルに基づいて変更する。
なお、NEコンフィグファイル記憶部182に保存される設定ファイルにはNEを識別するIPアドレスの情報が記憶されており、そのIPアドレスに基づいて、ロールバック部174は、NEと接続してもよい。
In the operation of the rollback unit 174, the user A selects a setting file stored in the NE configuration file storage unit 182 via the GUI unit 101, and connects to the NE in the same manner as the backup based on the selected setting file. The setting file of the connected NE is changed based on the selected setting file.
Note that the setting file saved in the NE configuration file storage unit 182 stores information on an IP address that identifies the NE, and the rollback unit 174 may connect to the NE based on the IP address. .

以上説明したように、バックアップ部173およびロールバック部174が、接続パターンファイルを用いて自動的にNEと接続することにより、簡単にNEの設定ファイルがバックアップされ、また、ロールバックすることが可能である。
また、バックアップ部173およびロールバック部174により、NEの設定ファイルが、バックアップされ、また、ロールバックさることにより、NEの管理が確実なものとなる。
As described above, the backup unit 173 and the rollback unit 174 automatically connect to the NE using the connection pattern file, so that the NE setting file can be easily backed up and rolled back. It is.
Further, the NE setting file is backed up by the backup unit 173 and the rollback unit 174, and the NE management is ensured by rolling back.

〔第6の具体例〕ディスカバリ
次に、ディスカバリ部172が実行する、ディスカバリ手順について説明する。
まず、ディスカバリとは、本装置が接続するネットワークNW3のIPレイヤの接続関係(構成)を探索し、把握する機能である。ディスカバリ部172が有するディスカバリ機能によって、例えば図22に示すような画面から、接続対象となるNE2を選択できるため、ユーザAはNE2のIPアドレスを調べる必要なしに、簡単にNE2を指定することが可能となる。
[Sixth Specific Example] Discovery Next, a discovery procedure executed by the discovery unit 172 will be described.
First, discovery is a function for searching and grasping the connection relationship (configuration) of the IP layer of the network NW3 to which the present apparatus is connected. For example, the NE2 to be connected can be selected from the screen as shown in FIG. 22 by the discovery function of the discovery unit 172. Therefore, the user A can easily specify the NE2 without having to check the IP address of the NE2. It becomes possible.

ディスカバリ機能は、本装置に対してユーザAがディスカバリを実行する指示の入力をした場合に起動される。
まず、本装置の起動時に、ディスカバリ部172は、自端末のIPアドレス、ディスカバリレンジ、シードデバイスのアドレスの3つのパラメータを、ユーザAの入力としてGUI部101を介して、取得する。
The discovery function is activated when the user A inputs an instruction to execute discovery to the apparatus.
First, when the present apparatus is activated, the discovery unit 172 acquires three parameters of the own terminal IP address, discovery range, and seed device address via the GUI unit 101 as user A input.

次に、それぞれのパラメータについて説明する。
第1のパラメータである自端末のIPアドレスは、自端末設定済みのIPアドレスを探して決定する。さらに、ユーザがIPアドレスを指定する機能を持ってもよい。
Next, each parameter will be described.
The IP address of the own terminal, which is the first parameter, is determined by searching for an IP address that has been set for the own terminal. Furthermore, the user may have a function of specifying an IP address.

第2のパラメータであるディスカバリレンジは、本装置がディスカバリを行なう対象IPアドレス空間のことであり、以下の二種類の設定方法により設定される。これらは、ユーザAの入力から受信する情報である。
ディスカバリレンジの第1の設定方法として、二つのIPアドレスと一つのサブネットマスク指定により範囲を設定する方法がある。例えば、例1として、ディスカバリレンジを、192.168.1.0から192.168.50.255として設定する。また、例2としてディスカバリレンジを192.168.1.0/24192.168.50.0/24として設定する。
ディスカバリレンジの第2の設定方法として、一つのIPアドレスと一つのサブネットマスク指定により範囲を設定する方法がある。例えば、例として、ディスカバリレンジを、192.168.1.0/24として設定する。これは、つまり192.168.1.0から192.168.1.255のことである。
The discovery range, which is the second parameter, is a target IP address space in which this device performs discovery, and is set by the following two setting methods. These are information received from user A's input.
As a first discovery range setting method, there is a method of setting a range by specifying two IP addresses and one subnet mask. For example, as Example 1, the discovery range is set as 192.168.1.0 to 192.168.50.255. In Example 2, the discovery range is set as 192.168.1.0/241928.50.0/24.
As a second setting method of the discovery range, there is a method of setting a range by specifying one IP address and one subnet mask. For example, as an example, the discovery range is set as 192.168.1.0/24. That is, from 192.168.1.0 to 192.168.1.255.

第2のパラメータであるシードデバイスのアドレスは、LANを超えた範囲でディスカバリする場合に、最初にSNMP・MIB探索を行なうデバイスであるNE2のIPアドレスのことであり、操作者にディスカバリ機能実行時に指定させる。
一般的には、シードデバイスのIPアドレスにはゲートウェイのIPアドレスが設定される。なお、設定されるIPアドレスは、何でも構わない。シードデバイスのアドレスを設定しない場合、別動作にてディスカバリを継続することも可能である。
The address of the seed device, which is the second parameter, is the IP address of NE2, which is the device that performs the SNMP / MIB search first when performing discovery within the range beyond the LAN. Let it be specified.
Generally, the IP address of the gateway is set as the IP address of the seed device. Note that any IP address may be set. If the seed device address is not set, discovery can be continued in a separate operation.

次にディスカバリ部172の動作概要を示す。
(ステップS2001)シードデバイスと指定されたアドレスに対してPingを送信し、応答を検出する。例えば、Pingは2回以上4回未満で終了とする。
(ステップS2002)シードデバイスに対してSNMP接続を試し、可能ならばSNMPの応答を取得する。SNMP walkによりMIB情報を全て取得する。SysDescrオブジェクトからプロダクト名(例:RED router 2611)を取得する。
Next, an outline of the operation of the discovery unit 172 is shown.
(Step S2001) Ping is transmitted to the address designated as the seed device, and a response is detected. For example, Ping ends when it is 2 times or more and less than 4 times.
(Step S2002) An SNMP connection is tried with respect to the seed device, and an SNMP response is acquired if possible. All MIB information is acquired by SNMP walk. A product name (for example, RED router 2611) is acquired from the SysDescr object.

(ステップS2003)シードデバイスのIPアドレスのサブネットマスクからネットワークアドレスを取得し、MIB情報から該ネットワークアドレス内のIPアドレスを検出する。検出したIPアドレスにPingを送信し、応答を検出した場合SNMPにて接続する。SysDescrオブジェクトを確認してプロダクトを確定する。 (Step S2003) The network address is acquired from the subnet mask of the IP address of the seed device, and the IP address in the network address is detected from the MIB information. Ping is transmitted to the detected IP address, and when a response is detected, connection is established by SNMP. Check the SysDescr object to confirm the product.

(ステップS2004)シードデバイスが所有する他のインタフェースに付けられたIPアドレスを検索し、Pingによって応答を確認する。なお、SNMP walkはSNMP GetとGet Nextとの組合せでも構わない。なお、SNMP walkと、SNMP GetとGet Nextとの組み合わせの、いずれを用いるかは、処理速度を重視した選択とするのが好ましい。
(ステップS2005)ステップS2004で探索したIPアドレスのサブネットマスクから同じネットワークアドレスを持つIPアドレスをMIBから探し出し、Pingを送信する。なお、ここで応答を検出したIPアドレスは、シードデバイスとは異なる新たなデバイスのはずである。
(Step S2004) The IP address attached to the other interface owned by the seed device is searched, and the response is confirmed by Ping. The SNMP walk may be a combination of SNMP Get and Get Next. Note that it is preferable to select which one of the SNMP walk and the combination of SNMP Get and Get Next to be used with emphasis on the processing speed.
(Step S2005) The MIB is searched for an IP address having the same network address from the subnet mask of the IP address searched in step S2004, and Ping is transmitted. The IP address that detected the response here should be a new device different from the seed device.

(ステップS2006)新たに見つけたデバイスに対し、シードデバイスと同様にステップS2002からステップS2005を繰返す。なお、指定されたアドレスレンジ外のIPアドレスに関する処理は行なわず、別アドレスを探す。また、以前に発見したアドレスを別ルートで発見した場合も処理を行なわず別アドレスを探す。該当するIPアドレスがなくなるまで、ステップS2002からステップS2005の処理を繰り返す。 (Step S2006) Steps S2002 to S2005 are repeated for the newly found device in the same manner as the seed device. Note that another address is searched without performing any processing related to the IP address outside the designated address range. Also, when an address found previously is found in another route, another address is searched without performing any processing. The processes from step S2002 to step S2005 are repeated until there is no corresponding IP address.

次に、図20に示すネットワーク構成を例として、ディスカバリ手順を具体的に説明する。なお、図20のおいては、説明のために、サブネットマスクを/24で統一して説明しているが、サブネットマスクは、例えば/24から/30と可変としてもよい。
自端末IPアドレス192.168.1.4/24、シードデバイスIPアドレス192.168.1.1、ディスカバリ対象のIPアドレスの範囲を192.168.0.0/24から192.168.50.0/24と設定し、ディスカバリを実行した場合の動作は次のようになる。
Next, the discovery procedure will be specifically described using the network configuration shown in FIG. 20 as an example. In FIG. 20, for the sake of explanation, the subnet mask is unified with / 24, but the subnet mask may be variable, for example, from / 24 to / 30.
The own terminal IP address 192.168.1.4/24, the seed device IP address 192.168.1.1, and the range of IP addresses to be discovered from 192.168.0.0/24 to 192.168.50. The operation when 0/24 is set and discovery is executed is as follows.

(ステップS2101)192.168.1.4(自端末)が、192.168.1.1にPingする。
(ステップS2102)192.168.1.1からの応答を確認後、SNMP walkにより192.168.1.1のMIBを取得する。
(Step S2101) 192.168.1.4 (own terminal) pings to 192.168.1.1.
(Step S2102) After confirming the response from 192.168.1.1, the MIB of 192.168.1.1 is acquired by the SNMP walk.

(ステップS2103)192.168.1.1のプロダクトが確定される(例:RED 2611)。
(ステップS2104)192.168.1.1のサブネットマスクは/24である。よってネットワークアドレスは192.168.1.0/24であるため、アドレスレンジは192.68.1.1から192.168.1.254と検出する。
(Step S2103) The product of 192.168.1.1 is determined (example: RED 2611).
(Step S2104) The subnet mask of 192.168.1.1 is / 24. Therefore, since the network address is 192.168.1.0/24, the address range is detected as 192.68.1.1 to 192.168.1.254.

(ステップS2105)ステップS2102で取得したMIBから、ステップS2104で検出したアドレスレンジ192.168.1.1から192.168.1.254に該当するIPアドレスを検索し、192.168.1.2、192.168.1.3、192.168.1.4、192.168.1.5を検出する。 (Step S2105) The MIB acquired in step S2102 is searched for an IP address corresponding to the address range 192.168.1.1 to 192.168.1.254 detected in step S2104, and 192.168.1.2 , 192.168.1.3, 192.168.1.4, 192.168.1.5.

(ステップS2106)ステップS2105で検出した192.168.1.2、192.168.1.3、192.168.1.4、192.168.1.5にPingする。
(ステップS2107)ディスカバリ機能は、Pingの応答を検出し、検出したアドレスをDBに登録する。この場合、上記4つのアドレスからが応答が返ってくるので、シードデバイス(192.168.1.1)と接続しているものとみなし、上記4つのアドレスをDBに登録する。
(Step S2106) Ping to 192.168.1.2, 192.168.1.3, 192.168.1.4, 192.168.1.5 detected in step S2105.
(Step S2107) The discovery function detects a Ping response and registers the detected address in the DB. In this case, since responses are returned from the four addresses, it is assumed that the device is connected to the seed device (192.168.1.1), and the four addresses are registered in the DB.

(ステップS2108)続いて自ネットワークの外をディスカバリする動作に移り、ステップS2102で取得したMIBから、ステップS2104で検出したアドレスレンジ192.168.1.0から192.168.1.255に該当しないIPアドレスを検索し、192.168.10.1と192.168.20.1とを検出する。 (Step S2108) Subsequently, the operation moves to the discovery operation outside the own network, and the MIB acquired in step S2102 does not correspond to the address range 192.168.1.0 to 192.168.1.255 detected in step S2104. The IP address is searched and 192.168.10.1 and 192.168.20.1 are detected.

(ステップS2109)ステップS2108で検出した192.168.10.1のサブネットマスクク/24(255.255.255.0)を、ステップS2102で取得したMIBから取得し、ネットワークアドレス192.168.10.0/24を算出する。 (Step S2109) The subnet mask / 24 (255.255.255.0) of 192.168.10.1 detected in Step S2108 is acquired from the MIB acquired in Step S2102, and the network address 192.168.10. Calculate 0.0 / 24.

(ステップS2110)ステップS2109で算出した192.168.10.0/24内の対向IPアドレスを検索し、192.168.10.2を検出する。
(ステップS2111)ステップS2110で検出した192.168.10.2は、DBに登録されていない未知のIPアドレスのため、新しいデバイスとして検出する。
(ステップS2112)ステップS2111で新しいデバイスとして検出した192.168.10.2に対し、SNMP walk、プロダクトを確定する。
(Step S2110) The opposite IP address in 192.168.10.0/24 calculated in step S2109 is searched, and 192.168.10.2 is detected.
(Step S2111) Since 192.168.10.2 detected in step S2110 is an unknown IP address not registered in the DB, it is detected as a new device.
(Step S2112) An SNMP walk and a product are determined for 192.168.10.2 detected as a new device in Step S2111.

(ステップS2113)ステップS2108で検出したデバイス192.168.10.2のMIBから、192.168.10.1から192.168.10.254に該当するIPアドレスを検索し、192.168.10.1を検出するが、DBに登録されている既知のアドレスのため、192.168.10.2と192.168.10.1が直接接続していると検出し、デバイス192.168.10.2についての処理を終了する。 (Step S2113) An IP address corresponding to 192.168.10.1 to 192.168.10.254 is searched from the MIB of the device 192.168.10.2 detected in Step S2108, and 192.168.10. .1 is detected, but since it is a known address registered in the DB, it is detected that 192.168.10.2 and 192.168.10.1 are directly connected, and the device 192.168.10. .2 is ended.

(ステップS2114)ステップS2108で検出したデバイス192.168.10.2のMIBから192.168.10.0から192.168.10.255に該当しないIPアドレスを検索し、192.168.30.2を検出する。 (Step S2114) An IP address not corresponding to 192.168.10.0 to 192.168.10.255 is searched from the MIB of the device 192.168.10.2 detected in Step S2108, and 192.168.30. 2 is detected.

(ステップS2115)この時点で処理が完結していないステップS2108で検出した192.168.20.1とステップS2114で検出した192.168.30.2とを比較し、数値の小さい192.168.20.1を選択し、選択したデバイスに対して次の処理を行なう。 (Step S2115) Compared to 192.168.20.1 detected in Step S2108 and 192.168.30.2 detected in Step S2114, the processing is not completed at this point, and 192.168. 20.1 is selected, and the following processing is performed on the selected device.

(ステップS2116)ステップS2115で選択した192.168.20.1のサブネットマスク/24(255.255.255.0)をMIBから取得し、ネットワークアドレス192.168.20.0/24を算出する。
(ステップS2117)ステップS2116で算出した192.168.20.0/24内の対向IPアドレスを検索し、192.168.20.3を検出する。
(ステップS2118)192.168.20.3はDBに登録されていない未知のIPアドレスのため、新しいデバイスと検出し、192.168.20.3に対しSNMP walk、プロダクトを確定する。
(Step S2116) The subnet mask / 24 (255.255.255.0) of 192.168.20.1 selected in Step S2115 is acquired from the MIB, and the network address 192.168.20.0/24 is calculated. .
(Step S2117) The opposite IP address in 192.168.20.0/24 calculated in step S2116 is searched, and 192.168.20.3 is detected.
(Step S2118) Since 192.168.20.3 is an unknown IP address not registered in the DB, it is detected as a new device, and an SNMP walk and a product are determined for 192.168.20.3.

(ステップS2119)ステップS2118で確定したデバイス192.168.20.3のMIBから192.168.20.1から192.168.20.254に該当するIPアドレスを検索し、192.168.20.1が検出されるが、192.168.10.2と192.168.10.1が直接接続していると検出され確定されるので、192.168.20.3についての検索の処理を終了する。 (Step S2119) An IP address corresponding to 192.168.20.1 to 192.168.20.254 is retrieved from the MIB of the device 192.168.20.3 determined in Step S2118, and 192.168.20. 1 is detected, but since it is detected and confirmed that 192.168.10.2 and 192.168.10.1 are directly connected, the search processing for 192.168.20.3 is completed. To do.

(ステップS2120)ステップS2118で確定したデバイス192.168.20.3のMIBから192.168.20.1から192.168.20.254に該当しないIPアドレスを検索し、192.168.40.1を検出する。
(ステップS2121)この時点で処理が完結していないステップS2114で検出した192.168.30.2とステップS2120で検出した192.168.40.1とを比較し、数値の小さい192.168.30.2に対して検索の処理を行なう。
(Step S2120) An IP address not corresponding to 192.168.20.1 to 192.168.20.254 is searched from the MIB of the device 192.168.20.3 determined in Step S2118, and 192.168.40. 1 is detected.
(Step S2121) Compared to 192.168.30.2 detected in Step S2114 and 192.168.40.1 detected in Step S2120, the processing is not completed at this point, and the smaller value of 192.168.168. Search processing is performed on 30.2.

以下ステップS2116からステップS2119と同様の処理を繰り返す。そのため、処理の説明については、以下省略とする。   Thereafter, the same processing as in steps S2116 to S2119 is repeated. Therefore, the description of the processing is omitted below.

(ステップS2122)ネットワーク図にある192.168.60.1、192.168.60.3、192.168.100.YYY(ここでYYYは1から254の任意の自然数)の各アドレスは、最初に指定したアドレスレンジ範囲外のため、処理を終了し、今回設定されたパラメータではディスカバリされない。具体的には未処理アドレスが192.168.60.1のみになった時点で処理終了となる。 (Step S2122) 192.168.60.1, 192.168.60.3, 192.168.100. Since each address of YYY (where YYY is an arbitrary natural number from 1 to 254) is outside the address range specified at the beginning, the process ends, and discovery is not performed with the parameters set this time. Specifically, the process ends when the unprocessed address becomes only 192.168.60.1.

以上のようにして、ディスカバリ部172によるディスカバリ結果の一例としての接続関係を図21に示す。
なお、図21においては、L2スイッチ192.168.1.5/24については、IPレイヤのディスカバリに限定しているため、L2の接続関係を検出していない。
また、192.168.60.1/24は範囲外のIPアドレスであるが、範囲内のIPアドレス192.168.30.3などと同じデバイスのIPアドレスのため、検出がされている。
また、192.168.60.1の対向については処理を行っていないため、ネットワークが存在することのみわかっている状態で処理が終了している。
As described above, the connection relationship as an example of the discovery result by the discovery unit 172 is shown in FIG.
In FIG. 21, since the L2 switch 192.168.1.5/24 is limited to the discovery of the IP layer, the L2 connection relationship is not detected.
Further, although 192.168.60.1/24 is an IP address outside the range, the IP address of the same device as the IP address 192.168.30.3 within the range is detected.
Further, since the process is not performed for the opposite of 192.168.60.1, the process is completed in a state where only the existence of the network is known.

ディスカバリ部172によりNE2が検出され、検出されたNE2をユーザAにGUI部101を介して表示する。例えば、図22のように表示される。
ユーザAは、図22のように表示されるNE2を選択することにより、簡易に接続をするNE2を選択することが可能である。
NE 2 is detected by the discovery unit 172, and the detected NE 2 is displayed to the user A via the GUI unit 101. For example, it is displayed as shown in FIG.
User A can easily select NE2 to be connected by selecting NE2 displayed as shown in FIG.

以上説明したように、本発明によるアダプタ生成装置は、NMSが用いる設定機能であり対象NEごとに仕様が異なるアダプタ部(スクリプトファイル)を自動生成するために、オペレータのCLI上の操作をキャプチャする機能、スクリプトとして必要最低限の情報のみを表示する機能、その情報を用いて装置にて操作を再現する機能、テキストで表示されたコマンドや応答条件を画面上で変更する機能、変更されたスクリプトを実行する機能、本発明装置専用の見易さを重視したスクリプトを汎用のスクリプトフォーマットに変換しアダプタを生成する機能、対象装置のコンフィグレーションファイルを取得するバックアップ機能、本発明装置を接続したIPネットワークの構成を検出する機能を有する。   As described above, the adapter generation device according to the present invention captures an operator's operation on the CLI in order to automatically generate an adapter unit (script file) that is a setting function used by the NMS and has different specifications for each target NE. Function, a function that displays only the minimum necessary information as a script, a function that reproduces operations on the device using that information, a function that changes commands and response conditions displayed in text on the screen, a modified script , A function for generating a adapter by converting a script dedicated to the device of the present invention into a general-purpose script format, a backup function for acquiring a configuration file of the target device, and an IP connected to the device of the present invention It has a function of detecting the network configuration.

以上説明した本発明の有する機能により、操作者が特定のスクリプト言語やマクロコードの記述方法に関する知識を持たずとも、NEに対するCLI上のコマンド処理から、自動的にNMSが用いるアダプタを生成することが可能となり、ルーチンワークにおける操作者の負荷が軽減されるという効果を奏する。   With the functions of the present invention described above, an adapter used by the NMS is automatically generated from command processing on the CLI for the NE even if the operator does not have knowledge about a specific script language or macro code description method. Thus, the load on the operator in the routine work is reduced.

また、通常のスクリプトやマクロコードの場合、CLIでコマンドを実行し動作確認をする目的から考えると、ネットワーク運用者にとって、自身が実行するコマンドおよびNEからの応答情報のみが有効な情報であるにもかかわらず、自動実行のためのスクリプト専用の定義処理を多く記述することになり、視認性、解読性が悪い。
そのため、例えば既に記述したスクリプトやマクロコードのなかから、一つのコマンドのパラメータなどを変更してコードを作り直すといった簡単な変更処理に向いていないといった問題がある。
その対処として、本発明により、ネットワーク運用者のコマンド処理とその応答のみを表示させ、スクリプトの実行処理をソフトウェアで隠蔽することによって、ネットワーク運用者の必要な情報に対する視認性を向上させるという効果を奏する。
In the case of a normal script or macro code, considering the purpose of executing a command by CLI and checking the operation, only the command executed by itself and the response information from NE are valid information for the network operator. Nevertheless, many script-specific definition processes for automatic execution are described, and visibility and decipherability are poor.
Therefore, for example, there is a problem that it is not suitable for a simple change process such as changing a parameter of one command from a script or macro code already described to regenerate the code.
As a countermeasure, according to the present invention, only the network operator's command processing and its response are displayed, and the script execution processing is concealed by software, thereby improving the visibility of necessary information of the network operator. Play.

一方、自動生成したスクリプトはシーケンシャルな動作手順が記述されるのみのため、NEの応答が異なる異常時などの処理に対応できない問題点が残るため、様々な局面において処理が必要であるアダプタにそのまま用いることができない。
そこで、本発明により、スクリプトに条件分岐、待機処理記述を追加する仕組みを追加することで、状況に応じて異なる処理を記述できる柔軟性ある記述を追加できるという効果を奏する。
On the other hand, since the automatically generated script only describes the sequential operation procedure, there remains a problem that it is not possible to deal with processing such as when the NE response is different, so it remains as it is for adapters that need processing in various situations. Cannot be used.
Therefore, according to the present invention, it is possible to add a flexible description that can describe different processes depending on the situation by adding a mechanism for adding conditional branching and standby process descriptions to the script.

本発明により、更に、外部アプリケーションから実行可能な記述に変換することで、NMSが用いるアダプタをスクリプトのプログラミング知識を持たずとも容易に生成することが出来るという効果を奏する。   According to the present invention, by converting the description to be executable from an external application, an adapter used by the NMS can be easily generated without having knowledge of script programming.

また、本発明により、ディスカバリによってユーザは接続機器のIPアドレスを直接入力せずとも接続機器を選択する手段をえることができるという効果を奏する。
また、本発明により、バックアップによって、自動処理が行なわれたあとに自動処理の状態を元に戻すための情報を適宜蓄えることができるという効果を奏する。
In addition, according to the present invention, it is possible to obtain a means by which the user can select the connected device without directly inputting the IP address of the connected device by the discovery.
Further, according to the present invention, it is possible to appropriately store information for returning the state of the automatic processing after the automatic processing is performed by the backup.

なお、ログ記憶部151、スクリプト記憶部152、アダプタファイル記憶部153、アダプタ追加パターンファイルルール記憶部154、接続パターン記憶部181、NEコンフィグファイル記憶部182は、それぞれ、ハードディスク装置や光磁気ディスク装置、フラッシュメモリ等の不揮発性のメモリや、CR−ROM等の読み出しのみが可能な記憶媒体、RAM(Random Access Memory)のような揮発性のメモリ、あるいはこれらの組み合わせにより構成されるものとする。   The log storage unit 151, the script storage unit 152, the adapter file storage unit 153, the adapter additional pattern file rule storage unit 154, the connection pattern storage unit 181, and the NE configuration file storage unit 182 are a hard disk device and a magneto-optical disk device, respectively. , A non-volatile memory such as a flash memory, a storage medium such as a CR-ROM that can only be read, a volatile memory such as a RAM (Random Access Memory), or a combination thereof.

なお、このアダプタ生成装置1は専用のハードウェアにより実現されるものであってもよく、また、このアダプタ生成装置1はメモリおよびCPU(中央演算装置)により構成され、アダプタ生成装置1の機能を実現するためのプログラムをメモリにロードして実行することによりその機能を実現させるものであってもよい。   The adapter generation device 1 may be realized by dedicated hardware. The adapter generation device 1 includes a memory and a CPU (central processing unit), and functions of the adapter generation device 1. The function may be realized by loading a program for realizing into a memory and executing the program.

以上、この発明の実施形態を図面を参照して詳述してきたが、具体的な構成はこの実施形態に限られるものではなく、この発明の要旨を逸脱しない範囲の設計等も含まれる。   The embodiment of the present invention has been described in detail with reference to the drawings. However, the specific configuration is not limited to this embodiment, and includes design and the like within a scope not departing from the gist of the present invention.

本発明は、ネットワーク管理装置に用いて好適である。   The present invention is suitable for use in a network management apparatus.

この発明の一実施形態によるアダプタ生成装置の構成を示すブロック図である。It is a block diagram which shows the structure of the adapter production | generation apparatus by one Embodiment of this invention. アダプタ生成装置におけるGUIとCUIとの関係を説明するための画面図である。It is a screen figure for demonstrating the relationship between GUI and CUI in an adapter production | generation apparatus. スクリプトの生成手順を説明するフローチャート図である。It is a flowchart figure explaining the production | generation procedure of a script. 一実施形態によるネットワーク接続装置の構成を示すブロック図である。It is a block diagram which shows the structure of the network connection apparatus by one Embodiment. Product.csvファイルの1例を示す説明図である。Product. It is explanatory drawing which shows an example of a csv file. 接続パターンファイルの第1の1例を示す説明図である。It is explanatory drawing which shows the 1st example of a connection pattern file. 図1のネットワーク接続装置の動作を示す第1のフローチャート図である。FIG. 3 is a first flowchart showing the operation of the network connection device of FIG. 1. 図1のネットワーク接続装置の動作を示す第2のフローチャート図である。FIG. 6 is a second flowchart showing the operation of the network connection device of FIG. 1. 1例としての入力画面を示す図である。It is a figure which shows the input screen as an example. 接続パターンファイルの第2の1例を示す説明図である。It is explanatory drawing which shows the 2nd example of a connection pattern file. システム情報とNEとの関連を示す説明図である。It is explanatory drawing which shows the relationship between system information and NE. スクリプト情報の例を示す図である。It is a figure which shows the example of script information. 接続パターンファイル情報の例を示す図である。It is a figure which shows the example of connection pattern file information. CLI情報をどのようにスクリプト記述に反映するかの例を示す図である。It is a figure which shows the example of how CLI information is reflected in a script description. 本装置が記録したスクリプト情報をExpectフォーマットヘ変換する例を示す図である。It is a figure which shows the example which converts the script information which this apparatus recorded into Expect format. Expectフォーマットへの変換手順の対応表その1である。It is the correspondence table 1 of the conversion procedure to Expect format. Expectフォーマットへの変換手順の対応表その2である。It is the corresponding | compatible table 2 of the conversion procedure to Expect format. Expectフォーマットへの変換手順の対応表その3である。It is the corresponding | compatible table 3 of the conversion procedure to Expect format. バックアップの手順を示す図である。It is a figure which shows the procedure of backup. ディスカバリ機能の動作手順の具体例を示すためのネットワーク構成例を示す図である。It is a figure which shows the network structural example for showing the specific example of the operation | movement procedure of a discovery function. 具体例に示した手順によりディスカバリされたネットワーク構成を示す図である。It is a figure which shows the network structure discovered by the procedure shown to the specific example. ディスカバリの結果を端末GUIに出力した例を示す図である。It is a figure which shows the example which output the result of discovery to terminal GUI. 新たな処理記述を追加するスクリプト生成部を示す画面を示す図である。It is a figure which shows the screen which shows the script production | generation part which adds a new process description.

符号の説明Explanation of symbols

1 アダプタ生成装置
2 NE
3 NW
101 GUI部
131 CLI部
132 NE−IF部
141 キャプチャ部
142 スクリプト生成部
143 アダプタ生成部
144 自動実行部
145 タイマー部
171 自動接続部
172 ディスカバリ部
173 バックアップ部
174 ロールバック部
175 タイマー部
151 ログ記憶部
152 スクリプト記憶部
153 アダプタファイル記憶部
154 アダプタ追加パターンファイルルール記憶部
155 変換ルール記憶部
181 接続パターン記憶部
182 NEコンフィグファイル記憶部

1 Adapter generator 2 NE
3 NW
101 GUI unit 131 CLI unit 132 NE-IF unit 141 capture unit 142 script generation unit 143 adapter generation unit 144 automatic execution unit 145 timer unit 171 automatic connection unit 172 discovery unit 173 backup unit 174 rollback unit 175 timer unit 151 log storage unit 152 Script storage unit 153 Adapter file storage unit 154 Adapter addition pattern file rule storage unit 155 Conversion rule storage unit 181 Connection pattern storage unit 182 NE configuration file storage unit

Claims (9)

端末とネットワークを介して接続されるアダプタ生成装置であり、
ユーザより入力された第1の文字列を送信する入出力手段と、
前記入出力手段から受信した第1の文字列を前記端末に送信し、前記送信した第1の文字列の応答である第2の文字列を前記端末から受信し、前記受信した第2の文字列を前記入出力手段に送信する送受信手段と、
前記第1の文字列と前記第2の文字列とを取得するキャプチャ手段と、
前記取得した第2の文字列と前記第1の文字列とを関連付けて、前記端末へ文字列を送信するためのスクリプトを生成するスクリプト生成手段と、
同一の処理に対するスクリプトの記述と汎用的に用いられる汎用言語による記述とを関連付けて変換ルールとして予め記憶している変換ルール記憶手段と、
前記生成したスクリプトを前記変換ルールに基づいてアダプタ言語の記述に変換することにより、前記端末へ文字列を送信するための汎用言語により記述されるアダプタファイルを生成するアダプタ生成手段と、
を有することを特徴とするアダプタ生成装置。
An adapter generation device connected to a terminal via a network,
Input / output means for transmitting the first character string input by the user;
The first character string received from the input / output means is transmitted to the terminal, the second character string that is a response to the transmitted first character string is received from the terminal, and the received second character Transmitting / receiving means for transmitting a column to the input / output means;
Capture means for obtaining the first character string and the second character string;
Script generation means for associating the acquired second character string with the first character string and generating a script for transmitting the character string to the terminal;
A conversion rule storage means for preliminarily storing a description of a script for the same process and a description in a general-purpose language used in general as a conversion rule;
Adapter generating means for generating an adapter file described in a general language for transmitting a character string to the terminal by converting the generated script into an adapter language description based on the conversion rule;
An adapter generation device comprising:
汎用言語により記述される文字列の記述と追加的な制御を実行するための文字列の記述である追加挿入可能記述とを関連付けてアダプタ追加パターンファイルルールとして予め記憶しているアダプタ追加パターンファイルルール記憶手段を有し、
前記アダプタ生成手段が、
前記アダプタファイルの記述から文字列の記述を検出し、前記検出した文字列の記述に基づいて前記アダプタ追加パターンファイルルールから追加挿入可能記述を抽出し、前記抽出した追加挿入可能記述を表示し、前記表示した追加挿入可能記述の中から選択された追加挿入可能記述を前記アダプタファイルに追記する、
ことを特徴とする請求項1に記載のアダプタ生成装置。
Adapter additional pattern file rule stored in advance as an adapter additional pattern file rule by associating a description of a character string described in a general-purpose language with an additional insertable description that is a description of a character string for performing additional control Having storage means;
The adapter generation means is
Detecting a description of a character string from the description of the adapter file, extracting an additional insertable description from the adapter additional pattern file rule based on the description of the detected character string, and displaying the extracted additional insertable description; Adding an additional insertable description selected from the displayed additional insertable descriptions to the adapter file;
The adapter generation device according to claim 1.
前記スクリプトまたは前記アダプタファイルに基づいて、前記端末へ文字列を送信する自動実行手段、
を有することを特徴とする請求項1または請求項2に記載のアダプタ生成装置。
Automatic execution means for transmitting a character string to the terminal based on the script or the adapter file;
The adapter generation device according to claim 1, wherein the adapter generation device is provided.
端末のシステム情報と関連付けて前記端末と接続するための接続情報を予め記憶する接続情報記憶手段と、
接続先の端末を指定する接続先情報を受信する接続先入力手段と、
前記接続先入力手段の受信した接続先情報に基づいて、前記接続先情報の端末に関するシステム情報を検出するプロダクト検出手段と、
前記プロダクト検出手段が検出したシステム情報と関連する接続情報を前記接続情報記憶手段から選択し、前記選択した接続情報に基づき前記接続先情報の端末へ接続するログイン手段と、
を有することを特徴とする請求項1から請求項3のいずれか1項に記載のアダプタ生成装置。
Connection information storage means for preliminarily storing connection information for connecting to the terminal in association with system information of the terminal;
A connection destination input means for receiving connection destination information for specifying a connection destination terminal;
Product detection means for detecting system information related to the terminal of the connection destination information based on the connection destination information received by the connection destination input means;
Login means for selecting connection information related to the system information detected by the product detection means from the connection information storage means, and connecting to the terminal of the connection destination information based on the selected connection information;
The adapter generation device according to any one of claims 1 to 3 , wherein the adapter generation device is provided.
前記スクリプトまたは前記アダプタファイルに基づいて、前記端末へ文字列を送信する自動実行手段と、
端末のシステム情報と関連付けて前記端末と接続するための接続情報を予め記憶する接続情報記憶手段と、
接続先の端末を指定する接続先情報を受信する接続先入力手段と、
前記接続先入力手段の受信した接続先情報に基づいて、前記接続先情報の端末に関するシステム情報を検出するプロダクト検出手段と、
前記プロダクト検出手段が検出したシステム情報と関連する接続情報を前記接続情報記憶手段から選択し、前記選択した接続情報に基づき前記接続先情報の端末へ接続するログイン手段と、
を有し、
前記ログイン手段が、前記選択した接続情報を識別する接続情報識別情報を前記スクリプト生成手段に送信し、
前記スクリプト生成手段が、前記ログイン手段から受信した接続情報識別情報に基づいた記述を前記スクリプトまたはアダプタファイルに記述し、
前記自動実行手段が、前記スクリプトまたはアダプタファイルの前記接続情報識別情報に基づいた記述により、前記接続情報識別情報を前記ログイン手段に送信し、
前記ログイン手段が、前記自動実行手段から受信した接続情報識別情報に基づいて、接続情報を前記接続情報記憶手段から選択し、前記選択した接続情報に基づき前記接続先情報の端末へ接続する、
ことを特徴とする請求項1から請求項3のいずれか1項に記載のアダプタ生成装置。
Automatic execution means for transmitting a character string to the terminal based on the script or the adapter file;
Connection information storage means for preliminarily storing connection information for connecting to the terminal in association with system information of the terminal;
A connection destination input means for receiving connection destination information for specifying a connection destination terminal;
Product detection means for detecting system information related to the terminal of the connection destination information based on the connection destination information received by the connection destination input means;
Login means for selecting connection information related to the system information detected by the product detection means from the connection information storage means, and connecting to the terminal of the connection destination information based on the selected connection information;
Have
The login means transmits connection information identification information for identifying the selected connection information to the script generation means,
The script generation means describes a description based on the connection information identification information received from the login means in the script or adapter file,
The automatic execution means transmits the connection information identification information to the login means by a description based on the connection information identification information of the script or adapter file,
The login unit selects connection information from the connection information storage unit based on the connection information identification information received from the automatic execution unit, and connects to the terminal of the connection destination information based on the selected connection information.
The adapter production | generation apparatus of any one of Claim 1 to 3 characterized by the above-mentioned.
前記端末の設定情報を保存するためのNEコンフィグファイル記憶手段と、
前記端末に接続し、前記接続した端末の設定情報を前記端末から取得し、前記取得した設定情報を前記NEコンフィグファイル記憶手段に保存するバックアップ手段と、
前記NEコンフィグファイル記憶手段に保存される設定情報に基づいて端末に接続し、前記接続した端末の設定情報を、前記設定情報に基づいて変更するロールバック手段と、
を有することを特徴とする請求項1から請求項5のいずれか1項に記載のアダプタ生成装置。
NE configuration file storage means for storing the setting information of the terminal;
Backup means for connecting to the terminal, acquiring setting information of the connected terminal from the terminal, and storing the acquired setting information in the NE configuration file storage means;
Rollback means for connecting to a terminal based on setting information stored in the NE configuration file storage means, and changing the setting information of the connected terminal based on the setting information;
The adapter generation device according to any one of claims 1 to 5 , wherein the adapter generation device is provided.
前記アダプタ生成装置のIPアドレスの情報と検索するIPアドレスの範囲の情報とシードデバイスのIPアドレスの情報とに基づき、ネットワーク上の端末を検出するディスカバリ手段、
を有することを特徴とする請求項1から請求項6のいずれか1項に記載のアダプタ生成装置。
Discovery means for detecting a terminal on the network based on the IP address information of the adapter generation device, the IP address range information to be searched, and the IP address information of the seed device,
The adapter generation device according to any one of claims 1 to 6 , wherein the adapter generation device is provided.
端末とネットワークを介して接続されるアダプタ生成装置で用いられるアダプタ生成方法であり、
入出力手段が、ユーザより入力された第1の文字列を送信する入出力過程と、
送受信手段が、前記入出力手段から受信した第1の文字列を前記端末に送信し、前記送信した第1の文字列の応答である第2の文字列を前記端末から受信し、前記受信した第2の文字列を前記入出力手段に送信する送受信過程と、
キャプチャ手段が、前記第1の文字列と前記第2の文字列とを取得するキャプチャ過程と、
スクリプト生成手段が、前記取得した第2の文字列と前記第1の文字列とを関連付けて、前記端末へ文字列を送信するためのスクリプトを生成するスクリプト生成過程と、
アダプタ生成手段が、同一の処理に対するスクリプトの記述と汎用的に用いられる汎用言語による記述とを関連付けて変換ルールとして予め記憶している変換ルール記憶手段から読み出した前記変換ルールに基づいて、前記生成したスクリプトを、アダプタ言語の記述に変換することにより、前記端末へ文字列を送信するための汎用言語により記述されるアダプタファイルを生成するアダプタ生成過程と、
を有することを特徴とするアダプタ生成方法。
An adapter generation method used in an adapter generation device connected to a terminal via a network,
An input / output process in which the input / output means transmits the first character string input by the user;
The transmitting / receiving means transmits the first character string received from the input / output means to the terminal, receives the second character string that is a response of the transmitted first character string from the terminal, and receives the received A transmission / reception process of transmitting a second character string to the input / output means ;
A capture process in which the capture means acquires the first character string and the second character string;
A script generating step for generating a script for associating the acquired second character string with the first character string and transmitting the character string to the terminal;
The adapter generation means associates the script description for the same process with the description in a general-purpose language used for general purposes, based on the conversion rule read out from the conversion rule storage means stored in advance as a conversion rule. An adapter generation process for generating an adapter file described in a general language for transmitting a character string to the terminal by converting the script into an adapter language description;
An adapter generation method characterized by comprising:
端末とネットワークを介して接続されるコンピュータに、
ユーザより入力された第1の文字列を送信する入出力手段と、
前記入出力手段から受信した第1の文字列を前記端末に送信し、前記送信した第1の文字列の応答である第2の文字列を前記端末から受信し、前記受信した第2の文字列を前記入出力手段に送信する送受信手段と、
前記第1の文字列と前記第2の文字列とを取得するキャプチャ手段と、
前記取得した第2の文字列と前記第1の文字列とを関連付けて、前記端末へ文字列を送信するためのスクリプトを生成するスクリプト生成手段と、
同一の処理に対するスクリプトの記述と汎用的に用いられる汎用言語による記述とを関連付けて変換ルールとして予め記憶している変換ルール記憶手段から読み出した前記変換ルールに基づいて、前記生成したスクリプトを、アダプタ言語の記述に変換することにより、前記端末へ文字列を送信するための汎用言語により記述されるアダプタファイルを生成するアダプタ生成手段と、
の機能を実行させるアダプタ生成プログラム。
To a computer connected to the terminal via a network,
Input / output means for transmitting the first character string input by the user;
The first character string received from the input / output means is transmitted to the terminal, the second character string that is a response to the transmitted first character string is received from the terminal, and the received second character Transmitting / receiving means for transmitting a column to the input / output means;
Capture means for obtaining the first character string and the second character string;
Script generation means for associating the acquired second character string with the first character string and generating a script for transmitting the character string to the terminal;
Based on the conversion rule read out from the conversion rule storage means that stores the description of the script for the same process and the description in a general-purpose language used for general purposes in advance as a conversion rule, the generated script is Adapter generation means for generating an adapter file described in a general-purpose language for transmitting a character string to the terminal by converting into a language description;
Adapter generation program that executes the functions of
JP2006221572A 2006-08-15 2006-08-15 ADAPTER GENERATION DEVICE, METHOD, AND PROGRAM Expired - Fee Related JP4869831B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006221572A JP4869831B2 (en) 2006-08-15 2006-08-15 ADAPTER GENERATION DEVICE, METHOD, AND PROGRAM

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006221572A JP4869831B2 (en) 2006-08-15 2006-08-15 ADAPTER GENERATION DEVICE, METHOD, AND PROGRAM

Publications (2)

Publication Number Publication Date
JP2008046847A JP2008046847A (en) 2008-02-28
JP4869831B2 true JP4869831B2 (en) 2012-02-08

Family

ID=39180539

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006221572A Expired - Fee Related JP4869831B2 (en) 2006-08-15 2006-08-15 ADAPTER GENERATION DEVICE, METHOD, AND PROGRAM

Country Status (1)

Country Link
JP (1) JP4869831B2 (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5300313B2 (en) * 2008-05-01 2013-09-25 日本電信電話株式会社 Network device setting device and network device setting method
JP4809871B2 (en) * 2008-07-07 2011-11-09 日本電信電話株式会社 Configuration setting management model creation device, configuration setting management model creation method and program thereof
JP4691177B2 (en) * 2008-07-14 2011-06-01 株式会社リコー Embedded device, remote processing method and program
JP4768007B2 (en) * 2008-11-20 2011-09-07 三菱電機インフォメーションシステムズ株式会社 Remote terminal and remote terminal processing program
JP2012059039A (en) * 2010-09-09 2012-03-22 Nec Corp Command management device, and method and program thereof
JP5683209B2 (en) * 2010-10-27 2015-03-11 株式会社日立システムズ Client computer with automatic document generation function
JP5479389B2 (en) * 2011-03-04 2014-04-23 エンカレッジ・テクノロジ株式会社 Information processing system, program modification device, program modification method, and program
JP6204120B2 (en) * 2013-09-06 2017-09-27 Kddi株式会社 Work system and program
JP6872703B2 (en) 2016-10-17 2021-05-19 パナソニックIpマネジメント株式会社 Program generation method, program generator and control program
CN111625397B (en) * 2020-04-14 2023-09-12 北京捷通华声科技股份有限公司 Service log backup method, cluster, device, electronic equipment and storage medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6276955A (en) * 1985-09-30 1987-04-09 Matsushita Electric Ind Co Ltd Communication terminal equipment
JPH09186716A (en) * 1995-12-28 1997-07-15 Sumitomo Electric Ind Ltd Network topology recognition method and network topology recognition device
JP3301320B2 (en) * 1996-10-01 2002-07-15 村田機械株式会社 Communication terminal device
JP2000090028A (en) * 1998-09-10 2000-03-31 Toshiba Corp Network managing device and computer readble recording medium which records program
JP4293169B2 (en) * 2005-08-16 2009-07-08 日本電気株式会社 Network equipment control system

Also Published As

Publication number Publication date
JP2008046847A (en) 2008-02-28

Similar Documents

Publication Publication Date Title
JP4869831B2 (en) ADAPTER GENERATION DEVICE, METHOD, AND PROGRAM
US7475126B2 (en) Method and apparatus for system lineup and testing
CN109495308B (en) Automatic operation and maintenance system based on management information system
US7133906B2 (en) System and method for remotely configuring testing laboratories
KR100453824B1 (en) XML based network management system and method for configuration management of heterogeneous network devices
US20110239189A1 (en) Software management system for network data processing systems
US7831959B1 (en) Method and apparatus to manage configuration for multiple file server appliances
JP2001282655A (en) Method, device, and storage medium for network device management
JP7231518B2 (en) Packaging support system and packaging support method
JP2010532502A (en) Real-time integrated management information data conversion and monitoring apparatus and method
CN109471621B (en) Tool construction method based on big data under Linux system
CN114237538A (en) Screen projection control method, server, screen projection equipment and system
JP4636775B2 (en) Network monitoring system
JP4293169B2 (en) Network equipment control system
US8032540B1 (en) Description-based user interface engine for network management applications
JP4734030B2 (en) Management system
CN105074661A (en) Electronic apparatus and script generation device
Thompson et al. Labtainers Cyber Exercises: Building and Deploying Fully Provisioned Cyber Labs that Run on a Laptop.
Cisco Release Notes for Device Fault Manager 1.1 on Windows 2000 and Windows NT
Cisco Release Notes for Device Fault Manager 1.1 on Solaris
JP4541994B2 (en) Control device, control method and program
CN110837612B (en) Uniform Resource Identifier (URI) data acquisition method and device and storage medium
JP5702134B2 (en) Device control apparatus, information management apparatus, control method therefor, and device control system
JP2007102665A (en) Check device of requester program and test value input support device
JP2007334409A (en) Network connection apparatus, method, and program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20080801

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20110531

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20110621

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20110803

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20110823

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20111021

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

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

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

Free format text: PAYMENT UNTIL: 20141125

Year of fee payment: 3

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees