JP2013214237A - Configuration file analysis device and program - Google Patents

Configuration file analysis device and program Download PDF

Info

Publication number
JP2013214237A
JP2013214237A JP2012084735A JP2012084735A JP2013214237A JP 2013214237 A JP2013214237 A JP 2013214237A JP 2012084735 A JP2012084735 A JP 2012084735A JP 2012084735 A JP2012084735 A JP 2012084735A JP 2013214237 A JP2013214237 A JP 2013214237A
Authority
JP
Japan
Prior art keywords
configuration file
word
definition
model
analysis
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.)
Pending
Application number
JP2012084735A
Other languages
Japanese (ja)
Inventor
Tomonori Takeda
知典 武田
Yoshihiko Uematsu
芳彦 植松
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 JP2012084735A priority Critical patent/JP2013214237A/en
Publication of JP2013214237A publication Critical patent/JP2013214237A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

PROBLEM TO BE SOLVED: To efficiently execute processing such as analysis on a configuration file.SOLUTION: A configuration file analysis device 1 can analyze a configuration file while skipping a portion other than a predetermined analysis target in the configuration file using an exclusion definition in a syntax analysis definition group, thereby enabling efficient execution of processing such as analysis on the configuration file.

Description

本発明は、ルータなどのネットワーク装置(以下、単に「装置」と称する場合もある。)の設定を文字列により記載したコンフィグレーションファイルを解析し、対象装置(そのコンフィグレーションファイルに対応するネットワーク装置)の機種(以下、単に「機種」とも称する。)に依存しない汎用的な書式に変換する技術に関する。   The present invention analyzes a configuration file in which the setting of a network device such as a router (hereinafter, also simply referred to as “device”) is described by a character string, and analyzes the target device (a network device corresponding to the configuration file) ) (Hereinafter simply referred to as “model”).

通常、コンフィグレーションファイルは機種ごとにその記載方法が異なる。そのような前提の下、従来技術において、構文解析に関し、コンフィグレーションファイルの文字列を全て解析するための構文解析定義群を効率的に作成する方法として、基本的な定義から構文解析定義群を自動生成する方法がある(非特許文献1参照)。   Normally, the description method of the configuration file differs depending on the model. Under such a premise, in the conventional technology, as a method of efficiently creating a parsing definition group for analyzing all the character strings of the configuration file in the related art, the parsing definition group is changed from the basic definition. There is a method for automatic generation (see Non-Patent Document 1).

この方法では、ネットワーク装置としてルータを想定し、少数の基本的な定義を記載して、コンフィグレーションファイルを読み込むと、このコンフィグレーションファイルの全ての文字列の構文解析に必要な、構文解析定義群を自動生成する。   In this method, assuming a router as a network device, describing a few basic definitions, and reading the configuration file, the parsing definition group required for parsing all the strings in this configuration file. Is automatically generated.

Donald Caldwell, Seungjoon Lee, Yitzhak Mandelbaum, “Adaptive Parsing of Router Configuration Languages”, Internet Network Management Workshop 2008, 19 Oct. 2008, INM 2008, p.1-6Donald Caldwell, Seungjoon Lee, Yitzhak Mandelbaum, “Adaptive Parsing of Router Configuration Languages”, Internet Network Management Workshop 2008, 19 Oct. 2008, INM 2008, p.1-6

しかしながら、従来の方法では、構文解析定義群を自動生成するが、その定義が妥当であるかの確認作業が必要となる。また、機種のOS(Operating System)が更新されたり、設定内容が追加されたりした場合、コンフィグレーションファイルの記載内容が大きく変わり、少数の基本的な定義が十分でないときは、手作業によりエラーを解析し、修正する必要がある。そして、コンフィグレーションファイルの全ての文字列の構文解析に必要な構文解析定義群の確認が必要となるため、非常に膨大な数の定義の確認が必要となる。   However, in the conventional method, a parsing definition group is automatically generated, but it is necessary to check whether the definition is valid. In addition, when the OS (Operating System) of the model is updated or setting contents are added, the description contents of the configuration file change greatly, and if a few basic definitions are not sufficient, an error will occur manually. It needs to be analyzed and corrected. And since it is necessary to check the parsing definition group necessary for the parsing of all the character strings in the configuration file, it is necessary to check a very large number of definitions.

そこで、本発明は、このような事情に鑑みてなされたものであり、コンフィグレーションファイルに対する解析等の処理を効率的に行うことを課題とする。   Therefore, the present invention has been made in view of such circumstances, and an object thereof is to efficiently perform processing such as analysis on a configuration file.

前記課題を解決するために、本発明は、ネットワーク装置の設定を文字列により記載したコンフィグレーションファイルを解析し、前記ネットワーク装置の機種に依存しない汎用的な書式に変換するコンフィグレーションファイル解析装置であって、前記コンフィグレーションファイルについて所定の解析対象を解析するために定義した1つ以上の構文解析定義と、前記コンフィグレーションファイルについて前記所定の解析対象以外の部分を解析対象から除外することを定義した1つ以上の除外定義と、を有する構文解析定義群であって、前記ネットワーク装置の機種ごとに作成された構文解析定義群、および、前記ネットワーク装置の機種ごとの前記コンフィグレーションファイルの書式と、前記ネットワーク装置の全ての機種に共通の書式と、を定義した複数の書式変換定義からなる書式変換定義群、を記憶する記憶部と、前記コンフィグレーションファイルを入力すると、前記記憶部に記憶された当該コンフィグレーションファイルに対応する前記構文解析定義群を適用して、前記除外定義を用いて前記コンフィグレーションファイルにおける前記所定の解析対象以外の部分をスキップしながら、前記コンフィグレーションファイルにおける前記所定の解析対象の部分の文字列を単語に区切り、その区切った単語をツリー状の構造のデータに変換する構文解析部と、前記構文解析部が変換したデータを入力すると、前記記憶部に記憶された前記書式変換定義群のうち当該コンフィグレーションファイルに対応する前記書式変換定義群を適用して、前記ネットワーク装置の機種に依存しない汎用的な書式に変換する共通書式変換部と、を備えることを特徴とする。   In order to solve the above problems, the present invention is a configuration file analysis device that analyzes a configuration file in which network device settings are described in character strings and converts the configuration file into a general-purpose format independent of the model of the network device. One or more syntax analysis definitions defined for analyzing a predetermined analysis target for the configuration file, and defining that a part other than the predetermined analysis target is excluded from the analysis target for the configuration file A parsing definition group having one or more exclusion definitions, a parsing definition group created for each model of the network device, and a format of the configuration file for each model of the network device, , Common to all models of the network device A storage unit that stores a format conversion definition group including a plurality of format conversion definitions that define an expression, and the configuration analysis that corresponds to the configuration file stored in the storage unit when the configuration file is input Applying a definition group and using the exclusion definition to skip a portion other than the predetermined analysis target in the configuration file, and delimit the character string of the predetermined analysis target portion in the configuration file into words A syntax analysis unit that converts the delimited word into data having a tree-like structure; and when the data converted by the syntax analysis unit is input, the configuration file of the format conversion definition group stored in the storage unit The format conversion definition group corresponding to the A common format conversion unit for converting a generic format that does not depend on, characterized in that it comprises a.

