JP5589722B2 - Transition inspection program creation device, transition inspection program creation method, and transition inspection program creation program - Google Patents

Transition inspection program creation device, transition inspection program creation method, and transition inspection program creation program Download PDF

Info

Publication number
JP5589722B2
JP5589722B2 JP2010216138A JP2010216138A JP5589722B2 JP 5589722 B2 JP5589722 B2 JP 5589722B2 JP 2010216138 A JP2010216138 A JP 2010216138A JP 2010216138 A JP2010216138 A JP 2010216138A JP 5589722 B2 JP5589722 B2 JP 5589722B2
Authority
JP
Japan
Prior art keywords
migration
file
inspection program
trace
information
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
JP2010216138A
Other languages
Japanese (ja)
Other versions
JP2012073682A (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.)
NEC Corp
Original Assignee
NEC 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 NEC Corp filed Critical NEC Corp
Priority to JP2010216138A priority Critical patent/JP5589722B2/en
Publication of JP2012073682A publication Critical patent/JP2012073682A/en
Application granted granted Critical
Publication of JP5589722B2 publication Critical patent/JP5589722B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は移行検査プログラム作成装置、移行検査プログラム作成方法および移行検査プログラム作成プログラムに関し、特にプログラムを動作させるコンピュータ装置を新しいものに置き換える作業を効率的に行うことを可能とする移行検査プログラム作成装置等に関する。   BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a migration inspection program creation device, a migration inspection program creation method, and a migration inspection program creation program, and more particularly to a migration inspection program creation device that can efficiently perform a work of replacing a computer device that operates a program with a new one. Etc.

企業、役所、学校などの組織では、多数のコンピュータ装置およびそれらが相互に接続されて構築されるコンピュータネットワークが、各々の業務の中核をなすものとして機能している。それらのコンピュータ装置では、各々の業務を遂行するために不可欠な情報を扱う多数のコンピュータプログラムが動作している。ハードウェアとしての耐用年数の経過、記憶装置の容量不足、および通信容量の増大などに伴うネットワークの構成変更などのような理由で、各々のプログラムを動作させるコンピュータ装置を新しいものに置き換える必要が生じる場合も当然ある。   In organizations such as corporations, government offices, and schools, a large number of computer devices and a computer network constructed by connecting them to each other function as the core of each business. In these computer apparatuses, a large number of computer programs that handle information indispensable for performing each business are operating. It is necessary to replace the computer device that runs each program with a new one for reasons such as the lapse of the useful life as hardware, the storage device capacity shortage, and the network configuration change accompanying an increase in communication capacity. Of course there are cases.

その際、単に当該プログラムの実行ファイルを古い装置から新しい装置に移し替えるだけで正常に動作することは殆どない。多くの場合、新しい装置でそのプログラムを正しく動作させるためには、ライブラリファイルやログファイルなどの整備、ディレクトリの構成、およびアクセス権の設定などをやり直す必要がある。これらの設定は、同一のOS(オペレーティングシステム)で動作するコンピュータ装置であっても、各々の装置ごと、あるいはバージョンごとに異なっていることが多い。   At that time, there is almost no normal operation by simply transferring the execution file of the program from the old device to the new device. In many cases, in order for the program to operate correctly on a new device, it is necessary to redo the preparation of library files and log files, the directory configuration, and the setting of access rights. These settings are often different for each device or version even for computer devices operating on the same OS (operating system).

これに関連する技術文献として、以下の各々がある。その中でも特許文献1には、コンピュータプログラムが実行中にOSの機能を呼び出すシステムコールについて、複数のシステムコールをグループ化して扱うことによってそれらを容易にトレースするという技術が記載されている。   As technical literature related to this, there are the following. Among them, Patent Document 1 describes a technique of easily tracing a system call that calls an OS function while a computer program is being executed by grouping a plurality of system calls.

特許文献2には、コンピュータプログラムの動作時に記録されたトレース情報をカテゴライズおよび特定の情報を隠蔽して必要な情報のみを表示するという技術が記載されている。特許文献3には、被テストプログラムからスクリプトおよびテストデータを生成してテストを行うというコンピュータプログラムの自動テストシステムが記載されている。そして特許文献4には、コンピュータのハードウェアが変更された時にもテストプログラムの新規作成が不要であるという模擬アプリケーション試験装置等が記載されている。   Patent Document 2 describes a technique of categorizing trace information recorded during operation of a computer program and hiding specific information to display only necessary information. Patent Document 3 describes an automatic test system for a computer program that generates a script and test data from a test program and performs a test. Patent Document 4 describes a simulated application test apparatus that requires no new test program creation even when the computer hardware is changed.

特開2001−101029号公報JP 2001-101029 A 特開2002−108649号公報JP 2002-108649 A 特開2002−366387号公報JP 2002-366387 A 特開2007−156822号公報JP 2007-156822 A

各々のプログラムを動作させるコンピュータ装置を新しいものに置き換える場合、特にアプリケーションサーバなどのように多種多様なプログラムを実行させている装置である場合には、各々のプログラムについて一々動作環境の確認および整備を行うだけでも膨大な作業量になる。その整備作業の殆どが、該プログラムが動作中に実行させる他のプログラムファイルのパス、および動作中にアクセスする他ファイルのパスおよびアクセス権についての整備である。   When replacing the computer device that runs each program with a new one, especially when the device is executing a wide variety of programs such as an application server, check and maintain the operating environment for each program. Just doing it can be a huge amount of work. Most of the maintenance work is maintenance of paths of other program files that the program executes during operation, and paths and access rights of other files that are accessed during operation.

そのプログラムの実行ファイルは、プログラム言語の文章が記述されているスクリプトファイルである場合もあれば、人間が読み書きすることを前提とせずに2進数のみで記述されたバイナリファイルである場合もある。   The execution file of the program may be a script file in which sentences in the program language are described, or may be a binary file described only in binary numbers without assuming that humans read and write.

実行ファイルがスクリプトである場合には、その構文について1行ずつ静的解析を行うことによって動作環境の確認および整備を自動化できる可能性はあるが、動作環境の細かい点について確認できないことがある。実行ファイルがバイナリである場合には、そのような静的解析自体が極めて困難であるのに加えて、当該プログラムが実行時に必要とする動作環境や、処理途中で必要とする中間ファイルなどについて、マニュアルや仕様書などにも十分な記載がない場合が多いという問題点がある。   If the executable file is a script, it may be possible to automate the confirmation and maintenance of the operating environment by performing a static analysis of the syntax line by line, but there may be cases where details of the operating environment cannot be confirmed. If the executable file is binary, such static analysis itself is extremely difficult, and in addition to the operating environment that the program requires during execution, intermediate files that are required during processing, etc. There is a problem that there are many cases where there is not enough description in manuals and specifications.

特に実行ファイルがバイナリである場合、移行先の装置で当該プログラムを実行させ、そのプログラムの実行中に発生したエラーを、エラーログを参照しながら1つずつ解消していくことによって、そのプログラムを新しい装置へ対応させる以外に有効な方法がない。これには多くの工数と時間がかかるため、特に多数のプログラムを実行させるアプリケーションサーバなどのような装置を新しいものに置き換える作業は困難なものとなる。   In particular, when the executable file is binary, the program is executed on the migration destination device, and errors that occur during the execution of the program are resolved one by one while referring to the error log. There is no effective way other than adapting to a new device. Since this takes a lot of man-hours and time, it is particularly difficult to replace a device such as an application server that executes a large number of programs with a new one.

以上の問題を解決しうる構成は、前述の特許文献1〜4には記載されていない。これらの文献はいずれも、前述のような動作環境の確認および整備を効率的に行うことを目的にしたものではなく、またそれらを効率化しうる構成も記載されていない。   The configuration that can solve the above problem is not described in the above-mentioned Patent Documents 1 to 4. None of these documents is intended to efficiently check and maintain the operating environment as described above, and does not describe a configuration that can make them efficient.

本発明の目的は、プログラムを動作させるコンピュータ装置を新しいものに置き換える作業を効率的に行うことを可能とする移行検査プログラム作成装置、移行検査プログラム作成方法および移行検査プログラム作成プログラムを提供することにある。   An object of the present invention is to provide a migration inspection program creation device, a migration inspection program creation method, and a migration inspection program creation program that can efficiently perform a task of replacing a computer device that operates a program with a new one. is there.