これによれば、コンフィグレーションファイル解析装置は、構文解析定義群における除外定義を用いてコンフィグレーションファイルにおける所定の解析対象以外の部分をスキップしながら、コンフィグレーションファイルを解析することができるので、コンフィグレーションファイルに対する解析等の処理を効率的に行うことができる。   According to this, the configuration file analysis apparatus can analyze the configuration file while skipping portions other than the predetermined analysis target in the configuration file by using the exclusion definition in the syntax analysis definition group. The analysis file can be analyzed efficiently.

また、本発明は、前記除外定義が、解析対象以外の部分として解析対象から除外する文字列の範囲の開始条件を、解析対象とする単語以外の任意の単語の出現とし、終了条件を、終了単語として指定した単語の出現として、定義されていることを特徴とする。   In the present invention, the exclusion definition sets the start condition of the range of the character string to be excluded from the analysis target as a part other than the analysis target as the appearance of an arbitrary word other than the analysis target word, and the end condition as the end condition. It is defined as the appearance of a word specified as a word.

これによれば、コンフィグレーションファイル解析装置では、解析対象とする単語以外の任意の単語から、終了単語として指定した単語までを、解析対象外とすることができる。   According to this, in the configuration file analysis apparatus, it is possible to exclude any word other than the word to be analyzed up to the word designated as the end word from being analyzed.

また、本発明は、前記除外定義が、解析対象以外の部分として解析対象から除外する文字列の範囲の開始条件を、解析対象とする単語以外の任意の単語に続けて範囲開始単語として指定した単語の出現とし、終了条件を、範囲終了単語として指定した単語の出現とし、更に、前記範囲開始単語の出現に続いて、前記範囲終了単語の出現の前に、再び前記範囲開始単語が出現した場合、前記範囲開始単語の出現回数と前記範囲終了単語の出現回数が同数になった場合に、終了と判定することとして、定義されていることを特徴とする。   In the present invention, the exclusion definition specifies the start condition of the range of the character string excluded from the analysis target as a part other than the analysis target as a range start word following any word other than the analysis target word. The appearance of a word, the end condition is the appearance of a word specified as a range end word, and the range start word appears again after the start of the range start word and before the appearance of the range end word In this case, it is defined that it is determined to end when the number of appearances of the range start word and the number of appearances of the range end word are the same.

これによれば、コンフィグレーションファイル解析装置では、解析対象とする単語以外の任意の単語に続けて範囲開始単語として指定した単語から、範囲終了単語として指定した単語までを、解析対象外とすることができる。また、範囲開始単語の出現に続いて、範囲終了単語の出現の前に、再び範囲開始単語が出現した場合、範囲開始単語の出現回数と範囲終了単語の出現回数が同数になった場合に、終了と判定することができる。   According to this, in the configuration file analyzing apparatus, the word specified as the range start word following the arbitrary word other than the word to be analyzed is excluded from the analysis target from the word specified as the range end word. Can do. In addition, after the appearance of the range start word, before the appearance of the range end word, when the range start word appears again, when the number of occurrences of the range start word and the number of appearances of the range end word are the same, It can be determined that the process has ended.

また、本発明は、前記除外定義が、解析対象以外の部分として解析対象から除外する文字列の範囲の開始条件を、行頭空白文字数X(X≧0)に続けて解析対象とする単語以外の任意の単語の出現とし、終了条件を、行頭空白文字数YもしくはY以下(Y≧0)の出現として、定義されていることを特徴とする。   Further, according to the present invention, the start definition of the character string range excluded from the analysis target as a part other than the analysis target is a word other than the word to be analyzed following the number of blank characters X (X ≧ 0). It is characterized by the appearance of an arbitrary word and the end condition defined as the appearance of the number of leading blank characters Y or less than Y (Y ≧ 0).

これによれば、コンフィグレーションファイル解析装置では、行頭空白文字数X(X≧0)に続けて解析対象とする単語以外の任意の単語から、行頭空白文字数YもしくはY以下(Y≧0)の出現までを、解析対象外とすることができる。   According to this, in the configuration file analysis apparatus, the number of leading blank characters Y or the number of leading blank characters Y or less (Y ≧ 0) appears from any word other than the word to be analyzed following the leading blank number X (X ≧ 0). Can be excluded from analysis.

また、本発明は、前記記憶部が、前記ネットワーク装置の機種ごとの、前記コンフィグレーションファイルで使用される固有の文字列を定義した1つ以上の機種特定定義からなる機種特定定義群を、さらに記憶しており、前記コンフィグレーションファイル解析装置が、前記コンフィグレーションファイルを入力したとき、前記記憶部の機種特定定義群を参照して、当該コンフィグレーションファイルに、前記固有の文字列が出現した場合に、対応する前記ネットワーク装置の機種を特定する機種特定部を、さらに備え、前記構文解析部と前記共通書式変換部が、前記機種特定部が特定した前記ネットワーク装置の機種の情報を用いて各処理を行うことを特徴とする。   In the present invention, the storage unit further includes a model-specific definition group including one or more model-specific definitions defining a unique character string used in the configuration file for each model of the network device. When the configuration file analysis device stores the configuration file, and the unique character string appears in the configuration file with reference to the model specific definition group in the storage unit Further comprising a model specifying unit for specifying the model of the corresponding network device, wherein the syntax analysis unit and the common format conversion unit each use information on the model of the network device specified by the model specifying unit. It is characterized by performing processing.

これによれば、コンフィグレーションファイル解析装置では、入力したコンフィグレーションファイルに対応するネットワーク装置の機種を機種特定部によって自動的に特定できるため、その情報を用いて構文解析部と共通書式変換部が各処理を行うことができ、解析効率がさらに向上する。   According to this, in the configuration file analysis device, the model specifying unit can automatically specify the model of the network device corresponding to the input configuration file, so the syntax analysis unit and the common format conversion unit can use the information. Each processing can be performed, and the analysis efficiency is further improved.

また、本発明は、コンピュータを、前記したコンフィグレーションファイル解析装置における各部として機能させるためのプログラムである。   Further, the present invention is a program for causing a computer to function as each unit in the configuration file analyzing apparatus described above.

これによれば、このようなプログラムを実装したコンピュータを、コンフィグレーションファイル解析装置における各部として機能させることができる。   According to this, a computer in which such a program is installed can be caused to function as each unit in the configuration file analyzing apparatus.

本発明によれば、コンフィグレーションファイルに対する解析等の処理を効率的に行うことができる。   According to the present invention, it is possible to efficiently perform processing such as analysis on a configuration file.

本実施形態におけるコンフィグレーションファイル解析装置の構成図である。It is a block diagram of the configuration file analysis apparatus in this embodiment. コンフィグレーションファイルの例を示す図である。It is a figure which shows the example of a configuration file. 本実施形態で作成する構文解析定義群の例を示す図である。It is a figure which shows the example of the parsing analysis definition group produced in this embodiment. コンフィグレーションファイル解析装置の構文解析部による出力データの例を示す図である。It is a figure which shows the example of the output data by the syntax analysis part of a configuration file analysis apparatus. コンフィグレーションファイル解析装置の共通書式変換部による出力データの例を示す図である。It is a figure which shows the example of the output data by the common format conversion part of a configuration file analysis apparatus. ネットワーク装置の機種を自動特定可能なコンフィグレーションファイル解析装置の構成図である。It is a block diagram of the configuration file analysis apparatus which can identify the model of a network apparatus automatically.

以下、本発明を実施するための形態(以下、実施形態と称する。)について、図面を参照(言及図以外の図も適宜参照)しながら説明する。
図1に示すように、コンフィグレーションファイル解析装置1は、コンピュータ装置であり、記憶部2、入力部3、表示部4、処理部5を備えて構成される。
Hereinafter, modes for carrying out the present invention (hereinafter referred to as embodiments) will be described with reference to the drawings (refer to drawings other than the referenced drawings as appropriate).
As shown in FIG. 1, the configuration file analysis device 1 is a computer device, and includes a storage unit 2, an input unit 3, a display unit 4, and a processing unit 5.

記憶部2は、各種データ、各種プログラム等の情報を記憶する手段であり、例えば、RAM(Random Access Memory)、ROM(Read Only Memory)、HDD(Hard Disk Drive)等によって実現される。記憶部2は、コンフィグレーションファイルについて所定の解析対象を解析するために定義した1つ以上の構文解析定義と、コンフィグレーションファイルについて所定の解析対象以外の部分を解析対象から除外することを定義した1つ以上の除外定義と、を有する構文解析定義群であって、ネットワーク装置の機種ごとに作成された構文解析定義群(詳細は後記)を記憶している。また、記憶部2は、ネットワーク装置の機種ごとのコンフィグレーションファイルの書式と、ネットワーク装置の全ての機種に共通の書式と、を定義した複数の書式変換定義からなる書式変換定義群(詳細は後記)を記憶している。   The storage unit 2 is means for storing information such as various data and various programs, and is realized by, for example, a RAM (Random Access Memory), a ROM (Read Only Memory), a HDD (Hard Disk Drive), or the like. The storage unit 2 defines one or more syntax analysis definitions defined for analyzing a predetermined analysis target for the configuration file, and excluding a part other than the predetermined analysis target for the configuration file from the analysis target. A parsing definition group having at least one exclusion definition and a parsing definition group (details will be described later) created for each model of the network device is stored. The storage unit 2 also includes a format conversion definition group consisting of a plurality of format conversion definitions that define a configuration file format for each network device model and a format common to all network device models (details will be described later). ) Is remembered.

入力部3は、コンフィグレーションファイル解析装置1のユーザが情報を入力する手段であり、例えば、キーボードやマウスによって実現される。
表示部4は、処理部5からの指示により情報を表示する手段であり、例えば、LCD(Liquid Crystal Display)によって実現される。
The input unit 3 is a means for the user of the configuration file analysis apparatus 1 to input information, and is realized by, for example, a keyboard or a mouse.
The display unit 4 is a means for displaying information according to an instruction from the processing unit 5, and is realized by, for example, an LCD (Liquid Crystal Display).

処理部5は、記憶部2に記憶された動作プログラムによって各種演算を行う手段であり、構文解析部51と共通書式変換部52を備え、例えば、CPU(Central Processing Unit)によって実現される。   The processing unit 5 is a means for performing various calculations according to the operation program stored in the storage unit 2, and includes a syntax analysis unit 51 and a common format conversion unit 52, and is realized by, for example, a CPU (Central Processing Unit).

構文解析部51は、コンフィグレーションファイルを入力すると、記憶部2に記憶された当該コンフィグレーションファイルに対応する構文解析定義群(詳細は後記)を適用して、除外定義を用いてコンフィグレーションファイルにおける所定の解析対象以外の部分をスキップしながら、コンフィグレーションファイルにおける所定の解析対象の部分の文字列を単語に区切り、その区切った単語をツリー状の構造のデータに変換する。   When the syntax analysis unit 51 receives the configuration file, the syntax analysis unit 51 applies a syntax analysis definition group (details will be described later) corresponding to the configuration file stored in the storage unit 2 and uses the exclusion definition in the configuration file. While skipping portions other than the predetermined analysis target, the character string of the predetermined analysis target portion in the configuration file is divided into words, and the divided words are converted into tree-structured data.

なお、構文解析部51は、機種ごとの構文解析定義群を含み機種ごとに構文解析部を有する構成としても良いし、あるいは、機種ごとの構文解析定義群を選択的に入力として1つの構文解析部のみを有する構成としても良い。また、変換した結果を、メモリとして保持しても良いし、データベースやファイルに保持しても良い。   The parsing unit 51 may include a parsing definition group for each model and a parsing unit for each model. Alternatively, the parsing unit 51 may selectively input a parsing definition group for each model and perform one parsing. It is good also as a structure which has only a part. The converted result may be stored as a memory, or may be stored in a database or a file.

また、構文解析部51は、構文解析定義群をプログラム言語で記載した上で、コンパイルにより生成される実行ファイルとして実現する形態として構成しても良い。この場合、機種ごとに実行ファイルが用意されることとなる。   Further, the syntax analysis unit 51 may be configured to be implemented as an execution file generated by compilation after the syntax analysis definition group is described in a program language. In this case, an executable file is prepared for each model.

共通書式変換部52は、構文解析部51が変換したデータを入力すると、記憶部2に記憶された書式変換定義群(詳細は後記)のうち当該コンフィグレーションファイルに対応する書式変換定義群を適用して、ネットワーク装置の機種に依存しない汎用的な書式に変換する。   When the data converted by the syntax analysis unit 51 is input, the common format conversion unit 52 applies the format conversion definition group corresponding to the configuration file among the format conversion definition groups (described later in detail) stored in the storage unit 2. Then, it is converted into a general-purpose format that does not depend on the model of the network device.

なお、共通書式変換部52は、機種ごとの書式変換定義群を含み機種ごとに共通書式変換部を有する構成としても良いし、機種ごとの書式変換定義群を選択的に入力として1つの共通書式変換部のみを有する構成としても良い。また、変換した結果を、メモリとして保持しても良いし、データベースやファイルに保持しても良い。   The common format conversion unit 52 may include a format conversion definition group for each model and a common format conversion unit for each model. Alternatively, the common format conversion unit 52 may selectively input a format conversion definition group for each model as one common format. It is good also as a structure which has only a conversion part. The converted result may be stored as a memory, or may be stored in a database or a file.

コンフィグレーションファイルは、ネットワーク装置を構成するインタフェースやCPUといったハードウェア情報、ネットワーク装置にアクセスするためのユーザ名やパスワードといった情報、アドレスやルーティングプロトコルといったプロトコル情報、パケットの転送ルールを記載したQoS(Quality of Service)ポリシー情報といった、情報が記載されたファイルである。前記したように、一般的に、コンフィグレーションファイルは、対象装置の機種ごとにその記載方法が異なる。また、機種のOSが更新されたり、設定内容が追加されたりした場合、コンフィグレーションファイルの記載内容が大きく変わりうる。   The configuration file includes hardware information such as interfaces and CPUs constituting the network device, information such as a user name and password for accessing the network device, protocol information such as address and routing protocol, and QoS (Quality) describing packet transfer rules. of Service) is a file containing information such as policy information. As described above, in general, the description method of the configuration file differs depending on the model of the target device. Further, when the OS of the model is updated or setting contents are added, the description contents of the configuration file can change greatly.