上記目的を達成するため、本発明に係る移行検査プログラム作成装置は、移行元コンピュータで動作している対象プログラムが動作中に該移行元コンピュータのOSに対して発した情報をトレース情報として記録したトレースファイルに基づいて、対象プログラムが移行元コンピュータ以外のコンピュータ装置で動作可能か否かを判定するための移行検査プログラムを作成する移行検査プログラム作成装置であって、トレースファイルの中からファイルの実行およびアクセスについてのトレース情報を抽出するトレースファイル整形機能と、抽出されたトレース情報の内容と同様のファイルの実行およびアクセスが他のコンピュータ装置においても可能であるか否かを判定するための移行検査プログラムを作成する移行検査プログラム生成機能とを有することを特徴とする。   In order to achieve the above object, the migration inspection program creation device according to the present invention records, as trace information, information issued to the OS of the migration source computer while the target program running on the migration source computer is operating. A migration inspection program creation device for creating a migration inspection program for determining whether a target program is operable on a computer device other than a migration source computer based on a trace file, and executing the file from the trace file And a trace file shaping function that extracts trace information about access, and a migration check to determine whether the same file execution and access as the content of the extracted trace information is possible in other computer devices Migration inspection program generator for creating programs Characterized in that it has and.

上記目的を達成するため、本発明に係る移行検査プログラム作成方法は、移行元コンピュータで動作している対象プログラムが動作中に該移行元コンピュータのOSに対して発した情報をトレース情報として記録したトレースファイルに基づいて、対象プログラムが移行元コンピュータ以外のコンピュータ装置で動作可能か否かを判定するための移行検査プログラムを作成する移行検査プログラム作成装置が実行する移行検査プログラム作成方法であって、トレースファイルの中からファイルの実行およびアクセスについてのトレース情報を移行検査プログラム作成装置のトレースファイル整形機能が抽出し、抽出されたトレース情報の内容と同様のファイルの実行およびアクセスが他のコンピュータ装置においても可能であるか否かを判定するための移行検査プログラムを移行検査プログラム作成装置の移行検査プログラム生成機能が作成する
ことを特徴とする。
In order to achieve the above object, the migration inspection program creation method according to the present invention records, as trace information, information issued to the OS of the migration source computer while the target program running on the migration source computer is operating. A migration inspection program creation method executed by a migration inspection program creation device for creating a migration inspection program for determining whether a target program is operable on a computer device other than a migration source computer based on a trace file, Trace information on the execution and access of the file is extracted from the trace file by the trace file shaping function of the migration inspection program creation device, and the execution and access of the same file as the content of the extracted trace information is performed on other computer devices Determine whether or not Migration test program generation function of the migration test program creation apparatus because migration test program, characterized in that creates.

上記目的を達成するため、本発明に係る移行検査プログラム作成プログラムは、移行元コンピュータで動作している対象プログラムが動作中に該移行元コンピュータのOSに対して発した情報をトレース情報として記録したトレースファイルに基づいて、対象プログラムが移行元コンピュータ以外のコンピュータ装置で動作可能か否かを判定するための移行検査プログラムを作成する移行検査プログラム作成装置にあって、移行検査プログラム作成装置が備えるコンピュータに、トレースファイルの中からファイルの実行およびアクセスについてのトレース情報を抽出する手順、および抽出されたトレース情報の内容と同様のファイルの実行およびアクセスが他のコンピュータ装置においても可能であるか否かを判定するための移行検査プログラムを作成する手順を実行させることを特徴とする。   In order to achieve the above object, the migration inspection program creation program according to the present invention records, as trace information, information issued to the OS of the migration source computer while the target program running on the migration source computer is operating. A migration inspection program creation device for creating a migration inspection program for determining whether a target program can be operated on a computer device other than a migration source computer based on a trace file, the computer provided in the migration inspection program creation device In addition, the procedure for extracting the trace information about the execution and access of the file from the trace file, and whether or not the same execution and access of the file as the contents of the extracted trace information are possible in other computer devices Transition inspection pro to determine Characterized in that to perform the steps to create a ram.

本発明は、上述したように対象プログラムの実行状況を記録したトレースファイルから対象プログラムのファイルの実行およびアクセスに関するトレース情報を抽出して移行検査プログラムを作成する構成としたので、この移行検査プログラムを移行先のコンピュータ装置で実行するだけで、この装置が対象プログラムの実行に必要なライブラリファイルやログファイル、ディレクトリの構成、およびアクセス権の設定などが整備されているか否かを容易に確認することができる。   Since the present invention is configured to extract the trace information related to the execution and access of the file of the target program from the trace file in which the execution status of the target program is recorded as described above, the migration inspection program is created. By simply executing it on the migration destination computer device, it is easy to check whether this device has the necessary library and log files, directory structure, access right settings, etc. Can do.

これによって、プログラムを動作させるコンピュータ装置を新しいものに置き換える作業を効率的に行うことが可能であるという優れた特徴を持つ移行検査プログラム作成装置、移行検査プログラム作成方法および移行検査プログラム作成プログラムを提供することができる。   This provides a migration inspection program creation device, a migration inspection program creation method, and a migration inspection program creation program having an excellent feature that it is possible to efficiently replace a computer device that operates a program with a new one. can do.

本発明の第1の実施形態に係る移行検査プログラム作成装置の構成について示す説明図である。It is explanatory drawing shown about the structure of the transfer inspection program creation apparatus which concerns on the 1st Embodiment of this invention. 図1に示したトレースファイル整形機能の動作を示すフローチャートである。It is a flowchart which shows operation | movement of the trace file shaping function shown in FIG. 図2のステップS201〜202で、トレースファイル整形機能がトレース情報記憶部から抽出するトレース情報の例を示す説明図である。It is explanatory drawing which shows the example of the trace information which a trace file shaping function extracts from a trace information storage part in step S201-202 of FIG. 図2に示した処理によってトレースファイル整形機能が動作環境情報記憶部に記憶した環境情報データの一例について示す説明図である。It is explanatory drawing shown about an example of the environment information data which the trace file shaping function memorize | stored in the operating environment information storage part by the process shown in FIG. 図1に示した移行検査プログラム生成機能の動作を示すフローチャートである。It is a flowchart which shows operation | movement of the transfer test | inspection program production | generation function shown in FIG. 図5の続きのフローチャートである。FIG. 6 is a flowchart continued from FIG. 5. 図1に示した検査関数情報記憶部に記憶されている内容の一例について示す説明図である。It is explanatory drawing shown about an example of the content memorize | stored in the test | inspection function information storage part shown in FIG. 図5〜図6の動作を経て作成された移行検査プログラム、およびこれを移行先アプリケーションサーバで実行して得られる実行結果の一例を示す説明図である。It is explanatory drawing which shows an example of the execution result obtained by performing the transfer test | inspection program produced through the operation | movement of FIGS. 5-6, and this with a transfer destination application server.

(第1の実施形態)
以下、本発明の第1の実施形態の構成について添付図1〜図3に基づいて説明する。
最初に、本実施形態の基本的な内容について説明し、その後でより具体的な内容について説明する。
本実施形態に係る移行検査プログラム作成装置10は、移行元コンピュータ(移行元アプリケーションサーバ20)で動作する対象プログラム25が動作中に該移行元コンピュータのOSに対して発した情報をトレース情報として記録したトレースファイル24から、対象プログラムが移行元コンピュータ以外のコンピュータ装置(移行先アプリケーションサーバ30)で動作可能か否かを判定するための移行検査プログラム120を作成する移行検査プログラム作成装置である。この移行検査プログラム作成装置10は、トレースファイルの中からファイルの実行およびアクセスについてのトレース情報を抽出するトレースファイル整形機能102aと、抽出されたトレース情報の内容と同様のファイルの実行およびアクセスが他のコンピュータ装置においても可能であるか否かを判定するための移行検査プログラム120を作成する移行検査プログラム生成機能102bとを有する。
(First embodiment)
The configuration of the first embodiment of the present invention will be described below with reference to FIGS.
First, the basic content of the present embodiment will be described, and then more specific content will be described.
The migration inspection program creation device 10 according to the present embodiment records, as trace information, information issued to the OS of the migration source computer while the target program 25 operating on the migration source computer (migration source application server 20) is operating. The migration inspection program creation device creates a migration inspection program 120 for determining whether or not the target program is operable on a computer device (migration destination application server 30) other than the migration source computer from the trace file 24. The migration inspection program creation device 10 includes a trace file shaping function 102a for extracting trace information about execution and access of a file from a trace file, and execution and access of a file similar to the content of the extracted trace information. And a migration inspection program generation function 102b for creating a migration inspection program 120 for determining whether or not it is possible even in the computer apparatus.