一方、ネットワーク管理において、コンフィグレーションファイルで確認すべき項目は、限定的であることが多い。例えば、ルータにおいて、装置間の接続関係のみを確認したい場合は、ネットワーク装置にどのようなインタフェースがあり、そのインタフェースのIP(Internet Protocol)アドレスとサブネットマスクが何であるか等の数項目を確認できれば良い。   On the other hand, in network management, items to be confirmed in the configuration file are often limited. For example, in a router, if you want to check only the connection relationship between devices, you can check several items such as what interface the network device has and what the IP (Internet Protocol) address and subnet mask of that interface are. good.

このような場合、構文解析定義群としては、関連する文字列のみが解析できるような定義ができていれば良く、その他の文字列は無視してかまわない。このように限定的な構文解析定義群を用いる場合、定義数が少なくて済み、人手による確認作業の負担は軽微である。また、機種のOSが更新されたり、設定内容が追加されたりした場合でも、解析すべき文字列に影響がなければ、構文解析定義群を修正する必要もない。   In such a case, the parsing definition group only needs to be defined so that only relevant character strings can be analyzed, and other character strings may be ignored. In this way, when a limited parsing definition group is used, the number of definitions is small, and the burden of manual confirmation work is small. Even when the OS of the model is updated or setting contents are added, there is no need to modify the parsing definition group if the character string to be analyzed is not affected.

図2(a)は、所定の機種Aのコンフィグレーションファイルの例である。図2(b)は、所定の機種Bのコンフィグレーションファイルの例である。なお、図2(a)(b)において、右側に1、2、・・・と行番号を付与しているが、これは説明の便宜上付与したもので、実際のコンフィグレーションファイルには通常行番号の記載はない。また、コンフィグレーションファイルは数千行に及ぶ場合もあるが、説明を簡易にするため、ここでの例では、数十行程度のものとしている。   FIG. 2A shows an example of a configuration file of a predetermined model A. FIG. 2B is an example of a configuration file of a predetermined model B. In FIGS. 2 (a) and 2 (b), line numbers 1, 2,... Are assigned on the right side for convenience of explanation, and the actual configuration file contains normal lines. There is no description of the number. In addition, although the configuration file may have several thousand lines, in order to simplify the description, the configuration file is assumed to have several tens of lines.

本例では、装置間の接続関係のみを確認する用途を想定し、図2(a)、図2(b)の太字部分(図2(a)の行2,3,8〜11,15〜17、図2(b)の行3,4)のみを、構文解析対象とするように、構文解析定義群を定義する。つまり、以下における「解析対象とする単語」とは、図2(a)、図2(b)の太字部分に出てくる「interfaces」等の所定の単語のことを指す。   In this example, it is assumed that only the connection relationship between the devices is confirmed, and the bold portions in FIGS. 2A and 2B (lines 2, 3, 8 to 11, 15 to 5 in FIG. 2A). 17, the parsing definition group is defined so that only the lines 3 and 4) of FIG. That is, the “word to be analyzed” in the following refers to a predetermined word such as “interfaces” appearing in a bold portion in FIGS. 2A and 2B.

ここで、構文解析定義群は、複数の構文解析定義からなる。また、構文解析定義として、除外定義を適用できる。
図3は、本実施形態における構文解析定義群の例を示す図である。本例では、装置間の接続関係のみを確認する用途を想定しており、構文解析定義群として、図2(a)、図2(b)の太字部分の文字列のみを解析できるような構文解析定義と、それ以外をスキップする除外定義を用意すれば良い。図3(a)では、定義4、5が除外定義、図3(b)では定義3、5が除外定義である。
仮に除外定義を用いない従来の方法では、図2(a)、図2(b)の太字部分以外の文字列も解析できるような定義を追加する必要があり、定義数が膨大になってしまう。
Here, the parsing definition group includes a plurality of parsing definitions. An exclusion definition can be applied as a parsing definition.
FIG. 3 is a diagram illustrating an example of a syntax analysis definition group in the present embodiment. In this example, it is assumed that only the connection relation between devices is confirmed, and a syntax that can analyze only a character string in a bold part in FIGS. 2A and 2B as a syntax analysis definition group. It is sufficient to prepare an analysis definition and an exclusion definition that skips the rest. In FIG. 3A, definitions 4 and 5 are exclusion definitions, and definitions 3 and 5 are exclusion definitions in FIG.
In the conventional method that does not use the exclusion definition, it is necessary to add a definition that can analyze a character string other than the bold portion in FIGS. 2A and 2B, and the number of definitions becomes enormous. .

図3(a)は、機種Aに適用する構文解析定義群の例、図3(b)は機種Bに適用する構文解析定義群の例を示している。なお、処理部5がコンフィグレーションファイルを読み込む際、1行ずつ読み込んで処理を行っても良いし、全行を一括して読み込んで処理を行っても良い。また、空白文字を単語の区切りとして用いるが、構文解析定義の中で白文字を単語の区切りとするような定義方法でも良い。また、図3(a)の例では、行頭スペース数を無視した前提での構文解析定義であるが、構文解析定義の中に行頭スペース数を無視するような定義を定める方法でも良い。   3A shows an example of a syntax analysis definition group applied to the model A, and FIG. 3B shows an example of a syntax analysis definition group applied to the model B. When the processing unit 5 reads the configuration file, the processing unit 5 may read and process one line at a time, or may read and process all lines at once. In addition, a blank character is used as a word separator, but a definition method in which a white character is used as a word separator in the parsing definition may be used. In the example of FIG. 3A, the parsing definition is based on the premise that the number of head spaces is ignored, but a method of defining a definition that ignores the number of head spaces in the syntax analysis definition may be used.

構文解析定義群は、複数の構文解析定義からなり、上の定義から順番に一致しているか確認する。具体的には次の通りである。
図3(a)で、“”で囲まれた部分は単語を、[]で囲まれた部分は再帰的に呼び出される定義を意味している。ただし、“”で囲まれた部分に「任意の〜」という表記がある場合は、該当するものが全て対象となる。つまり、“”で囲まれた部分として、特定の単語を指定しても良いし、任意の単語を指定しても良い(定義5、定義8)。また、“”と“”、もしくは、“”と[]が連続して記載している場合は、単語に続く単語、もしくは単語に続く定義、を意味する。
The parsing definition group consists of a plurality of parsing definitions, and confirms whether they match in order from the above definitions. Specifically, it is as follows.
In FIG. 3A, a portion surrounded by “” means a word, and a portion surrounded by [] means a definition that is recursively called. However, when there is a notation “arbitrary ~” in the portion surrounded by “”, all the applicable items are targeted. That is, a specific word may be designated as a portion surrounded by “”, or an arbitrary word may be designated (Definition 5 and Definition 8). In addition, when “” and “” or “” and [] are described consecutively, it means a word following a word or a definition following a word.

図3(b)で、“”で囲まれた部分は単語を、[]で囲まれた部分は再帰的に呼び出される定義を、<>で囲まれた部分は行頭スペース数を意味している。ただし、“”で囲まれた部分に「任意の〜」という表記がある場合は、該当するものが全て対象となる。なお、図3(a)の定義4は請求項2に対応する除外定義である。また、図3(a)の定義5は請求項3に対応する除外定義である。また、図3(b)の定義3,5は請求項5に対応する除外定義である。   In FIG. 3B, the part surrounded by “” means a word, the part surrounded by [] means a definition that is recursively called, and the part surrounded by <> means the number of spaces at the beginning of the line. . However, when there is a notation “arbitrary ~” in the portion surrounded by “”, all the applicable items are targeted. Note that definition 4 in FIG. 3A is an exclusion definition corresponding to claim 2. Further, definition 5 in FIG. 3A is an exclusion definition corresponding to claim 3. Definitions 3 and 5 in FIG. 3B are exclusion definitions corresponding to claim 5.

図2(a)のコンフィグレーションファイルを、図3(a)の構文解析定義群を用いて、構文解析部51で処理した場合は、以下のようになる。なお、前記したように、除外定義に該当した場合は、処理をスキップする。   When the configuration file in FIG. 2 (a) is processed by the syntax analysis unit 51 using the syntax analysis definition group in FIG. 3 (a), the configuration file is as follows. Note that, as described above, if the exception definition is met, the process is skipped.

1行目:定義1を確認→定義2を確認(一致) ⇒ 無視(読み飛ばす)
2行目:定義1を確認→定義2を確認(不一致)→定義3を確認(一致) ⇒ 次の単語
(3行目以降)を処理
3行目:定義6を確認(一致) ⇒ 次の単語(4行目以降)を処理
4行目:定義7を確認(不一致)→定義4を確認(一致) ⇒ 無視(スキップ)
5行目:定義7を確認(不一致)→定義4を確認(不一致)→定義5を確認(一致) ⇒
7行目(終了範囲“}”がある行)まで無視
8行目:定義7を確認(一致) ⇒次の単語(9行目以降)を処理
First line: Confirm definition 1 → Confirm definition 2 (match) ⇒ Ignore (skip)
2nd line: Confirm definition 1 → Confirm definition 2 (mismatch) → Confirm definition 3 (match) ⇒ Process next word (3rd and subsequent lines) 3rd line: Confirm definition 6 (match) ⇒ Next Process word (4th and subsequent lines) 4th line: Confirm definition 7 (mismatch) → Confirm definition 4 (match) ⇒ Ignore (skip)
5th line: Confirm definition 7 (mismatch) → Confirm definition 4 (mismatch) → Confirm definition 5 (match) ⇒
Ignore until line 7 (the line with end range "}") Line 8: Confirm definition 7 (match) ⇒ Process next word (from line 9)

9行目:定義8を確認(一致) ⇒ 次の単語(10行目以降)を処理
10行目:定義9を確認(一致) ⇒ ツリー形状のデータ構造に格納(図4(a)
参照)
11行目:9行目を確認時に確認済
12行目:定義8を確認(不一致)→定義4を確認(不一致)→定義5を確認(一致)
⇒ 14行目まで無視
15行目:8行目を確認時に確認済
16行目:3行目を確認時に確認済
17行目:2行目を確認時に確認済
18行目:定義1を確認→定義2を確認(不一致)→定義3を確認(不一致)→定義4を
確認(不一致)→定義5を確認(一致) ⇒26行目(終了範囲“}”がある
行)まで無視
9th line: Confirm definition 8 (match) ⇒ Process next word (10th and subsequent lines) 10th line: Confirm definition 9 (match) ⇒ Store in tree-shaped data structure (FIG. 4A)
reference)
11th line: Confirmed when confirming 9th line 12th line: Confirm definition 8 (mismatch) → Confirm definition 4 (mismatch) → Confirm definition 5 (match)
⇒ Ignored to 14th line 15th line: Confirmed when confirming 8th line 16th line: Confirmed when confirming 3rd line 17th line: Confirmed when confirming 2nd line 18th line: Confirmed definition 1 → Confirm definition 2 (mismatch) → Confirm definition 3 (mismatch) → Definition 4
Confirmation (non-coincidence) → Confirm definition 5 (coincidence) ⇒ 26th line (end range “}” exists)
Line)

また、図2(b)のコンフィグレーションファイルを、図3(b)の構文解析定義群を用いて、構文解析部51で処理した場合は、以下のようになる。
1行目:定義1を確認→定義2を確認(不一致)→定義3を確認(一致) ⇒ 無視
2行目:定義1を確認→定義2を確認(不一致)→定義3を確認(一致) ⇒ 無視
3行目:定義1を確認→定義2を確認(一致) ⇒ 次の単語(4行目以降)を処理
4行目:定義4を確認(一致) ⇒ → ツリー形状のデータ構造に格納(図4(b)
参照)
When the configuration file of FIG. 2B is processed by the syntax analysis unit 51 using the syntax analysis definition group of FIG. 3B, the configuration file is as follows.
1st line: Confirm definition 1 → Confirm definition 2 (mismatch) → Confirm definition 3 (match) ⇒ Ignore 2nd line: Confirm definition 1 → Confirm definition 2 (mismatch) → Confirm definition 3 (match) ⇒ Ignored 3rd line: Confirm definition 1 → Confirm definition 2 (match) ⇒ Process next word (4th and subsequent lines) 4th line: Confirm definition 4 (match) ⇒ → Store in tree-shaped data structure (Fig. 4 (b)
reference)

5行目:定義4を確認(不一致)→定義5を確認(一致) ⇒ 無視
6行目:定義4を確認(不一致)→定義5を確認(一致) ⇒ 無視
7行目:定義4を確認(不一致)→定義5を確認(一致) ⇒ 8行目まで無視
9行目:定義4を確認(不一致)→定義5を確認(一致) ⇒ 無視
10行目:定義1を確認→定義2を確認(不一致)→定義3を確認(一致) ⇒ 無視
11行目:定義1を確認→定義2を確認(不一致)→定義3を確認(一致) ⇒ 16行
目まで無視
17行目:定義1を確認→定義2を確認(不一致)→定義3を確認(一致) ⇒ 無視
Line 5: Confirm definition 4 (mismatch) → Confirm definition 5 (match) ⇒ Ignore Line 6: Confirm definition 4 (mismatch) → Confirm definition 5 (match) ⇒ Ignore line 7: Confirm definition 4 (Disagree) → Confirm definition 5 (match) ⇒ Ignore up to 8th line 9th line: Confirm definition 4 (not match) → Confirm definition 5 (match) ⇒ Ignore 10th line: Confirm definition 1 → Define 2 Confirmation (mismatch) → Confirm definition 3 (match) ⇒ Ignored 11th line: Confirm definition 1 → Confirm definition 2 (mismatch) → Confirm definition 3 (match) ⇒ 16
Ignored to the 17th line: Confirm definition 1 → Confirm definition 2 (mismatch) → Confirm definition 3 (match) ⇒ Ignore

図4は、構文解析部51による出力データの例を示す図である。図4(a)は、図3(a)の構文解析定義群を用いて構文解析部51で処理した場合の出力データを示している。図4(b)は、図3(b)の構文解析定義群を用いて構文解析部51で処理した場合の出力データを示している。   FIG. 4 is a diagram illustrating an example of output data from the syntax analysis unit 51. FIG. 4A shows output data when processing is performed by the syntax analysis unit 51 using the syntax analysis definition group of FIG. FIG. 4B shows output data when processed by the syntax analysis unit 51 using the syntax analysis definition group of FIG.