ここで、トレースファイル整形機能102aは、トレース情報を実行環境に依存しない環境情報に変換して予め備えられた動作環境情報記憶部112に保存する。   Here, the trace file shaping function 102a converts the trace information into environment information that does not depend on the execution environment, and stores it in the operating environment information storage unit 112 provided in advance.

また、ファイル実行に関するトレース情報が、当該実行ファイルのファイルパスについての情報を含み、移行検査プログラム生成機能102bは、移行検査プログラムの中に実行ファイルのパスが正当に設定されているか否かを判定する処理を含める。さらに、ファイルアクセスに関するトレース情報が、当該アクセス対象ファイルのパスおよびアクセス権についての情報を含み、移行検査プログラム生成機能102bは、移行検査プログラムの中にアクセス対象ファイルのパスおよびアクセス権が正当に設定されているか否かを判定する処理を含める。   Further, the trace information related to the file execution includes information on the file path of the execution file, and the migration inspection program generation function 102b determines whether or not the execution file path is properly set in the migration inspection program. Include processing to be performed. Further, the trace information regarding the file access includes information on the path and access right of the access target file, and the migration inspection program generation function 102b correctly sets the path and access right of the access target file in the migration inspection program. A process for determining whether or not it has been performed is included.

以上の構成を備えることにより、本実施形態の移行検査プログラム作成装置10は対象プログラム25を動作させるコンピュータ装置を新しいものに置き換える作業を効率的に行うことが可能となる。
以下、これをより詳細に説明する。
With the above configuration, the migration inspection program creation device 10 of the present embodiment can efficiently perform a work of replacing the computer device that operates the target program 25 with a new one.
Hereinafter, this will be described in more detail.

図1は、本発明の第1の実施形態に係る移行検査プログラム作成装置10の構成について示す説明図である。移行検査プログラム作成装置10は、一般的なコンピュータ装置としての構成を有する。即ち、コンピュータプログラムを実行する主体となる主演算制御手段(CPU: Micro Processing Unit)11と、データを記憶する記憶手段12と、ネットワーク40に接続して他のコンピュータとのデータ通信を行う通信手段13と、ユーザからの操作を受け付けると共に主演算制御手段11による処理結果をユーザに表示する入出力手段14とを備える。   FIG. 1 is an explanatory diagram showing the configuration of the migration inspection program creation device 10 according to the first embodiment of the present invention. The migration inspection program creation device 10 has a configuration as a general computer device. That is, a main processing control means (CPU: Micro Processing Unit) 11 that is a main body for executing a computer program, a storage means 12 that stores data, and a communication means that is connected to a network 40 and performs data communication with other computers. 13 and an input / output unit 14 that receives an operation from the user and displays a processing result of the main arithmetic control unit 11 to the user.

移行検査プログラム作成装置10は、ネットワーク40を介して、単数もしくは複数のコンピュータ装置である移行元アプリケーションサーバ20および単数もしくは複数のコンピュータ装置である移行先アプリケーションサーバ30とデータ通信を行っている。   The migration inspection program creation device 10 performs data communication with the migration source application server 20 that is one or more computer devices and the migration destination application server 30 that is one or more computer devices via a network 40.

移行元アプリケーションサーバ20が備える主演算制御手段21aでは、移行対象となるコンピュータプログラム(以後対象プログラム25という)を実行する対象プログラム実行部22と、このプログラムの実行状況をトレースしてトレースファイル24を作成するトレース部23とがコンピュータプログラムとして各々の機能を実行されるように構成されている。   In the main calculation control means 21 a provided in the migration source application server 20, a target program execution unit 22 that executes a computer program to be migrated (hereinafter referred to as a target program 25), and a trace file 24 by tracing the execution status of this program. The tracing unit 23 to be created is configured to execute each function as a computer program.

移行元アプリケーションサーバ20は、これと同時に、トレースファイル24および対象プログラム25を記憶している記憶手段21bと、ネットワーク40を介して他のコンピュータ装置とデータ通信を行う通信手段21cも備えている。そして、トレース部23はトレースファイル24を、ネットワーク40を介して移行検査プログラム作成装置10に送信する。移行元アプリケーションサーバ20では、対象プログラム25が正常に動作しうる環境はもちろん整えられている。   At the same time, the migration source application server 20 also includes a storage unit 21 b that stores the trace file 24 and the target program 25, and a communication unit 21 c that performs data communication with other computer apparatuses via the network 40. Then, the trace unit 23 transmits the trace file 24 to the migration inspection program creation device 10 via the network 40. In the migration source application server 20, an environment in which the target program 25 can operate normally is prepared.

移行先アプリケーションサーバ30は、移行検査プログラム作成装置10が生成した移行検査プログラム120を実行可能なコンピュータ装置であり、最終的に対象プログラム25を実行しようとしているコンピュータ装置である。なお、トレースファイル24、対象プログラム25、および移行検査プログラム120は、ネットワーク40を経由して交換しなくても、たとえば光ディスクやフラッシュメモリなどのような記憶媒体を経由して交換するものとしてもよい。   The migration destination application server 30 is a computer device that can execute the migration inspection program 120 generated by the migration inspection program creation device 10, and is a computer device that intends to finally execute the target program 25. The trace file 24, the target program 25, and the migration inspection program 120 may be exchanged via a storage medium such as an optical disk or a flash memory, for example, without being exchanged via the network 40. .

移行検査プログラム作成装置10の主演算制御手段11では、移行元アプリケーションサーバ20からトレースファイル24を受信するトレースファイル収集部101と、受信および収集されたトレースファイル24から移行検査プログラムを生成する移行検査プログラム生成部102とがコンピュータプログラムとして実行されるように構成されている。   The main operation control means 11 of the migration inspection program creation device 10 includes a trace file collection unit 101 that receives the trace file 24 from the migration source application server 20, and a migration inspection that generates a migration inspection program from the received and collected trace file 24. The program generation unit 102 is configured to be executed as a computer program.

移行検査プログラム生成部102はさらに、受信および収集されたトレースファイル24から必要な情報を抽出するトレースファイル整形機能102aと、そこから移行検査プログラム120を生成する移行検査プログラム生成機能102bとに分かれる。   The migration inspection program generation unit 102 is further divided into a trace file shaping function 102a for extracting necessary information from the received and collected trace file 24 and a migration inspection program generation function 102b for generating the migration inspection program 120 therefrom.

そして、移行検査プログラム作成装置10の記憶手段12には、トレースファイル収集部101が収集したトレースファイル24を記憶するトレース情報記憶部111と、トレースファイル整形機能102aがトレースファイル24から抽出した情報を記憶する動作環境情報記憶部112と、移行検査プログラム生成機能102bが移行検査プログラム120の生成に使用する情報を予め記憶している検査関数情報記憶部113とが、記憶領域として確保されている。   The storage unit 12 of the migration inspection program creation device 10 stores the trace information storage unit 111 that stores the trace file 24 collected by the trace file collection unit 101 and the information extracted from the trace file 24 by the trace file shaping function 102a. An operating environment information storage unit 112 to be stored and an inspection function information storage unit 113 in which information used for generation of the migration inspection program 120 by the migration inspection program generation function 102b is stored in advance as storage areas.

移行元アプリケーションサーバ20で、トレース部23は、たとえばLinuxにおけるstrace、HP−UXにおけるtusc、Solarisにおけるtrussなどのように、対象プログラム実行部22で実行される対象プログラム25が実行中にOSの機能を呼び出すために発したシステムコールを取得し、そのシステムコールの名前、引数、戻り値などのような情報を記憶手段21b上のトレースファイル24に出力する。   In the migration source application server 20, the trace unit 23 is a function of the OS while the target program 25 executed by the target program execution unit 22 is being executed, such as trace in Linux, tusc in HP-UX, and truss in Solaris. The system call issued for calling is acquired, and information such as the name, argument, and return value of the system call is output to the trace file 24 on the storage means 21b.

トレース部23は、出力の終わったトレースファイル24をネットワーク40(もしくは記憶媒体など)を介して移行検査プログラム作成装置10に送信する。移行検査プログラム作成装置10では、トレースファイル収集部101がこれを受信し、アプリケーション名をキーとしてトレース情報記憶部111に記憶する。   The trace unit 23 transmits the trace file 24 that has been output to the migration inspection program creation device 10 via the network 40 (or a storage medium). In the migration inspection program creation device 10, the trace file collection unit 101 receives this and stores it in the trace information storage unit 111 using the application name as a key.