図5は、共通書式変換部52による出力データの例を示す図である。図5(a)は、図4(a)のデータを入力とした場合の、共通書式変換部52で変換した出力データを示している。図5(b)は、図4(b)のデータを入力とした場合の、共通書式変換部52で変換した出力データを示している。
このような変換を行うための書式変換定義群としては、例えば以下のようなものがある。
FIG. 5 is a diagram illustrating an example of output data by the common format conversion unit 52. FIG. 5A shows the output data converted by the common format conversion unit 52 when the data of FIG. 4A is input. FIG. 5B shows the output data converted by the common format converter 52 when the data of FIG. 4B is input.
Examples of format conversion definition groups for performing such conversion include the following.

<図4(a)のデータに対する書式変換定義群>
・入力:“interfaces”の1つ下位の単語 ⇒ 出力:「Interface」の「名称」に設定する
・入力:“interfaces”の4つ下位の“address”に続く単語のうち、“”の前半の文字列 ⇒ 出力:「Interface」の「アドレス」に設定する
・入力:“interfaces”の4つ下位の“address”に続く単語のうち、“”の後半の文字列 ⇒ 出力:「Interface」の「サブネットマスク」に設定する。
<Format Conversion Definition Group for Data in FIG. 4A>
・ Input: The first word below “interfaces” ⇒ Output: Set to “Name” of “Interface” ・ Input: The first half of “” among the words following “address” that is four lower than “interfaces” Character string ⇒ Output: Set to “Address” of “Interface” ・ Input: Of the words following “address”, which is four subordinates of “interfaces”, the character string after the second part of “” ⇒ Output: “Interface” Set to “Subnet Mask”.

<図4(b)に対する書式変換定義群>
・入力:“interface”に続く単語 ⇒ 出力:「Interface」の「名称」に設定する
・入力:“interface”“任意の文字列”の1つ下位の階層の“ipv4”“address”に続く単語「192.168.1.2」 ⇒ 出力:「Interface」の「アドレス」に設定する
・入力:“interface”“任意の単語”の1つ下位の階層の“ipv4”“address”に続く単語に更に続く単語「255.255.255.252」を、マスク長(「30」)に変換 ⇒ 出力:「Interface」の「サブネットマスク」に設定する
<Format Conversion Definition Group for FIG. 4B>
・ Input: Word that follows “interface” ⇒ Output: Set to “Name” of “Interface” ・ Input: Word that follows “ipv4” and “address” one level below “interface” and “any character string” “192.168.1.2” ⇒ Output: Set to “Interface” “Address” ・ Input: “interface” “Any word”, one word below “ipv4” “word” following the word following “address” "255.255.255.252" is converted to the mask length ("30") ⇒ Output: Set to "Subnet mask" in "Interface"

このように、本実施形態のコンフィグレーションファイル解析装置1では、機種に依存しない形で、情報を管理できる。
なお、コンフィグレーションファイルに機種ごとに固有の文字列が出現した場合に、その固有の文字列に基づいて機種を特定することで、適用する構文解析定義群および書式変換定義群を自動的に判定できる。
As described above, the configuration file analysis apparatus 1 of the present embodiment can manage information in a form independent of the model.
When a unique character string appears for each model in the configuration file, the parsing definition group and format conversion definition group to be applied are automatically determined by specifying the model based on the unique character string. it can.

図6は、機種を自動特定可能なコンフィグレーションファイル解析装置1a(1)の構成図である。コンフィグレーションファイル解析装置1aは、図1のコンフィグレーションファイル解析装置1に比べて、処理部5a(5)が機種特定部53を有している点で相違している。また、記憶部2は、ネットワーク装置の機種ごとの、コンフィグレーションファイルで使用される固有の文字列を定義した1つ以上の機種特定定義からなる機種特定定義群(詳細は後記)を、さらに記憶している。   FIG. 6 is a configuration diagram of the configuration file analysis apparatus 1a (1) capable of automatically specifying the model. The configuration file analyzing apparatus 1a is different from the configuration file analyzing apparatus 1 of FIG. 1 in that the processing unit 5a (5) has a model specifying unit 53. The storage unit 2 further stores a model-specific definition group (details will be described later) including one or more model-specific definitions that define unique character strings used in the configuration file for each model of the network device. doing.

機種特定定義群は、例えば、以下のようになる。
・1行目が“ ## Last changed”から始まる ⇒ 機種A
・1行目が“ !! Last configuration change”から始まる ⇒ 機種B
The model specific definition group is as follows, for example.
・ First line starts with “## Last changed” ⇒ Model A
・ First line starts with “!! Last configuration change” ⇒ Model B

コンフィグレーションファイル解析装置1aにコンフィグレーションファイルが入力された場合、処理部5aの機種特定部53は、事前に用意された前記のような機種特定定義群を用い、機種を特定することができる。機種を特定することで、その情報を用いて構文解析部51と共通書式変換部52が各処理を行うことができ、解析効率がさらに向上する。   When the configuration file is input to the configuration file analyzing apparatus 1a, the model specifying unit 53 of the processing unit 5a can specify the model using the model specifying definition group prepared in advance. By specifying the model, the syntax analysis unit 51 and the common format conversion unit 52 can perform each process using the information, and the analysis efficiency is further improved.

このように、本実施形態のコンフィグレーションファイル解析装置1によれば、構文解析定義群における除外定義を用いてコンフィグレーションファイルにおける所定の解析対象以外の部分をスキップしながら、コンフィグレーションファイルを解析することができるので、コンフィグレーションファイルに対する解析等の処理を効率的に行うことができる。   As described above, according to the configuration file analysis apparatus 1 of the present embodiment, the configuration file is analyzed while skipping portions other than the predetermined analysis target in the configuration file using the exclusion definition in the syntax analysis definition group. Therefore, processing such as analysis for the configuration file can be performed efficiently.

また、除外定義を用いて、例えば、解析対象とする単語以外の任意の単語から、終了単語として指定した単語までを、解析対象外とすることができる。   Further, by using the exclusion definition, for example, any word other than the word to be analyzed to the word designated as the end word can be excluded from the analysis target.

また、除外定義を用いて、例えば、解析対象とする単語以外の任意の単語に続けて範囲開始単語として指定した単語から、範囲終了単語として指定した単語までを、解析対象外とすることができる。また、その際、範囲開始単語の出現に続いて、範囲終了単語の出現の前に、再び範囲開始単語が出現した場合、範囲開始単語の出現回数と範囲終了単語の出現回数が同数になった場合に、終了と判定することができる。   In addition, by using the exclusion definition, for example, a word specified as a range start word after an arbitrary word other than a word to be analyzed to a word specified as a range end word can be excluded from analysis. . At that time, if the range start word appears again after the start of the range start word and before the appearance of the range end word, the number of occurrences of the range start word is equal to the number of times the range end word appears. In this case, it can be determined that the process is finished.