図2は、図1に示したトレースファイル整形機能102aの動作を示すフローチャートである。トレースファイル整形機能102aは、トレース情報記憶部111の中から、特定のアプリケーションに関するトレース情報を読み込み(ステップS201)、その中からファイル実行に関するトレース情報とファイルアクセスに関するトレース情報を抽出する(ステップS202)。   FIG. 2 is a flowchart showing the operation of the trace file shaping function 102a shown in FIG. The trace file shaping function 102a reads trace information related to a specific application from the trace information storage unit 111 (step S201), and extracts trace information related to file execution and trace information related to file access from the trace information storage unit 111 (step S202). .

図3は、図2のステップS201〜202で、トレースファイル整形機能102aがトレース情報記憶部111から抽出するトレース情報の例を示す説明図である。Unix(登録商標)を例に取れば、execシステムコールが「ファイル実行に関するトレース情報」に該当し、openシステムコールが「ファイルアクセスに関するトレース情報」に該当し、ステップS202で抽出される対象となる。   FIG. 3 is an explanatory diagram illustrating an example of trace information extracted from the trace information storage unit 111 by the trace file shaping function 102a in steps S201 to S202 in FIG. Taking Unix (registered trademark) as an example, the exec system call corresponds to “trace information related to file execution”, the open system call corresponds to “trace information related to file access”, and is the target to be extracted in step S202. .

図2に戻って、トレースファイル整形機能102aは、ステップS202で抽出したトレース情報の中から、実行に成功したものをさらに抽出し、そのトレースの中からトレース名(システムコール名)および必要な引数を抽出する(ステップS203)。execシステムコールの場合、トレース名は「exec」であり、必要な引数は「実行ファイルパス」である。openシステムコールの場合は、トレース名は「open」であり、必要な引数は「オープンしようとした対象ファイルのファイルパス」および「当該ファイルのアクセス権」である。   Returning to FIG. 2, the trace file shaping function 102a further extracts the trace information extracted in step S202 from the trace information that has been successfully executed, the trace name (system call name) and necessary arguments from the trace. Is extracted (step S203). In the case of the exec system call, the trace name is “exec” and the necessary argument is “executable file path”. In the case of an open system call, the trace name is “open”, and necessary arguments are “file path of the target file to be opened” and “access right of the file”.

トレースファイル整形機能102aは、ステップS203で抽出した引数を、実行サーバのトレース情報に非依存な環境情報に変換する(ステップS204)。ここでいう環境情報とは、環境名112bと付随情報112cからなり、環境名112bはアプリケーションがどのような振舞いを示すかの仮想的な名称で、付随情報112cは環境に付随する情報である。この変換により、トレース部23の種類によって異なるトレース情報の形式を統一することができる。   The trace file shaping function 102a converts the argument extracted in step S203 into environment information independent of the trace information of the execution server (step S204). The environment information here includes an environment name 112b and accompanying information 112c. The environment name 112b is a virtual name indicating how the application behaves, and the accompanying information 112c is information accompanying the environment. By this conversion, it is possible to unify the format of the trace information that differs depending on the type of the trace unit 23.

図3に示したexecシステムコールの場合、(exec,実行ファイルのファイルパス)といったデータは、「exec」が「ファイルの実行」という環境名112bであり、「実行ファイルのファイルパス」が付随情報112cである。openシステムコールの場合、(open,ファイルパス,実行モード)といったデータは、「open」が「ファイルアクセス」という環境名112bであり、「ファイルパス」および「実行モード」が付随情報112cである。   In the case of the exec system call shown in FIG. 3, the data such as (exec, file path of the execution file) has the environment name 112b in which “exec” is “execution of file” and “file path of the execution file” is accompanying information. 112c. In the case of an open system call, data such as (open, file path, execution mode) has an environment name 112b in which “open” is “file access”, and “file path” and “execution mode” are accompanying information 112c.

トレースファイル整形機能102aは、ステップS202で抽出してステップS203〜204の処理を行ったトレース情報の中から、実行環境に特に関係ない既知のトレース情報を除外する(ステップS205)。ここで除外される対象となる「実行環境に特に関係ない既知のトレース情報」とは、たとえばテンポラリディレクトリへのアクセスや、対象プログラム25に固有なものではない一般的なファイルもしくはディレクトリに対するアクセスである。   The trace file shaping function 102a excludes known trace information not particularly related to the execution environment from the trace information extracted in step S202 and subjected to the processing in steps S203 to 204 (step S205). The “known trace information not particularly related to the execution environment” to be excluded here is, for example, access to a temporary directory or access to a general file or directory that is not unique to the target program 25. .

トレースファイル整形機能102aは、ステップS205までの処理の完了したトレース情報の環境名112bおよび付随情報112cを、対象プログラム25のアプリケーション名112aをキーとして、動作環境情報記憶部112に記憶する(ステップS206)。トレースファイル整形機能102aは最後に、トレース情報記憶部111に未参照のデータが残っているか否かを判断し(ステップS207)、残っていればステップS201に戻ってその未参照データに対してステップS202〜206の処理を繰り返す。残っていなければ処理を終了する。   The trace file shaping function 102a stores the environment name 112b and the accompanying information 112c of the trace information that has been processed up to step S205 in the operating environment information storage unit 112 using the application name 112a of the target program 25 as a key (step S206). ). Finally, the trace file shaping function 102a determines whether or not unreferenced data remains in the trace information storage unit 111 (step S207), and if it remains, returns to step S201 to perform a step on the unreferenced data. The processes of S202 to 206 are repeated. If not, the process ends.

図4は、図2に示した処理によってトレースファイル整形機能102aが動作環境情報記憶部112に記憶した環境情報データの一例について示す説明図である。前述のように、動作環境情報記憶部112には、対象プログラム25のアプリケーション名112aに対応して、その対象プログラム25の環境名112bおよび付随情報112cが記憶される。   FIG. 4 is an explanatory diagram showing an example of environment information data stored in the operating environment information storage unit 112 by the trace file shaping function 102a by the process shown in FIG. As described above, the operating environment information storage unit 112 stores the environment name 112b and accompanying information 112c of the target program 25 corresponding to the application name 112a of the target program 25.

図4に示した動作環境情報記憶部112に記憶されている環境情報データの例では、アプリケーション名112a「アプリケーションA」について、環境名112b=「ファイル実行」でかつ付随情報112c=「ファイルパスX」、環境名112b=「ファイルアクセス」でかつ付随情報112c=「ファイルパスY」および「アクセス権“読み込み”」というデータが記憶されている。   In the example of the environment information data stored in the operating environment information storage unit 112 shown in FIG. 4, for the application name 112a “application A”, the environment name 112b = “file execution” and the accompanying information 112c = “file path X”. ”, Environment name 112b =“ file access ”, and accompanying information 112c =“ file path Y ”and“ access right “read” ”are stored.

同様に、動作環境情報記憶部112には、アプリケーション名112a「アプリケーションB」について、環境名112b=「ファイルアクセス」でかつ付随情報112c=「ファイルパスZ」および「アクセス権“書き込み/読み込み”」というデータも記憶されている。   Similarly, in the operating environment information storage unit 112, for the application name 112a “application B”, the environment name 112b = “file access” and the accompanying information 112c = “file path Z” and “access right“ write / read ””. Is also stored.

図5〜図6(紙面の都合で2枚に分ける)は、図1に示した移行検査プログラム生成機能102bの動作を示すフローチャートである。移行検査プログラム生成機能102bが生成する移行検査プログラム120は、移行先アプリケーションサーバ30で実行可能なプログラムである。本実施形態では、移行検査プログラム120はシェルスクリプトによって記述される。   5 to 6 (divided into two for convenience of paper) are flowcharts showing the operation of the migration inspection program generation function 102b shown in FIG. The migration inspection program 120 generated by the migration inspection program generation function 102 b is a program that can be executed by the migration destination application server 30. In the present embodiment, the migration inspection program 120 is described by a shell script.

図5〜図6で説明する各ステップの中には、移行検査プログラム生成機能102bがシェルスクリプトのコードを作成するものがあり、作成されたそれらのコードは一つのテキストファイルに追記され、これが最終的に移行検査プログラム120として出力される。具体的にはステップS301、302、306、308、および310の動作が、移行検査プログラム生成機能102bがコードを出力するものである。   Among the steps described in FIG. 5 to FIG. 6, there is one in which the migration inspection program generation function 102 b creates a shell script code, and these created codes are added to one text file, which is the final result. Therefore, it is output as the migration inspection program 120. Specifically, the operations in steps S301, 302, 306, 308, and 310 are the ones in which the migration inspection program generation function 102b outputs a code.