また、除外定義を用いて、例えば、行頭空白文字数X(X≧0)に続けて解析対象とする単語以外の任意の単語から、行頭空白文字数YもしくはY以下(Y≧0)の出現までを、解析対象外とすることができる。   In addition, by using the exclusion definition, for example, from an arbitrary word other than the word to be analyzed following the number of leading blank characters X (X ≧ 0) to the appearance of the leading blank character number Y or less than Y (Y ≧ 0). Can be excluded from analysis.

また、入力したコンフィグレーションファイルに対応するネットワーク装置の機種を機種特定部53によって自動的に特定することで、その情報を用いて構文解析部51と共通書式変換部52が各処理を行うことができ、解析効率がさらに向上する。   Further, by automatically specifying the model of the network device corresponding to the input configuration file by the model specifying unit 53, the syntax analysis unit 51 and the common format conversion unit 52 may perform each process using the information. This improves analysis efficiency.

以上で本実施形態の説明を終えるが、本発明の態様はこれらに限定されるものではない。
例えば、前記した複数種類の除外定義を同時に使用してもよい。そうすれば、コンフィグレーションファイルの様々なパターンに対応して、解析対象から除外する文字列等を柔軟に指定できる。
Although description of this embodiment is finished above, the aspect of the present invention is not limited to these.
For example, a plurality of types of exclusion definitions described above may be used at the same time. Then, it is possible to flexibly specify a character string to be excluded from the analysis target in accordance with various patterns in the configuration file.

また、本発明は、コンピュータを、コンフィグレーションファイル解析装置1における各部として機能させるためのプログラムとしても具現化できる。そうすれば、このようなプログラムを実装したコンピュータを、コンフィグレーションファイル解析装置1における各部として機能させることができる。
その他、具体的な構成や処理について、本発明の主旨を逸脱しない範囲で適宜変更が可能である。
The present invention can also be embodied as a program for causing a computer to function as each unit in the configuration file analysis apparatus 1. Then, a computer in which such a program is installed can be caused to function as each unit in the configuration file analysis apparatus 1.
In addition, specific configurations and processes can be appropriately changed without departing from the gist of the present invention.

1,1a コンフィグレーションファイル解析装置
2 記憶部
3 入力部
4 表示部
5,5a 処理部
51 構文解析部
52 共通書式変換部
53 機種特定部
DESCRIPTION OF SYMBOLS 1,1a Configuration file analysis apparatus 2 Memory | storage part 3 Input part 4 Display part 5,5a Processing part 51 Syntax analysis part 52 Common format conversion part 53 Model specification part

Claims (6)

ネットワーク装置の設定を文字列により記載したコンフィグレーションファイルを解析し、前記ネットワーク装置の機種に依存しない汎用的な書式に変換するコンフィグレーションファイル解析装置であって、
前記コンフィグレーションファイルについて所定の解析対象を解析するために定義した1つ以上の構文解析定義と、前記コンフィグレーションファイルについて前記所定の解析対象以外の部分を解析対象から除外することを定義した1つ以上の除外定義と、を有する構文解析定義群であって、前記ネットワーク装置の機種ごとに作成された構文解析定義群、および、
前記ネットワーク装置の機種ごとの前記コンフィグレーションファイルの書式と、前記ネットワーク装置の全ての機種に共通の書式と、を定義した複数の書式変換定義からなる書式変換定義群、
を記憶する記憶部と、
前記コンフィグレーションファイルを入力すると、前記記憶部に記憶された当該コンフィグレーションファイルに対応する前記構文解析定義群を適用して、前記除外定義を用いて前記コンフィグレーションファイルにおける前記所定の解析対象以外の部分をスキップしながら、前記コンフィグレーションファイルにおける前記所定の解析対象の部分の文字列を単語に区切り、その区切った単語をツリー状の構造のデータに変換する構文解析部と、
前記構文解析部が変換したデータを入力すると、前記記憶部に記憶された前記書式変換定義群のうち当該コンフィグレーションファイルに対応する前記書式変換定義群を適用して、前記ネットワーク装置の機種に依存しない汎用的な書式に変換する共通書式変換部と、
を備えることを特徴とするコンフィグレーションファイル解析装置。
A configuration file analysis device that analyzes a configuration file that describes network device settings in character strings and converts the configuration file into a general-purpose format independent of the model of the network device,
One or more syntax analysis definitions defined for analyzing a predetermined analysis target with respect to the configuration file, and one for defining a part other than the predetermined analysis target with respect to the configuration file to be excluded from the analysis target A parsing definition group having the above exclusion definitions, and a parsing definition group created for each model of the network device, and
A format conversion definition group consisting of a plurality of format conversion definitions defining the format of the configuration file for each model of the network device and a format common to all models of the network device;
A storage unit for storing
When the configuration file is input, the syntactic analysis definition group corresponding to the configuration file stored in the storage unit is applied, and the exception definition is used to apply other than the predetermined analysis target in the configuration file. Parsing the character string of the predetermined analysis target part in the configuration file into words while skipping the part, and converting the divided word into tree-structured data;
When the data converted by the parsing unit is input, the format conversion definition group corresponding to the configuration file is applied among the format conversion definition groups stored in the storage unit, and depends on the model of the network device. A common format converter that converts to a generic format,
A configuration file analyzing apparatus comprising:
前記除外定義は、
解析対象以外の部分として解析対象から除外する文字列の範囲の開始条件を、解析対象とする単語以外の任意の単語の出現とし、
終了条件を、終了単語として指定した単語の出現として、定義されている
ことを特徴とする請求項1に記載のコンフィグレーションファイル解析装置。
The exclusion definition is
The start condition of the range of the character string excluded from the analysis target as a part other than the analysis target is the appearance of any word other than the word to be analyzed,
The configuration file analyzing apparatus according to claim 1, wherein the end condition is defined as the appearance of a word specified as an end word.
前記除外定義は、
解析対象以外の部分として解析対象から除外する文字列の範囲の開始条件を、解析対象とする単語以外の任意の単語に続けて範囲開始単語として指定した単語の出現とし、
終了条件を、範囲終了単語として指定した単語の出現とし、
更に、前記範囲開始単語の出現に続いて、前記範囲終了単語の出現の前に、再び前記範囲開始単語が出現した場合、前記範囲開始単語の出現回数と前記範囲終了単語の出現回数が同数になった場合に、終了と判定することとして、定義されている
ことを特徴とする請求項1に記載のコンフィグレーションファイル解析装置。
The exclusion definition is
The start condition of the range of the character string excluded from the analysis target as a part other than the analysis target is an occurrence of the word specified as the range start word following the arbitrary word other than the analysis target word,
The end condition is the occurrence of the word specified as the range end word,
Further, when the range start word appears again before the range end word appears following the appearance of the range start word, the number of occurrences of the range start word and the number of occurrences of the range end word are the same. The configuration file analyzing apparatus according to claim 1, wherein the configuration file analyzing apparatus is defined as determining that the process is to be ended when it becomes.
前記除外定義は、
解析対象以外の部分として解析対象から除外する文字列の範囲の開始条件を、行頭空白文字数X(X≧0)に続けて解析対象とする単語以外の任意の単語の出現とし、
終了条件を、行頭空白文字数YもしくはY以下(Y≧0)の出現として、定義されている
ことを特徴とする請求項1に記載のコンフィグレーションファイル解析装置。
The exclusion definition is
The start condition of the range of the character string excluded from the analysis target as a part other than the analysis target is an appearance of an arbitrary word other than the word to be analyzed following the number X of leading blank characters (X ≧ 0),
The configuration file analysis device according to claim 1, wherein the end condition is defined as the number of leading blank characters Y or the occurrence of Y or less (Y ≧ 0).
前記記憶部は、前記ネットワーク装置の機種ごとの、前記コンフィグレーションファイルで使用される固有の文字列を定義した1つ以上の機種特定定義からなる機種特定定義群を、さらに記憶しており、
前記コンフィグレーションファイル解析装置は、
前記コンフィグレーションファイルを入力したとき、前記記憶部の機種特定定義群を参照して、当該コンフィグレーションファイルに、前記固有の文字列が出現した場合に、対応する前記ネットワーク装置の機種を特定する機種特定部を、さらに備え、
前記構文解析部と前記共通書式変換部は、前記機種特定部が特定した前記ネットワーク装置の機種の情報を用いて各処理を行う
ことを特徴とする請求項1に記載のコンフィグレーションファイル解析装置。
The storage unit further stores a model-specific definition group including one or more model-specific definitions that define a unique character string used in the configuration file for each model of the network device,
The configuration file analyzer is
A model that, when the configuration file is input, refers to the model specific definition group in the storage unit and identifies the model of the corresponding network device when the unique character string appears in the configuration file. The specific part is further provided,
The configuration file analysis apparatus according to claim 1, wherein the syntax analysis unit and the common format conversion unit perform each process using information on a model of the network device specified by the model specification unit.
コンピュータを、請求項1から請求項5のいずれか1項に記載のコンフィグレーションファイル解析装置における各部として機能させるためのプログラム。   The program for functioning a computer as each part in the configuration file analyzer of any one of Claims 1-5.
JP2012084735A 2012-04-03 2012-04-03 Configuration file analysis device and program Pending JP2013214237A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2012084735A JP2013214237A (en) 2012-04-03 2012-04-03 Configuration file analysis device and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2012084735A JP2013214237A (en) 2012-04-03 2012-04-03 Configuration file analysis device and program