移行検査プログラム生成機能102bはまず、移行検査プログラム120のヘッダを作成し(ステップS301)、引き続いて戻り値保存用の変数を「成功」に初期化するコードを作成する(ステップS302)。本実施形態ではシェルスクリプトを使用するので、ステップS301で作成されるヘッダは、たとえば「#!/bin/sh」などのようになる。また、ステップS302で作成される戻り値保存用の変数は、たとえば「ret=0」のように、成功を0、失敗を1で示すブーリアン変数となる。   The migration inspection program generation function 102b first creates a header of the migration inspection program 120 (step S301), and subsequently creates a code that initializes the return value storage variable to “success” (step S302). Since a shell script is used in this embodiment, the header created in step S301 is, for example, “#! / Bin / sh”. The return value storage variable created in step S302 is a Boolean variable indicating success as 0 and failure as 1, for example, “ret = 0”.

初期値の生成が完了した移行検査プログラム生成機能102bは、引き続いて動作環境情報記憶部112から特定の対象プログラム25のアプリケーション名112aについての情報を読み込み(ステップS303)、その中から環境名112bおよび付随情報112cを読み込む(ステップS304)。   When the initial value generation is completed, the migration inspection program generation function 102b subsequently reads information about the application name 112a of the specific target program 25 from the operation environment information storage unit 112 (step S303), and the environment name 112b and The accompanying information 112c is read (step S304).

移行検査プログラム生成機能102bは、これに引き続いて、検査関数情報記憶部113から環境名112bをキーとして、これに対応する検査関数を読み出す(ステップS305)。図7は、図1に示した検査関数情報記憶部113に記憶されている内容の一例について示す説明図である。検査関数情報記憶部113には、環境名112bに対応した検査関数113aが予め記憶されている。本実施形態では、検査関数113aはシェルスクリプトの関数である。   Subsequently, the migration inspection program generation function 102b reads the inspection function corresponding to the environment name 112b from the inspection function information storage unit 113 as a key (step S305). FIG. 7 is an explanatory diagram illustrating an example of contents stored in the inspection function information storage unit 113 illustrated in FIG. 1. In the inspection function information storage unit 113, an inspection function 113a corresponding to the environment name 112b is stored in advance. In the present embodiment, the check function 113a is a shell script function.

検査関数113aは、アプリケーション名112aと付随情報112cとを引数として、その動作環境を検査し、アプリケーション名112aで示される対象プログラム25が動作しうるか否かを判定する関数である。動作しうる場合には「成功」を、そうでない場合には「失敗」とその「失敗理由」を出力する。   The checking function 113a is a function that checks the operating environment using the application name 112a and the accompanying information 112c as arguments and determines whether or not the target program 25 indicated by the application name 112a can operate. If it can operate, “success” is output, otherwise “failure” and its “reason for failure” are output.

本実施形態では、検査関数113aはシェルスクリプトの関数であるので、execシステムコールに対応した「ファイルの実行」の検査関数であるFile_exec_check{}関数と、openシステムコールに対応した「ファイルアクセス」の検査関数であるFile_access_check{}関数が記憶されている。   In this embodiment, since the check function 113a is a shell script function, the File_exec_check {} function, which is a “file execution” check function corresponding to the exec system call, and the “file access” function corresponding to the open system call. A File_access_check {} function that is a check function is stored.

図5に戻って、移行検査プログラム生成機能102bは、ステップS305で読み出した検査関数113aに、アプリケーション名112aと付随情報112cとを引数として当てはめて、移行検査プログラム120の断片となるコードを作成する(ステップS306)。このコードでは、検査関数の戻り値が失敗の場合、ステップS302で初期化した戻り値保存用の変数を「ret=1」のように失敗を意味する数値とする。   Returning to FIG. 5, the migration check program generation function 102b applies the application name 112a and the accompanying information 112c as arguments to the check function 113a read in step S305, and creates a code that is a fragment of the transfer check program 120. (Step S306). In this code, when the return value of the check function is failure, the return value storage variable initialized in step S302 is set to a numerical value indicating failure, such as “ret = 1”.

移行検査プログラム生成機能102bは、ステップS303で読み込んだアプリケーション名112aについての情報の中で、処理していない環境名112bが残っているか否かを判断し(ステップS307)、残っていればその環境名112bに対してステップS304〜306の処理を繰り返す。残っていなければステップS308の処理に進む。   The migration inspection program generation function 102b determines whether or not the unprocessed environment name 112b remains in the information about the application name 112a read in step S303 (step S307). The processes in steps S304 to S306 are repeated for the name 112b. If not, the process proceeds to step S308.

移行検査プログラム生成機能102bは、これに引き続いて戻り値保存用の変数が0であるか1であるか、即ち対象プログラム25が移行先アプリケーションサーバ30で動作しうるか否かを判断してこの判断結果を出力するコードを生成する(ステップS308)。   Subsequently, the migration inspection program generation function 102b determines whether the return value storage variable is 0 or 1, that is, whether the target program 25 can operate on the migration destination application server 30. A code for outputting the result is generated (step S308).

引き続いて動作環境情報記憶部112に他の対象プログラム25のアプリケーション名112aについての情報が未処理のまま残っているか否かについて判断し(ステップS309)、残っていればステップS303に戻ってその未参照データに対してステップS303〜308の処理を繰り返す。残っていなければ移行検査プログラム120のフッタを作成して(ステップS310)処理を終了する。本実施形態で使用するシェルスクリプトではフッタは特に必要ないが、他の言語で検査プログラムを生成したい場合にはフッタが必要となる場合もありうる。   Subsequently, it is determined whether or not the information about the application name 112a of the other target program 25 remains unprocessed in the operating environment information storage unit 112 (step S309). The processes in steps S303 to S308 are repeated for the reference data. If not, a footer for the migration inspection program 120 is created (step S310), and the process ends. In the shell script used in the present embodiment, a footer is not particularly necessary. However, if it is desired to generate an inspection program in another language, a footer may be necessary.

図8は、図5〜図6の動作を経て作成された移行検査プログラム120、およびこれを移行先アプリケーションサーバ30で実行して得られる実行結果121の一例を示す説明図である。前述のように図4に示した動作環境情報記憶部112には、アプリケーション名112a「アプリケーションA」について、環境名112b=「ファイル実行」でかつ付随情報112c=「ファイルパスX」、環境名112b=「ファイルアクセス」でかつ付随情報112c=「ファイルパスY」および「アクセス権“読み込みのみ”」という環境情報データが記憶されている。   FIG. 8 is an explanatory diagram showing an example of the migration inspection program 120 created through the operations of FIGS. 5 to 6 and the execution result 121 obtained by executing it on the migration destination application server 30. As described above, the operation environment information storage unit 112 shown in FIG. 4 stores the environment name 112b = “file execution”, the accompanying information 112c = “file path X”, and the environment name 112b for the application name 112a “application A”. = Environmental information data of “file access” and accompanying information 112c = “file path Y” and “access right“ read only ”” are stored.

また同様に、動作環境情報記憶部112には、アプリケーション名112a「アプリケーションB」について、環境名112b=「ファイルアクセス」でかつ付随情報112c=「ファイルパスZ」および「アクセス権“書き込み/読み込み”」というデータも記憶されている。   Similarly, in the operating environment information storage unit 112, for the application name 112a “application B”, the environment name 112b = “file access” and the accompanying information 112c = “file path Z” and “access right“ write / read ”. Is also stored.

そこで、移行検査プログラム生成機能102bは、移行検査プログラム120として、アプリケーション名112a「アプリケーションA」について、「ファイルパスXの実行ファイルが存在するか否か」および「ファイルパスYにアクセス権“読み込みのみ”のファイルが存在するか否か」を確認する処理、およびアプリケーション名112a「アプリケーションB」について「ファイルパスZにアクセス権“書き込み/読み込み”のファイルが存在するか否か」を確認する処理を記述して出力する。   Therefore, the migration inspection program generation function 102b, as the migration inspection program 120, for the application name 112a “application A”, “whether or not an executable file with file path X exists” and “access right to file path Y” are read only. A process for confirming whether or not “a file exists” and a process for confirming whether or not a file with the access right “write / read” exists in the file path Z for the application name 112a “application B”. Describe and output.

実行結果121は、移行先アプリケーションサーバ30で移行検査プログラム120を実行して出力される結果である。図8で示される例では、「ファイルパスXの実行ファイルが存在するか否か」の処理についてはこれに該当する実行ファイルは存在するが、「ファイルパスYにアクセス権“読み込みのみ”のファイルが存在するか否か」の処理についてはこれに該当するファイルのアクセス権は“読み込みのみ”になっていない。そこで、移行検査プログラム120は「NG」、即ち「アプリケーションAは移行先アプリケーションサーバ30で動作し得ない」旨を出力する。移行検査プログラム120は、これと同時に失敗理由、即ち「読み込みのアクセス権限がない」ことを出力する。   The execution result 121 is a result output by executing the migration inspection program 120 on the migration destination application server 30. In the example shown in FIG. 8, there is an executable file corresponding to the processing of “whether or not an executable file of file path X exists”, but “a file with an access right“ read only ”in file path Y”. As for the process of “whether or not exists”, the access right of the corresponding file is not “read only”. Therefore, the migration inspection program 120 outputs “NG”, that is, “Application A cannot operate on the migration destination application server 30”. At the same time, the migration inspection program 120 outputs a failure reason, that is, “no read access authority”.

同様に、「ファイルパスZにアクセス権“書き込み/読み込み”のファイルが存在するか否か」の処理についてはこれに該当するファイルのアクセス権は“書き込み/読み込み”に正しく設定されているので、移行検査プログラム120は「OK」、即ち「アプリケーションBは移行先アプリケーションサーバ30で動作し得る」旨を出力する。   Similarly, regarding the processing of “whether or not a file with access right“ write / read ”exists in the file path Z”, the access right of the corresponding file is correctly set to “write / read”. The migration inspection program 120 outputs “OK”, that is, “Application B can operate on the migration destination application server 30”.

以上で記載した例でわかるように、複数の対象プログラム25の動作環境を、1本の移行検査プログラム120でまとめてテストすることができる。ユーザ(コンピュータシステム管理者)は、従来は対象プログラム25を移行先アプリケーションサーバ30で実行させて発生するエラーを1つずつ解消していくしかなかったが、本実施形態によればこの実行結果121を見て、対象プログラム25の動作についてエラーとなりうる点をまとめて解消することができるので、対象プログラム25の移行先アプリケーションサーバ30への移行を効率的に行うことができる。   As can be seen from the example described above, the operating environments of the plurality of target programs 25 can be tested together by a single migration inspection program 120. Conventionally, the user (computer system administrator) had to resolve the errors that occurred when the target program 25 was executed by the migration destination application server 30 one by one. , The points that may cause errors in the operation of the target program 25 can be solved together, and the migration of the target program 25 to the migration destination application server 30 can be performed efficiently.

(第1の実施形態の全体的な動作)
次に、上記の実施形態の全体的な動作について説明する。本実施形態に係る移行検査プログラム作成方法は、移行元コンピュータ(移行元アプリケーションサーバ20)で動作する対象プログラム25が動作中に該移行元コンピュータのOSに対して発した情報をトレース情報として記録したトレースファイル24から、対象プログラムが移行元コンピュータ以外のコンピュータ装置(移行先アプリケーションサーバ30)で動作可能か否かを判定する移行検査プログラムを作成する移行検査プログラム作成装置10にあって、トレースファイルの中からファイルの実行およびアクセスについてのトレース情報をトレースファイル整形機能102aが抽出し(図2・ステップS202〜206)、抽出されたトレース情報の内容と同様のファイルの実行およびアクセスが他のコンピュータ装置においても可能であるか否かを判定するための移行検査プログラムを移行検査プログラム生成機能102bが作成する(図5・ステップS303〜306)。
(Overall operation of the first embodiment)
Next, the overall operation of the above embodiment will be described. In the migration inspection program creation method according to the present embodiment, information issued to the OS of the migration source computer while the target program 25 operating on the migration source computer (migration source application server 20) is operating is recorded as trace information. In the migration inspection program creating apparatus 10 for creating a migration inspection program for determining whether or not the target program is operable on a computer device (migration destination application server 30) other than the migration source computer from the trace file 24, the trace file Trace information about the execution and access of the file is extracted by the trace file shaping function 102a (FIG. 2, steps S202 to S206), and the execution and access of the same file as the contents of the extracted trace information is another computer apparatus. smell Migration test program generation function 102b migration test program to determine whether it is possible to create (Figure 5-step S303~306).

ここで、上記各動作ステップについては、これをコンピュータで実行可能にプログラム化し、これらを前記各ステップを直接実行するコンピュータである移行検査プログラム作成装置10に実行させるようにしてもよい。本プログラムは、非一時的な記録媒体、例えば、DVD、CD、フラッシュメモリ等に記録されてもよい。その場合、本プログラムは、記録媒体からコンピュータによって読み出され、実行される。
この動作により、本実施形態は以下のような効果を奏する。
Here, each of the above-described operation steps may be programmed so as to be executable by a computer, and these may be executed by the migration inspection program creating apparatus 10 which is a computer that directly executes the respective steps. The program may be recorded on a non-temporary recording medium, such as a DVD, a CD, or a flash memory. In this case, the program is read from the recording medium by a computer and executed.
By this operation, this embodiment has the following effects.

本実施形態によれば、対象プログラム25が移行元アプリケーションサーバ20で動作する際に使用するライブラリファイルやログファイル、ディレクトリの構成、およびアクセス権の設定などを移行先アプリケーションサーバ30上で一括して確認することができ、その結果として移行先アプリケーションサーバ30での動作環境の整備を簡単に行うことができる。   According to the present embodiment, library files and log files used when the target program 25 operates on the migration source application server 20, directory configuration, access right settings, and the like are collectively processed on the migration destination application server 30. As a result, the operating environment of the migration destination application server 30 can be easily maintained.

特に、移行元アプリケーションサーバ20から移行先アプリケーションサーバ30に移行させねばならない対象プログラム25が多数ある場合にも、移行検査プログラム120を一括して実行するだけでよいので、コンピュータ装置の移行にかかる工数と時間を大幅に削減することができる。   In particular, even when there are a large number of target programs 25 that need to be migrated from the migration source application server 20 to the migration destination application server 30, the migration inspection program 120 need only be executed in a lump, and therefore the man-hours required for migration of computer devices And time can be greatly reduced.

(実施形態の拡張)
以上で説明した第1の実施形態は、その趣旨を改変しない範囲で様々な拡張が考えられる。たとえば、移行検査プログラム作成装置10と移行元アプリケーションサーバ20とを同一のコンピュータ装置としてもよいし、また移行検査プログラム作成装置10と移行先アプリケーションサーバ30とを同一のコンピュータ装置としてもよい。
(Extended embodiment)
The first embodiment described above can be extended in various ways without changing the gist of the first embodiment. For example, the migration inspection program creation device 10 and the migration source application server 20 may be the same computer device, and the migration inspection program creation device 10 and the migration destination application server 30 may be the same computer device.

特に、移行検査プログラム作成装置10と移行元アプリケーションサーバ20とを同一のコンピュータ装置として、各々の移行元アプリケーションサーバ20でトレースファイル24から移行検査プログラム120を作成し、移行先アプリケーションサーバ30で複数の移行元アプリケーションサーバ20で作成された移行検査プログラム120を結合して一括して実行させるように構成することも可能である。   In particular, the migration inspection program creation device 10 and the migration source application server 20 are the same computer device, the migration source application server 20 creates the migration inspection program 120 from the trace file 24, and the migration destination application server 30 has a plurality of migration inspection programs 120. It is also possible to configure the migration inspection program 120 created by the migration source application server 20 to be combined and executed together.

トレースファイル24は、容量が巨大になることが多い。特に複数の対象プログラム25を持つ移行元アプリケーションサーバ20が複数ある場合、移行先アプリケーションサーバ30に送信せねばならないデータの容量も膨大なものとなる。そのため、各々の移行元アプリケーションサーバ20の側で移行検査プログラム120を作成することによって、移行先アプリケーションサーバ30に送信するデータの容量を少なく抑えることが可能となる。   The trace file 24 often has a large capacity. In particular, when there are a plurality of migration source application servers 20 having a plurality of target programs 25, the amount of data that must be transmitted to the migration destination application server 30 is enormous. Therefore, by creating the migration inspection program 120 on each migration source application server 20 side, it is possible to reduce the volume of data transmitted to the migration destination application server 30.

これまで本発明について図面に示した特定の実施形態をもって説明してきたが、本発明は図面に示した実施形態に限定されるものではなく、本発明の効果を奏する限り、これまで知られたいかなる構成であっても採用することができる。   The present invention has been described with reference to the specific embodiments shown in the drawings. However, the present invention is not limited to the embodiments shown in the drawings, and any known hitherto provided that the effects of the present invention are achieved. Even if it is a structure, it is employable.