Publications (1)

Publication Number Publication Date
JP2013214237A true JP2013214237A (en) 2013-10-17

Family

ID=49587511

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2012084735A Pending JP2013214237A (en) 2012-04-03 2012-04-03 Configuration file analysis device and program

Country Status (1)

Country Link
JP (1) JP2013214237A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023249628A1 (en) * 2022-06-23 2023-12-28 Rakuten Mobile, Inc. Dynamic creation of schema framework for inventory management

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000330836A (en) * 1999-05-21 2000-11-30 Nec Corp System for altering constructed database
JP2002259654A (en) * 2001-03-05 2002-09-13 Mitsubishi Electric Corp Device and method for converting data and computer readable recording medium recording program for computer to perform data converting method
JP2004318420A (en) * 2003-04-15 2004-11-11 Toshiba Corp Data conversion processor, conversion processing method, and program therefor
JP2007226724A (en) * 2006-02-27 2007-09-06 Mitsubishi Electric Corp Storage area management scheme, storage area management device, storage area management system and storage area management method
JP2009059311A (en) * 2007-09-03 2009-03-19 Canon Inc Document conversion device and method
JP2009294801A (en) * 2008-06-03 2009-12-17 Symmetric Co Ltd Web page distribution system
JP2010072861A (en) * 2008-09-17 2010-04-02 Symantec Corp Analysis technique of electronic file

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000330836A (en) * 1999-05-21 2000-11-30 Nec Corp System for altering constructed database
JP2002259654A (en) * 2001-03-05 2002-09-13 Mitsubishi Electric Corp Device and method for converting data and computer readable recording medium recording program for computer to perform data converting method
JP2004318420A (en) * 2003-04-15 2004-11-11 Toshiba Corp Data conversion processor, conversion processing method, and program therefor
JP2007226724A (en) * 2006-02-27 2007-09-06 Mitsubishi Electric Corp Storage area management scheme, storage area management device, storage area management system and storage area management method
JP2009059311A (en) * 2007-09-03 2009-03-19 Canon Inc Document conversion device and method
JP2009294801A (en) * 2008-06-03 2009-12-17 Symmetric Co Ltd Web page distribution system
JP2010072861A (en) * 2008-09-17 2010-04-02 Symantec Corp Analysis technique of electronic file

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
CSND199700206008; 加内 慎也: 'Perlで作るインタラクティブ・ホームページ 最終回' UNIX USER 第6巻 第2号, 1997, p.82, ソフトバンク株式会社 *
CSND200100586012; 多治見 寿和: 'プログラミング・テクニック 25' UNIX MAGAZINE 第14巻 第11号, 1999, p.125, 株式会社アスキー *
JPN6015005788; 多治見 寿和: 'プログラミング・テクニック 25' UNIX MAGAZINE 第14巻 第11号, 1999, p.125, 株式会社アスキー *
JPN6015005789; 加内 慎也: 'Perlで作るインタラクティブ・ホームページ 最終回' UNIX USER 第6巻 第2号, 1997, p.82, ソフトバンク株式会社 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023249628A1 (en) * 2022-06-23 2023-12-28 Rakuten Mobile, Inc. Dynamic creation of schema framework for inventory management

Similar Documents

Publication Publication Date Title
CN106294493B (en) Method and device for realizing document format conversion
JP2010134599A (en) Stream data processing control method, stream data processing apparatus and stream data processing control program
US9405518B2 (en) Leveraging legacy applications for use with modern applications
CN109116828B (en) Method and device for configuring model codes in controller
CN105446983A (en) Method and device used for generating data format descriptive language model
WO2021068692A1 (en) Method, apparatus and device for workflow migration, and computer-readable storage medium
WO2020008991A1 (en) Verification automation device, verification automation method, and computer-readable recording medium
US7283986B2 (en) End-to-end business integration testing tool
JP5398213B2 (en) Generating device, program, and generating method
WO2020075532A1 (en) System transition support device, system transition support method, and program
CN106909435B (en) Method and device for analyzing command line of network security equipment
JP2013214237A (en) Configuration file analysis device and program
CN111708542A (en) Test case generation method, system, device and storage medium
JP5041990B2 (en) Software component extraction support device
JP2008165342A (en) Source code creating method, device and program
JP5010958B2 (en) Data management method, program and apparatus
JP2007053485A (en) System for controlling network equipment
US20210311843A1 (en) System verification program generation device, system verification program generation method, and recording medium storing system verification program generation program
KR101674543B1 (en) System and Method for Improving content Layer in protocol
CN112948734A (en) Project style integration and adaptation method, device, equipment and storage medium
JP4809871B2 (en) Configuration setting management model creation device, configuration setting management model creation method and program thereof
CN107612919B (en) Protocol configuration method and device
CN102420754B (en) A kind of method and system of configuration of routers conversion
US20130339934A1 (en) Updating virtualized services
JP2016051367A (en) Data analysis device, data analysis method, and program

Legal Events

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

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20140502

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20140528

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20140724

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20150212

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20150217

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20150402

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20150616