上述した各々の実施形態について、その新規な技術内容の要点をまとめると、以下のようになる。なお、上記実施形態の一部または全部は、新規な技術として以下のようにまとめられるが、本発明は必ずしもこれに限定されるものではない。   About each embodiment mentioned above, it is as follows when the summary of the novel technical content is put together. In addition, although part or all of the said embodiment is summarized as follows as a novel technique, this invention is not necessarily limited to this.

(付記1) 移行元コンピュータで動作している対象プログラムが動作中に該移行元コンピュータのOSに対して発した情報をトレース情報として記録したトレースファイルに基づいて、前記対象プログラムが前記移行元コンピュータ以外のコンピュータ装置で動作可能か否かを判定するための移行検査プログラムを作成する移行検査プログラム作成装置であって、
前記トレースファイルの中からファイルの実行およびアクセスについての前記トレース情報を抽出するトレースファイル整形機能と、
抽出された前記トレース情報の内容と同様の前記ファイルの実行およびアクセスが他のコンピュータ装置においても可能であるか否かを判定するための前記移行検査プログラムを作成する移行検査プログラム生成機能と
を有することを特徴とする移行検査プログラム作成装置。
(Supplementary Note 1) Based on a trace file in which information issued to the OS of the migration source computer during operation of the target program running on the migration source computer is recorded as trace information, the target program is converted to the migration source computer. A migration inspection program creation device for creating a migration inspection program for determining whether or not it is operable on a computer device other than
A trace file shaping function for extracting the trace information about the execution and access of the file from the trace file;
A migration inspection program generating function for creating the migration inspection program for determining whether or not the execution and access of the file similar to the contents of the extracted trace information is possible also in other computer devices; A migration inspection program creation device characterized by that.

(付記2) 前記トレースファイル整形機能が、前記トレース情報を実行環境に依存しない環境情報に変換して予め備えられた動作環境情報記憶部に保存することを特徴とする、付記1に記載の移行検査プログラム作成装置。 (Supplementary note 2) The transition according to Supplementary note 1, wherein the trace file shaping function converts the trace information into environment information independent of an execution environment and stores it in an operating environment information storage unit provided in advance. Inspection program creation device.

(付記3) 前記ファイルの実行に関するトレース情報が、当該実行ファイルのファイルパスについての情報を含み、
前記移行検査プログラム生成機能が、前記移行検査プログラムの中に前記実行ファイルのパスが正当に設定されているか否かを判定する処理を含めることを特徴とする、付記1に記載の移行検査プログラム作成装置。
(Supplementary Note 3) The trace information related to the execution of the file includes information about the file path of the executable file,
The migration inspection program generation function according to appendix 1, wherein the migration inspection program generation function includes a process for determining whether or not the path of the executable file is properly set in the migration inspection program apparatus.

(付記4) 前記ファイルのアクセスに関するトレース情報が、当該アクセス対象ファイルのパスおよびアクセス権についての情報を含み、
前記移行検査プログラム生成機能が、前記移行検査プログラムの中に前記アクセス対象ファイルのパスおよびアクセス権が正当に設定されているか否かを判定する処理を含めることを特徴とする、付記1に記載の移行検査プログラム作成装置。
(Additional remark 4) The trace information regarding the access of the said file contains the information about the path | pass and access right of the said access object file,
The transfer inspection program generation function includes a process of determining whether or not a path and an access right of the access target file are legitimately set in the transfer inspection program. Migration inspection program creation device.

(付記5) 移行元コンピュータで動作している対象プログラムが動作中に該移行元コンピュータのOSに対して発した情報をトレース情報として記録したトレースファイルに基づいて、前記対象プログラムが前記移行元コンピュータ以外のコンピュータ装置で動作可能か否かを判定するための移行検査プログラムを作成する移行検査プログラム作成装置にあって、
前記トレースファイルの中からファイルの実行およびアクセスについての前記トレース情報をトレースファイル整形機能が抽出し、
抽出された前記トレース情報の内容と同様の前記ファイルの実行およびアクセスが他のコンピュータ装置においても可能であるか否かを判定するための前記移行検査プログラムを移行検査プログラム生成機能が作成する
ことを特徴とする移行検査プログラム作成方法。
(Supplementary Note 5) Based on a trace file in which information issued to the OS of the migration source computer during the operation of the target program running on the migration source computer is recorded as trace information, the target program is converted to the migration source computer. In a migration inspection program creation device for creating a migration inspection program for determining whether or not it is operable on a computer device other than
The trace file shaping function extracts the trace information about the execution and access of the file from the trace file,
The migration inspection program generation function creates the migration inspection program for determining whether or not the execution and access of the file similar to the contents of the extracted trace information is possible in other computer devices. A method for creating a migration inspection program.

(付記6) 移行元コンピュータで動作している対象プログラムが動作中に該移行元コンピュータのOSに対して発した情報をトレース情報として記録したトレースファイルに基づいて、前記対象プログラムが前記移行元コンピュータ以外のコンピュータ装置で動作可能か否かを判定するための移行検査プログラムを作成する移行検査プログラム作成装置にあって、
前記移行検査プログラム作成装置が備えるコンピュータに、
前記トレースファイルの中からファイルの実行およびアクセスについての前記トレース情報を抽出する手順、
および抽出された前記トレース情報の内容と同様の前記ファイルの実行およびアクセスが他のコンピュータ装置においても可能であるか否かを判定するための前記移行検査プログラムを作成する手順、
を実行させることを特徴とする移行検査プログラム作成プログラム。
(Supplementary Note 6) Based on a trace file in which information issued to the OS of the migration source computer during operation of the target program running on the migration source computer is recorded as trace information, the target program is converted to the migration source computer. In a migration inspection program creation device for creating a migration inspection program for determining whether or not it is operable on a computer device other than
In the computer provided in the migration inspection program creation device,
Extracting the trace information about file execution and access from the trace file;
And a procedure for creating the migration inspection program for determining whether or not the execution and access of the file similar to the contents of the extracted trace information is possible in other computer devices,
A migration inspection program creation program characterized by causing

移行元アプリケーションサーバから移行先アプリケーションサーバへ動作プログラムを移行させる用途に適用できる。   It can be applied to the purpose of migrating operation programs from the migration source application server to the migration destination application server.

10 移行検査プログラム作成装置
11、21a 主演算制御手段
12、21b 記憶手段
13、21c 通信手段
14 入出力手段
20 移行元アプリケーションサーバ
22 対象プログラム実行部
23 トレース部
24 トレースファイル
25 対象プログラム
30 移行先アプリケーションサーバ
40 ネットワーク
101 トレースファイル収集部
102 移行検査プログラム生成部
102a トレースファイル整形機能
102b 移行検査プログラム生成機能
111 トレース情報記憶部
112 動作環境情報記憶部
112a アプリケーション名
112b 環境名
112c 付随情報
113 検査関数情報記憶部
113a 検査関数
120 移行検査プログラム
121 実行結果
DESCRIPTION OF SYMBOLS 10 Migration inspection program creation apparatus 11, 21a Main operation control means 12, 21b Storage means 13, 21c Communication means 14 Input / output means 20 Source application server 22 Target program execution part 23 Trace part 24 Trace file 25 Target program 30 Target application 30 Server 40 Network 101 Trace file collection unit 102 Migration inspection program generation unit 102a Trace file shaping function 102b Migration inspection program generation function 111 Trace information storage unit 112 Operating environment information storage unit 112a Application name 112b Environment name 112c Accompanying information 113 Inspection function information storage Part 113a Inspection function 120 Migration inspection program 121 Execution result

Claims (6)

移行元コンピュータで動作している対象プログラムが動作中に該移行元コンピュータのOSに対して発した情報をトレース情報として記録したトレースファイルに基づいて、前記対象プログラムが前記移行元コンピュータ以外のコンピュータ装置で動作可能か否かを判定するための移行検査プログラムを作成する移行検査プログラム作成装置であって、
前記トレースファイルの中からファイルの実行およびアクセスについての前記トレース情報を抽出するトレースファイル整形機能と、
抽出された前記トレース情報の内容と同様の前記ファイルの実行およびアクセスが他のコンピュータ装置においても可能であるか否かを判定するための前記移行検査プログラムを作成する移行検査プログラム生成機能と
を有することを特徴とする移行検査プログラム作成装置。
On the basis of a trace file in which information issued to the OS of the migration source computer while the target program running on the migration source computer is operating is recorded as trace information, the target program is a computer device other than the migration source computer. A migration inspection program creation device for creating a migration inspection program for determining whether or not it is operable in
A trace file shaping function for extracting the trace information about the execution and access of the file from the trace file;
A migration inspection program generating function for creating the migration inspection program for determining whether or not the execution and access of the file similar to the contents of the extracted trace information is possible also in other computer devices; A migration inspection program creation device characterized by that.
動作環境情報記憶部を予め備え、前記トレースファイル整形機能が、前記トレース情報を実行環境に依存しない環境情報に変換して前記動作環境情報記憶部に保存することを特徴とする、請求項1に記載の移行検査プログラム作成装置。 With operating environment information storage unit in advance, the trace file shaping function, characterized in that stored in the operating environment information storage unit by converting the environment information independent of the trace information to the execution environment, to claim 1 The migration inspection program creation device described. 前記ファイルの実行に関するトレース情報が、当該実行ファイルのファイルパスについての情報を含み、
前記移行検査プログラム生成機能が、前記移行検査プログラムの中に前記実行ファイルのパスが正当に設定されているか否かを判定する処理を含めることを特徴とする、請求項1に記載の移行検査プログラム作成装置。
The trace information related to the execution of the file includes information about the file path of the executable file,
The migration inspection program according to claim 1, wherein the migration inspection program generation function includes a process of determining whether or not a path of the executable file is properly set in the migration inspection program. Creation device.
前記ファイルのアクセスに関するトレース情報が、当該アクセス対象ファイルのパスおよびアクセス権についての情報を含み、
前記移行検査プログラム生成機能が、前記移行検査プログラムの中に前記アクセス対象ファイルのパスおよびアクセス権が正当に設定されているか否かを判定する処理を含めることを特徴とする、請求項1に記載の移行検査プログラム作成装置。
The trace information relating to the access of the file includes information on the path and access right of the file to be accessed,
2. The process according to claim 1, wherein the migration inspection program generation function includes a process of determining whether a path and access right of the access target file are properly set in the migration inspection program. Migration inspection program creation device.
移行元コンピュータで動作している対象プログラムが動作中に該移行元コンピュータのOSに対して発した情報をトレース情報として記録したトレースファイルに基づいて、前記対象プログラムが前記移行元コンピュータ以外のコンピュータ装置で動作可能か否かを判定するための移行検査プログラムを作成する移行検査プログラム作成装置が実行する移行検査プログラム作成方法であって
前記トレースファイルの中からファイルの実行およびアクセスについての前記トレース情報を前記移行検査プログラム作成装置のトレースファイル整形機能が抽出し、
抽出された前記トレース情報の内容と同様の前記ファイルの実行およびアクセスが他のコンピュータ装置においても可能であるか否かを判定するための前記移行検査プログラムを前記移行検査プログラム作成装置の移行検査プログラム生成機能が作成する
ことを特徴とする移行検査プログラム作成方法。
On the basis of a trace file in which information issued to the OS of the migration source computer while the target program running on the migration source computer is operating is recorded as trace information, the target program is a computer device other than the migration source computer. A migration inspection program creation method executed by a migration inspection program creation device that creates a migration inspection program for determining whether or not it can be operated with ,
The trace file shaping function of the migration inspection program creating device extracts the trace information about the execution and access of the file from the trace file,
The migration inspection program for determining whether or not the execution and access of the file similar to the content of the extracted trace information is possible in other computer devices is also used as the migration inspection program of the migration inspection program creating device. A migration inspection program creation method characterized by creating a generation function.
移行元コンピュータで動作している対象プログラムが動作中に該移行元コンピュータのOSに対して発した情報をトレース情報として記録したトレースファイルに基づいて、前記対象プログラムが前記移行元コンピュータ以外のコンピュータ装置で動作可能か否かを判定するための移行検査プログラムを作成する移行検査プログラム作成装置にあって、
前記移行検査プログラム作成装置が備えるコンピュータに、
前記トレースファイルの中からファイルの実行およびアクセスについての前記トレース情報を抽出する手順、
および抽出された前記トレース情報の内容と同様の前記ファイルの実行およびアクセスが他のコンピュータ装置においても可能であるか否かを判定するための前記移行検査プログラムを作成する手順
を実行させることを特徴とする移行検査プログラム作成プログラム。
On the basis of a trace file in which information issued to the OS of the migration source computer while the target program running on the migration source computer is operating is recorded as trace information, the target program is a computer device other than the migration source computer. In the migration inspection program creation device for creating a migration inspection program for determining whether or not it can be operated in
In the computer provided in the migration inspection program creation device,
Extracting the trace information about file execution and access from the trace file;
And executing a procedure for creating the migration inspection program for determining whether or not the execution and access of the file similar to the content of the extracted trace information is possible in other computer devices. Transition inspection program creation program.
JP2010216138A 2010-09-27 2010-09-27 Transition inspection program creation device, transition inspection program creation method, and transition inspection program creation program Expired - Fee Related JP5589722B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010216138A JP5589722B2 (en) 2010-09-27 2010-09-27 Transition inspection program creation device, transition inspection program creation method, and transition inspection program creation program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010216138A JP5589722B2 (en) 2010-09-27 2010-09-27 Transition inspection program creation device, transition inspection program creation method, and transition inspection program creation program

Publications (2)

Publication Number Publication Date
JP2012073682A JP2012073682A (en) 2012-04-12
JP5589722B2 true JP5589722B2 (en) 2014-09-17

Family

ID=46169815

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010216138A Expired - Fee Related JP5589722B2 (en) 2010-09-27 2010-09-27 Transition inspection program creation device, transition inspection program creation method, and transition inspection program creation program

Country Status (1)

Country Link
JP (1) JP5589722B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014170515A (en) * 2013-02-08 2014-09-18 Ricoh Co Ltd Device, information storage program, and information storage method

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05119998A (en) * 1991-10-25 1993-05-18 Nec Corp Software transportation verification device
JPH05119960A (en) * 1991-10-25 1993-05-18 Oki Electric Ind Co Ltd Byte order dependent coding detection method
JPH06236295A (en) * 1992-03-16 1994-08-23 Nippon Telegr & Teleph Corp <Ntt> Program transplant supporting system
JP3946275B2 (en) * 1995-01-10 2007-07-18 富士通株式会社 Remote installation system and method
JP2004334541A (en) * 2003-05-08 2004-11-25 Nippon Telegr & Teleph Corp <Ntt> Device and method for inspecting standard api using method, inspection program for the method, recording medium recorded with the program, application inspection system and its method
JP2009289054A (en) * 2008-05-29 2009-12-10 Toshiba Corp Server computer for cluster system, and application clustering possibility determination support program

Also Published As

Publication number Publication date
JP2012073682A (en) 2012-04-12

Similar Documents

Publication Publication Date Title
KR101122862B1 (en) Test automation stack layering
US10354225B2 (en) Method and system for process automation in computing
WO2020062673A1 (en) Smart contract test method, storage medium, test terminal and test device
US7865779B2 (en) Server side logic unit testing
Ahmad et al. A framework for architecture-driven migration of legacy systems to cloud-enabled software
JP5396979B2 (en) Software development support device, system, software development support device function expansion method, and program
JP2005173788A (en) Autonomic computing system, execution environment control method, and program
US9256509B1 (en) Computing environment analyzer
CN104657274A (en) Method and device for testing software interface
CN114115838A (en) Data interaction method and system based on distributed components and cloud platform
CN112346987A (en) Test case generation and conversion method and system based on Xmind
CN103649924A (en) Embedded apparatus, program generation apparatus, and program
WO2020075532A1 (en) System transition support device, system transition support method, and program
US11615016B2 (en) System and method for executing a test case
US11755458B2 (en) Automatic software behavior identification using execution record
Arts et al. Trace analysis of Erlang programs
JP5589722B2 (en) Transition inspection program creation device, transition inspection program creation method, and transition inspection program creation program
CN111880811A (en) Method for realizing resource arrangement of cloud platform
Park TREDE and VMPOP: Cultivating multi-purpose datasets for digital forensics–A Windows registry corpus as an example
KR20190075508A (en) Computing system and method for automatically generating embedded software on virtualized system
JP2024506528A (en) System and method for database migration in application environment migration
Milka et al. Dfuntest: A testing framework for distributed applications
de Oliveira et al. Clouds and Reproducibility: A Way to Go to Scientific Experiments?
JP7328922B2 (en) Setting device, setting method, and program
JP5683209B2 (en) Client computer with automatic document generation function

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20130809

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20140416

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20140422

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20140603

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20140714

R150 Certificate of patent or registration of utility model

Ref document number: 5589722

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees