JPH10190778A - Sampling system for communication error log - Google Patents

Sampling system for communication error log

Info

Publication number
JPH10190778A
JPH10190778A JP8347212A JP34721296A JPH10190778A JP H10190778 A JPH10190778 A JP H10190778A JP 8347212 A JP8347212 A JP 8347212A JP 34721296 A JP34721296 A JP 34721296A JP H10190778 A JPH10190778 A JP H10190778A
Authority
JP
Japan
Prior art keywords
communication error
error log
communication
created
file
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP8347212A
Other languages
Japanese (ja)
Other versions
JP2978803B2 (en
Inventor
Wataru Tochigi
渉 杤木
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 Solution Innovators Ltd
Original Assignee
NEC Solution Innovators Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Solution Innovators Ltd filed Critical NEC Solution Innovators Ltd
Priority to JP8347212A priority Critical patent/JP2978803B2/en
Publication of JPH10190778A publication Critical patent/JPH10190778A/en
Application granted granted Critical
Publication of JP2978803B2 publication Critical patent/JP2978803B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)
  • Maintenance And Management Of Digital Transmission (AREA)

Abstract

PROBLEM TO BE SOLVED: To facilitate the analysis of a communication error and to improve maintenance by preserving the communication error log of an initial stage when a large quantity of communication errors is produced in the sampling system of the communication error log. SOLUTION: The sampling system is provided with a communication error log file 14 which cyclically stores the communication error log, a means for judging whether overwriting is executed on a former communication error log 15 while referring to the overwriting propriety condition 11 of a communication error log control table, in writing the produced communication error log 16 into the communication log file 14 and a means for generating the new communication error log file and judging whether it can be stored or not when overwriting cannot be executed while referring to a new communication error log file generation condition 12 preserved in the communication error log control table.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、通信エラーの採取
方式に関し、特に、通信エラーが大量に発生した場合の
通信エラーログの採取方式に関する。
The present invention relates to a communication error collecting method, and more particularly to a communication error log collecting method when a large number of communication errors occur.

【0002】[0002]

【従来の技術】従来、通信制御装置では、通信エラーが
発生した場合のエラー解析を容易にするため、通信回線
の通信エラーのロギングを行なっている。この通信エラ
ーのロギングを行なうファイルはコンピュータ資源の有
効利用を考慮して、通常サイクリック(循環的)に使用
されている。
2. Description of the Related Art Conventionally, a communication control apparatus logs communication errors of a communication line in order to facilitate error analysis when a communication error occurs. The file for logging this communication error is usually used cyclically in consideration of effective use of computer resources.

【0003】また、通信のエラーは、最初のエラーをき
っかけにしてその後大量のエラーが発生することがしば
しばある。このため、通信エラーログファイルの最終レ
コードまで書き込み、さらに先頭レコードに戻って書き
込みを続けた場合、初期の通信エラーログを上書きして
消去してしまう可能性があった。これにより、最も重要
な初期のエラーログが確認できず、エラー解析が困難で
あった。
[0003] In addition, a communication error often causes a large number of errors after the first error. For this reason, when writing is continued up to the last record of the communication error log file and further returned to the first record and continued to be written, the initial communication error log may be overwritten and deleted. As a result, the most important initial error log could not be confirmed, and error analysis was difficult.

【0004】これを回避するため、従来の方式では通信
エラー発生時、通信エラーのロギングを停止させ、必要
な情報が消去されないような方式が考えられている。し
かし、この方式では他回線の通信エラーのロギングまで
停止され、ロギングの停止のきっかけとなった回線の通
信エラー解析は行なえるが、他の回線の通信エラー解析
が十分に行なえない等の不都合が生じる。
[0004] In order to avoid this, in a conventional method, when a communication error occurs, logging of the communication error is stopped so that necessary information is not erased. However, in this method, logging of communication errors of other lines is stopped, and communication error analysis of the line that triggered the stop of logging can be performed.However, inconveniences such as insufficient analysis of communication errors of other lines cannot be performed. Occurs.

【0005】また、通信エラーログファイルを回線毎に
分割して他回線の通信エラーのロギングにより、目的の
回線の通信エラーログを消されないようにしている方式
もある。しかし、この方式では、1回線あたりの通信エ
ラーをロギングできる通信エラーログファイルのレコー
ド数が限定されてしまうという欠点がある。
There is also a method in which a communication error log file is divided for each line so that a communication error log of a target line is not erased by logging a communication error of another line. However, this method has a disadvantage that the number of records in a communication error log file that can log a communication error per line is limited.

【0006】また、ログファイルを、必要に応じて新規
に拡張するような柔軟な方式ではないため、メモリ等の
コンピュータ資源の有効利用の点で、課題を残してい
た。
[0006] Further, since the log file is not a flexible method for newly expanding the log file as needed, a problem remains in terms of effective use of computer resources such as a memory.

【0007】このような従来例としては、特開平3−1
49943号公報に、「通信回線のトレース方式」とし
て、通信回線の制御状態をトレースしたトレースデータ
をサイクリックに格納するメモリと、データ格納の際に
上書き可否条件を参照して上書きの可否を判断する手段
を備えた方式が開示されている。
[0007] Such a conventional example is disclosed in Japanese Unexamined Patent Publication No. Hei.
Japanese Patent No. 49943 discloses a "communication line tracing method", in which a memory for cyclically storing trace data obtained by tracing a control state of a communication line and a condition for overwriting when data is stored are referred to to determine whether or not overwriting is possible. There is disclosed a system provided with means for performing the following.

【0008】[0008]

【発明が解決しようとする課題】第1の問題点は、従来
の技術では、初期のエラーログが上書きされて消えてし
まう可能性があり、上書きされた場合、エラー解析が困
難になることである。
The first problem is that, in the prior art, there is a possibility that an initial error log is overwritten and disappears, and if overwritten, error analysis becomes difficult. is there.

【0009】その理由は、ひとつの通信エラーログファ
イルをサイクリックに使用し、何ら制御を行わずに、旧
通信エラーログを上書きしているからである。
The reason is that one communication error log file is used cyclically, and the old communication error log is overwritten without any control.

【0010】第2の問題点は、通信エラーログファイル
のメモリ領域が、必要最小限とされずに、有効利用され
ない点である。
[0010] The second problem is that the memory area of the communication error log file is not minimized and is not effectively used.

【0011】その理由は、従来、通信エラーログファイ
ルのメモリ領域が固定されているため、必要最小限のメ
モリ領域を可変として、必要に応じて新たなファイルを
作成するということがなく、メモリを有効に使用するこ
とが困難である点である。
The reason is that, since the memory area of the communication error log file is conventionally fixed, the required minimum memory area is made variable, and a new file is not created as needed. It is difficult to use it effectively.

【0012】(発明の目的)本発明は、大量に通信エラ
ーが発生した場合、初期の通信エラーログを保存してお
くことにより、通信エラーの解析を容易にし、保守性の
向上を目的としている。
(Object of the Invention) An object of the present invention is to save an initial communication error log when a large number of communication errors occur, thereby facilitating the analysis of communication errors and improving maintainability. .

【0013】[0013]

【課題を解決するための手段】本発明は、上述した課題
を解決するための手段として、通信回線の通信エラーの
ロギングを行なう手段と、前記通信エラーログをサイク
リックに格納する通信エラーログファイルと、前記通信
エラーログファイルの旧データへの上書き可否条件と、
新規の前記通信エラーログファイルの作成条件と、を保
持した通信エラーログ制御テーブルと、新しく発生した
通信エラーログを前記通信ログファイルに書き込む際
に、該書き込み位置の旧通信エラーログに上書きするか
否かを、前記上書き可否条件を参照して判断する上書き
可否判定手段と、前記上書きできない場合には、前記通
信エラーログ制御テーブルに保持された前記新規の通信
エラーログファイル作成条件を参照して、新規の通信エ
ラーログファイルを作成できるかどうかを判断する新フ
ァイル作成判定手段と、前記新規の通信エラーログファ
イルが作成された場合に、該ファイルに前記新しく発生
した通信エラーログを格納する手段と、を備えたことを
特徴とする通信エラーログの採取方式を有するものであ
る。
According to the present invention, there is provided, as a means for solving the above-mentioned problems, means for logging a communication error of a communication line, and a communication error log file for cyclically storing the communication error log. And conditions for allowing or not overwriting old data in the communication error log file,
When writing a communication error log control table holding the conditions for creating a new communication error log file and a newly generated communication error log to the communication log file, whether to overwrite the old communication error log at the write position. No, the overwriting permission / non-permission determining means for determining by referring to the overwriting permission / prohibition condition, and when the overwriting cannot be performed, referring to the new communication error log file creation condition held in the communication error log control table. Means for determining whether a new communication error log file can be created, and means for storing, when the new communication error log file is created, the newly generated communication error log in the file. And a communication error log collecting method.

【0014】また、本発明の、上記通信エラーログ制御
テーブルは、予め設定された、上書き可否条件を示す時
間(T)と、システムに影響がない程度に作成可能な通
信エラーログファイルの作成個数を示す通信エラーログ
ファイル最大作成個数(M)と、通信制御装置が現在ま
でに作成した通信エラーログファイルの個数を示す通信
エラーログファイル現在の作成個数(m)と、を保持
し、上記上書き可否判定手段は、まず初めに、書き込も
うとしている通信エラーログの通信エラー発生時刻と、
現在使用中の通信エラーログファイルの書き込み位置に
書き込まれている旧通信エラーログのエラー発生時刻と
の差(t)を求め、更に前記通信エラーログ制御テーブ
ルの上書き可否条件に保持されている時間(T)との差
(T−t)を求め、この(T−t)が負ならば上書き
可、正又は0ならば上書き不可と判定し、上記新ファイ
ル作成判定手段は、前記通信エラーログ制御テーブルの
前記通信エラーログファイル最大作成個数(M)と通信
エラーログファイルの現在の作成個数(m)との差(M
−m)を求め、(M−m)が正ならば作成可、負又は0
ならば作成不可と判定し、作成可能な場合、新たな前記
通信エラーログファイルを作成し、上記通信エラーログ
ファイルの現在の作成個数をカウントアップする、こと
を特徴とする通信エラーログの採取方式でもある。
Further, the communication error log control table of the present invention includes a preset time (T) indicating overwriting permission / inhibition conditions, and the number of communication error log files that can be created without affecting the system. And the maximum number of communication error log files created (M) indicating the number of communication error log files created by the communication control device up to the present, and the number of communication error log files currently created (m) indicating the number of communication error log files created so far. The availability determining means firstly determines a communication error occurrence time of a communication error log to be written,
The difference (t) from the error occurrence time of the old communication error log written at the writing position of the currently used communication error log file is determined, and the time held in the overwrite permission condition of the communication error log control table is further determined. A difference (Tt) from (T) is determined, and if this (Tt) is negative, it is determined that overwriting is possible, and if it is positive or 0, it is determined that overwriting is not possible. The difference (M) between the maximum number (M) of communication error log files created in the control table and the current number (m) of communication error log files created.
−m), and if (M−m) is positive, creation is possible, negative or 0
Then, it is determined that creation is impossible, and if creation is possible, a new communication error log file is created, and the current number of created communication error log files is counted up, and the communication error log collection method is characterized in that But also.

【0015】また、本発明は、上記手段として、上記方
式を実行するためのプログラムを記録したことを特徴と
する媒体を提供するものでもある。
Further, the present invention provides a medium characterized by recording a program for executing the above method as the above means.

【0016】更に、本発明の手段について、図面を参照
して詳細に述べる。
Further, the means of the present invention will be described in detail with reference to the drawings.

【0017】本発明の通信エラーログの採取方式は、通
信エラーログファイルの書き込み位置に既に書き込まれ
ている旧通信エラーログを上書きできるかどうかを、通
信エラーログ制御テーブル(図1の10)の上書き可否
条件(図1の11)を用いて判断する手段と、通信エラ
ーログ制御テーブル(図1の10)に保持されている通
信エラーログファイルの作成条件(図1の12と13)
を用いて判断する手段とを有する通信エラーログファイ
ル制御部(図2の20)を備えている。
According to the communication error log collection method of the present invention, the communication error log control table (10 in FIG. 1) determines whether the old communication error log already written at the write position of the communication error log file can be overwritten. Means for judging using the overwrite permission condition (11 in FIG. 1) and the conditions for creating the communication error log file (12 and 13 in FIG. 1) held in the communication error log control table (10 in FIG. 1)
And a communication error log file control unit (20 in FIG. 2) having means for making a determination by using the command.

【0018】また、通信エラーログ制御テーブル(図1
の10)において、上書き可否条件(図1の11)に
は、時間(T)が、通信エラーログファイル最大作成個
数(図1の12)には、システムに影響がない程度に作
成可能な通信エラーログファイルの作成個数(M)が、
通信エラーログファイル現在の作成個数(図1の13)
には、通信制御装置が現在までに作成した通信エラーロ
グファイルの個数(m)が、保持されている。
A communication error log control table (FIG. 1)
In 10), the time (T) is included in the overwrite permission condition (11 in FIG. 1), and the maximum number of communication error log files (12 in FIG. 1) is set to a level that does not affect the system. The number of error log files created (M) is
Number of communication error log files currently created (13 in Fig. 1)
Holds the number (m) of communication error log files created by the communication control device up to the present.

【0019】上書き可否の判定手段は、まず初めに書き
込もうとしている通信エラーログ(図1の16)の通信
エラー発生時刻(図1の16a)と現在使用中の通信エ
ラーログファイル(図1の14)の書き込み位置に書き
込まれている旧通信エラーログ(図1の15)のエラー
発生時刻(図1の15a)との差(t)を求める。
The overwriting permission / non-permission determining means first determines the communication error occurrence time (16a in FIG. 1) of the communication error log (16 in FIG. 1) to be written and the communication error log file (FIG. 1 in FIG. 1) currently in use. The difference (t) from the error occurrence time (15a in FIG. 1) of the old communication error log (15 in FIG. 1) written at the writing position of 14) is obtained.

【0020】次に、通信エラーログ制御テーブルの上書
き可否条件に保持されている時間(T)との差(T−
t)を求める。(T−t)が負ならば上書き可、正又は
0ならば上書き不可と判定する。
Next, the difference (T−T) from the time (T) held in the overwrite permission condition of the communication error log control table is described.
Find t). If (Tt) is negative, it is determined that overwriting is possible, and if it is positive or 0, it is determined that overwriting is not possible.

【0021】通信エラーログファイルの作成の判定手段
は、通信エラーログ制御テーブル(図1の10)の通信
エラーログファイル最大作成個数M(図1の12)と通
信エラーログファイルの現在の作成個数m(図1の1
3)との差(M−m)を求め、正なら作成可能、負又は
0なら作成不可と判定する。作成可能な場合、通信エラ
ーログファイルの現在の作成個数m(図1の13)をカ
ウントアップする。
The means for determining the creation of a communication error log file includes the maximum number M of communication error log files created (12 in FIG. 1) in the communication error log control table (10 in FIG. 1) and the current number of created communication error log files. m (1 in FIG. 1)
The difference (M−m) from 3) is obtained, and if it is positive, it is determined that it can be created, and if it is negative or 0, it is determined that it cannot be created. If the communication error log file can be created, the current number m of communication error log files created (13 in FIG. 1) is counted up.

【0022】[作用]通信のエラーは、最初のエラーを
きっかけにして、その後大量のエラーが発生することが
しばしばある。また、ログファイルはコンピュータ資源
の有効利用を考慮して、通常サイクリックに使用されて
いる。このため従来の方式では、エラーログファイルの
最終レコードまで書き込んで、さらに先頭レコードに戻
って書き込みを続けた場合、初期の通信エラーログを上
書きする可能性があった。このため、最も重要な初期の
エラーログが確認できず、エラー解析が困難であった。
[Operation] In a communication error, a large number of errors often occur after the first error. The log file is usually used cyclically in consideration of effective use of computer resources. For this reason, in the conventional method, when writing is performed up to the last record of the error log file, and further returning to the first record and continuing to write, the initial communication error log may be overwritten. For this reason, the most important initial error log could not be confirmed, and error analysis was difficult.

【0023】本発明によれば、エラーログファイルの上
書きしようとするレコード(ログ)の時刻をチェック
し、ある一定時間以上の時間が経過していなければ、そ
のレコードに書き込みを行わずに、新たにエラーログフ
ァイルを作成することにより、重要な初期のエラーログ
の上書きによる消去を避けることができる。
According to the present invention, the time of a record (log) to be overwritten in an error log file is checked, and if a certain time or more has not elapsed, the record is not written and a new record is not written. By creating an error log file at the beginning, it is possible to avoid erasure of important initial error logs by overwriting.

【0024】すなわち、本発明は、書き込もうとするエ
ラーログの時刻と書き込まれているエラーログの時刻の
差がある一定間隔の時間T以上離れていれば書き込み
(上書き)を続け、一定時間T以上離れていない場合
は、さらに新しいエラーログファイルを作成して書き込
みを続ける。
That is, according to the present invention, when the difference between the time of the error log to be written and the time of the error log being written is separated by a certain interval T or more, the writing (overwriting) is continued and the certain time T or more is continued. If not, create a new error log file and continue writing.

【0025】このため、初期の通信エラーログを、通信
エラーログファイル上で確認でき、通信エラー解析が容
易になる。
Therefore, the initial communication error log can be confirmed on the communication error log file, and the communication error analysis can be easily performed.

【0026】また、短時間に大量に発生した通信エラー
の初期の通信エラーログを確認できる。
Further, an initial communication error log of a large number of communication errors generated in a short time can be confirmed.

【0027】[0027]

【発明の実施の形態】次に、本発明の実施形態について
図面を参照して詳細に説明する。
Next, an embodiment of the present invention will be described in detail with reference to the drawings.

【0028】[構成]図1は、本発明の原理を説明する
ための図であり、主にデータ構成を示す模式図であり、
図2は、本実施形態の概略構成を示す模式図である。
[Structure] FIG. 1 is a diagram for explaining the principle of the present invention, and is a schematic diagram mainly showing a data structure.
FIG. 2 is a schematic diagram showing a schematic configuration of the present embodiment.

【0029】図2に示される通信制御部21は、回線の
制御を行っており、制御を行っている回線に何らかの通
信エラーが発生した場合、通信エラーログを作成し、通
信エラーログファイル制御部20に通信エラーログの書
き込み要求を行う。
The communication control unit 21 shown in FIG. 2 controls the line, and if any communication error occurs on the line under control, creates a communication error log and creates a communication error log file control unit. A request for writing a communication error log is made to the communication device 20.

【0030】通信エラーログには、図1の16に示した
ように、通信エラー発生時刻と通信エラー情報が格納さ
れている。
The communication error log stores a communication error occurrence time and communication error information as shown at 16 in FIG.

【0031】通信エラーログファイル制御部20は、通
信エラーログの書き込み要求を受けて、新しく発生した
通信エラーのログを旧通信エラーログに上書きできるか
どうかを通信エラーログ制御テーブル22より判断す
る。判断方法は以下である。
The communication error log file control unit 20 receives the request for writing the communication error log, and determines from the communication error log control table 22 whether or not the newly generated communication error log can be overwritten with the old communication error log. The determination method is as follows.

【0032】まず初めに、書き込もうとしている通信エ
ラーログ(図1の16)の通信エラー発生時刻(図1の
16a)と現在使用中の通信エラーログファイル(図1
の14)の書き込み位置に書き込まれている旧通信エラ
ーログ(図1の15)のエラー発生時刻(図1の15
a)との差(t)を求める。次に、通信エラーログ制御
テーブルの上書き可否条件に保持されている時間との差
(T−t)を求める。(T−t)が負なら上書き可、正
又は0なら上書き不可と判定する。
First, the communication error occurrence time (16a in FIG. 1) of the communication error log to be written (16 in FIG. 1) and the communication error log file currently in use (FIG. 1)
The error occurrence time (15 in FIG. 1) of the old communication error log (15 in FIG. 1) written in the write position of (14)
The difference (t) from a) is obtained. Next, the difference (Tt) from the time held in the overwrite permission condition of the communication error log control table is obtained. If (Tt) is negative, it is determined that overwriting is possible, and if it is positive or 0, it is determined that overwriting is not possible.

【0033】上書き可の場合は、そのまま旧通信エラー
ログを上書きする。
When overwriting is permitted, the old communication error log is overwritten as it is.

【0034】上書き不可の場合は、新規通信エラーログ
ファイルの作成が可能かどうかの判断を行う。判断方法
は以下である。
If overwriting is not possible, it is determined whether a new communication error log file can be created. The determination method is as follows.

【0035】通信エラーログ制御テーブル(図1の1
0)の通信エラーログファイル最大作成個数M(図1の
12)と通信エラーログファイルの現在の作成個数m
(図1の13)との差(M−m)を求め、正なら作成可
能、負又は0ならば作成不可と判定する。
Communication error log control table (1 in FIG. 1)
0) The maximum number M of communication error log files created (12 in FIG. 1) and the current number m of communication error log files created
The difference (M−m) from (13 in FIG. 1) is determined. If it is positive, it is determined that creation is possible, and if it is negative or 0, creation is impossible.

【0036】作成可能な場合、新ファイルを作成し、通
信エラーログファイルの現在の作成個数m(図1の1
3)をカウントアップする。
If it can be created, a new file is created, and the current number m of communication error log files created (1 in FIG. 1).
3) Count up.

【0037】新規通信エラーログファイルの作成が可の
場合、現在使用中の通信エラーログファイルのファイル
名を変更し、新しく通信エラーログファイルを作成し、
そのファイルの先頭レコードから通信エラーログを書き
込む。
When a new communication error log file can be created, the file name of the currently used communication error log file is changed, and a new communication error log file is created.
Write the communication error log from the first record of the file.

【0038】新規通信エラーログファイルの作成が不可
の場合はそのまま旧通信エラーログを上書きするように
することもできる。
When it is impossible to create a new communication error log file, the old communication error log can be overwritten as it is.

【0039】[動作]次に、本発明の実施形態の動作に
ついて、図3を参照して説明する。
[Operation] Next, the operation of the embodiment of the present invention will be described with reference to FIG.

【0040】図3は、通信エラーログファイル制御部
(図2の20)の動作フローである。
FIG. 3 is an operation flow of the communication error log file control unit (20 in FIG. 2).

【0041】ステップ1:書き込もうとしている通信エ
ラーログの通信エラー発生時刻(T1)を読み出す。
Step 1: The communication error occurrence time (T1) of the communication error log to be written is read.

【0042】ステップ2:書き込み位置にある旧通信エ
ラーログの通信エラー発生時刻(T2)を読み出す。
Step 2: Read the communication error occurrence time (T2) in the old communication error log at the write position.

【0043】ステップ3:ステップ1で読み出した時刻
(T1)とステップ2で読み出した時刻(T2)との差
(t)を求める。
Step 3: The difference (t) between the time (T1) read in step 1 and the time (T2) read in step 2 is determined.

【0044】ステップ4:通信エラーログ制御テーブル
(図1の10)の上書き可否条件(T)(図1の11)
と、ステップ3の結果(t)とを比較する。
Step 4: Overwrite permission / inhibition condition (T) in communication error log control table (10 in FIG. 1) (11 in FIG. 1)
And the result (t) of step 3 are compared.

【0045】上書き可否条件(T)の方が小さい場合、
上書き可と判定しステップ10を行う。上書き可否条件
(T)の方が大きいか等しい場合、上書き不可と判定し
ステップ5を行う ステップ5:通信エラーログ制御テーブル(図1の1
0)の通信エラーログファイル最大作成個数(M)(図
1の12)と通信エラーログファイル現在の作成個数
(m)(図1の13)とを比較する。
If the overwrite permission condition (T) is smaller,
It is determined that overwriting is possible, and step 10 is performed. If the overwrite permission condition (T) is larger or equal, it is determined that overwrite is not possible and step 5 is performed. Step 5: Communication error log control table (1 in FIG. 1)
The maximum number of communication error log files (M) (12) shown in FIG. 1) is compared with the current number of communication error log files created (m) (13 in FIG. 1).

【0046】通信エラーログファイル最大作成個数
(M)の方が大きい場合、ステップ6を行う。
If the maximum number of communication error log files (M) is larger, step 6 is performed.

【0047】通信エラーログファイル最大作成個数
(M)の方が小さいか等しい場合、ステップ10を行う
(ただし、旧通信エラーログを残すため、書き込みを停
止して、メッセージなどを出力するようにしても良
い。)。
If the maximum number of communication error log files (M) is smaller or equal, step 10 is performed. (However, in order to leave the old communication error log, writing is stopped and a message or the like is output. Is also good.).

【0048】ステップ6:通信エラーログ制御テーブル
(図1の10)の通信エラーログファイルの現在の作成
個数をプラス1する。
Step 6: The current number of communication error log files created in the communication error log control table (10 in FIG. 1) is incremented by one.

【0049】ステップ7:現在使用中の通信エラーログ
ファイルのファイル名を変更する。新しく通信エラーロ
グファイルを作成し、先頭レコードに通信エラーログを
書き込む。
Step 7: Change the file name of the currently used communication error log file. Create a new communication error log file and write the communication error log to the first record.

【0050】ステップ8:新しく通信エラーログファイ
ルを作成する。
Step 8: Create a new communication error log file.

【0051】ステップ9:先頭レコードに通信エラーロ
グを書き込む。
Step 9: Write a communication error log in the first record.

【0052】ステップ10:旧通信エラーログを上書き
する。
Step 10: Overwrite the old communication error log.

【0053】[0053]

【実施例】次に、本発明の実施例について図4を参照し
て説明する。図4は、本発明で用いる具体的なデータを
示す模式図である。図4において、40は通信エラーロ
グ制御テーブルの例である。41は、通信エラーログを
最終レコードまで書き込んだ状態である。書き込もうと
している通信エラーログの時刻と旧通信エラーログの時
刻を比較し、上書き可の場合まで、すなわち(n−1)
レコードまで書き込んだ状態が42である。新しい通信
エラーログファイルを作成しその先頭レコードに書き込
んだものが44である。
Next, an embodiment of the present invention will be described with reference to FIG. FIG. 4 is a schematic diagram showing specific data used in the present invention. In FIG. 4, reference numeral 40 denotes an example of a communication error log control table. Reference numeral 41 denotes a state in which the communication error log has been written up to the last record. The time of the communication error log to be written and the time of the old communication error log are compared, and until the overwriting is possible, that is, (n-1)
The state where the record has been written is 42. Reference numeral 44 denotes a file in which a new communication error log file is created and written in the first record.

【0054】次に、本発明の実施例の動作について、図
3と図4を参照して詳細に説明する。
Next, the operation of the embodiment of the present invention will be described in detail with reference to FIGS.

【0055】図4の40を参照すると、通信エラーログ
制御テーブルの上書き可否条件は300秒に設定されて
おり、また通信エラーログファイルの最大作成個数は
4、現在の作成個数は1である。
Referring to 40 in FIG. 4, the overwrite permission condition of the communication error log control table is set to 300 seconds, the maximum number of communication error log files created is 4, and the current number created is 1.

【0056】また、通信エラーログファイルは、サイク
リックに使用されているので、最終レコードまで書き終
えると、先頭レコードに戻って書き込みを開始する(図
4の41)。
Further, since the communication error log file is used cyclically, when the writing to the last record is completed, the writing returns to the first record and starts writing (41 in FIG. 4).

【0057】(n−1)レコード目までは、旧通信エラ
ーログが上書き可能と判断されて書き込みを行ったが、
次に書き込もうとしている通信エラーログ43の通信エ
ラーログ発生時刻と次書き込み位置(nレコード目)に
ある旧通信エラーログの時刻の差が62秒であるため、
この差と図4の40の上書き可否条件が300秒である
ことから上書き不可の判断がなされる(図3のステップ
4)。
Up to the (n-1) th record, the old communication error log was determined to be overwritable and was written.
Since the difference between the communication error log occurrence time of the communication error log 43 to be written next and the time of the old communication error log at the next writing position (the nth record) is 62 seconds,
Since this difference and the overwriting permission / prohibition condition of 40 in FIG. 4 are 300 seconds, it is determined that overwriting is not possible (step 4 in FIG. 3).

【0058】従って、図3のステップ5へと処理は進
み、新規通信エラーログファイル作成の判断を行う。図
4の40から、通信エラーログファイルの最大作成個数
と現在の作成個数との比較で新規通信エラーログファイ
ルの作成が可と判断し、新規に作成された通信エラーロ
グファイル(図4の46)の先頭レコードに通信エラー
ログを書き込む。
Accordingly, the process proceeds to step 5 in FIG. 3, and a determination is made to create a new communication error log file. From 40 in FIG. 4, it is determined that a new communication error log file can be created by comparing the maximum number of communication error log files created and the current number of created communication error log files, and the newly created communication error log file (46 in FIG. 4) is determined. Write the communication error log to the first record of the parentheses.

【0059】また、新しく作成できるエラーログファイ
ルの個数に2〜3の制限を設けておくと、制限個までエ
ラーログファイルを作成した場合は、たとえ一定間隔T
以上離れていなくても最後に作成したエラーログファイ
ルをサイクリックに使用する方式とすることもできる。
If a limit of two or three is set for the number of error log files that can be newly created, if error log files are created up to the limit, even if a fixed interval T
Even if they are not apart from each other, a method may be used in which the last created error log file is used cyclically.

【0060】また、本発明は、上述した本発明の方式を
実行するためのプログラムを格納したフロッピーディス
ク等の媒体でもあり、この媒体により、上述した課題を
解決し、本発明の効果が得られることは明白である。
The present invention is also a medium such as a floppy disk storing a program for executing the above-described method of the present invention. With this medium, the above-described problems can be solved and the effects of the present invention can be obtained. That is clear.

【0061】[0061]

【発明の効果】第1の効果は、初期の通信エラーログが
通信エラーログファイル上で確認でき、通信エラー解析
が容易になる点である。
The first effect is that the initial communication error log can be confirmed on the communication error log file, and the communication error analysis becomes easy.

【0062】その理由は、上書きされる通信エラーログ
の発生時刻と、書き込もうとしている通信エラーログの
通信エラー発生時刻とを比較し、上書き可否条件に予め
設定された所定の経過時間だけ経過していない場合は、
上書きしないで旧エラーログを残すようにしているた
め、短時間に大量に発生した通信エラーの初期の通信エ
ラーログを確認できるためである。
The reason is that the occurrence time of the communication error log to be overwritten is compared with the occurrence time of the communication error in the communication error log to be written, and a predetermined elapsed time set in advance in the overwriting permission condition elapses. If not,
This is because the old error log is left without being overwritten, so that an initial communication error log of a large number of communication errors generated in a short time can be confirmed.

【0063】第2の効果は、必要以上のメモリ等のコン
ピュータ資源の消費を押さえることができる点である。
A second effect is that unnecessary consumption of computer resources such as a memory can be suppressed.

【0064】その理由は、本発明によれば、必要に応じ
てログファイルを新規に作成するため、必要に応じた最
小限のメモリ領域しか使用しないですむからである。ま
た、重要な初期のエラーログがあるエラーログファイル
は上書きが行われていない為、使用しなくなった最古の
エラーログファイルや、次に古いエラーログファイルを
調べることで、エラーログ解析を容易に行うことができ
るようになる。
The reason is that, according to the present invention, a log file is newly created as needed, so that only a minimum necessary memory area is used. Also, since error log files with important initial error logs are not overwritten, error log analysis is easy by checking the oldest error log file that is no longer used or the next oldest error log file. Will be able to do it.

【図面の簡単な説明】[Brief description of the drawings]

【図1】本発明の原理を説明するためのデータ構成図で
ある。
FIG. 1 is a data configuration diagram for explaining the principle of the present invention.

【図2】本発明の実施例の構成例を示す模式図である。FIG. 2 is a schematic diagram showing a configuration example of an embodiment of the present invention.

【図3】通信エラーログファイル制御部の本発明部分の
動作フロー図である。
FIG. 3 is an operation flowchart of the communication error log file control unit according to the present invention;

【図4】実施例の具体的データの一例を示す図である。FIG. 4 is a diagram showing an example of specific data of the embodiment.

【符号の説明】[Explanation of symbols]

10,22,40 通信エラーログ制御テーブル 11 上書き可否条件T 12 通信エラーログファイル最大作成個数M 13 通信エラーログファイル現在の作成個数m 14,23 現在使用中の通信エラーログファイル 15 次書き込み位置 15a 旧通信エラーログの通信エラー発生時刻 16 書き込もうとしている通信エラーログ 16a 新通信エラー発生時刻 20 通信エラーログファイル制御部 21 通信制御部 41 ログファイルの最終レコードまで書き込んだ例 42 ログファイルの旧通信エラーログを上書き可まで
書き込んだ例 44 新しい通信エラーログファイルを作成した例 45 旧通信エラーログが上書き不可のため、ファイル
名を変更した通信エラーログファイル 46 新規に作成された通信エラーログファイル
10, 22, 40 Communication error log control table 11 Overwrite permission / prohibition condition T 12 Maximum number of communication error log files created M 13 Current number of communication error log files created 14, 23 Communication error log file currently in use 15 Next write position 15a Communication error occurrence time of old communication error log 16 Communication error log to be written 16a New communication error occurrence time 20 Communication error log file control unit 21 Communication control unit 41 Example of writing to last record of log file 42 Old communication of log file Example of writing error log until overwriting possible 44 Example of creating new communication error log file 45 Communication error log file with changed file name because old communication error log cannot be overwritten 46 Newly created communication error log file

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 通信回線の通信エラーのロギングを行な
う手段と、 前記通信エラーログを循環的に格納する通信エラーログ
ファイルと、 前記通信エラーログファイルの旧データへの上書き可否
条件と、新規の前記通信エラーログファイルの作成条件
と、を保持した通信エラーログ制御テーブルと、 新しく発生した通信エラーログを前記通信ログファイル
に書き込む際に、該書き込み位置の旧通信エラーログに
上書きするか否かを、前記上書き可否条件を参照して判
断する上書き可否判定手段と、 前記上書きできない場合には、前記通信エラーログ制御
テーブルに保持された前記新規の通信エラーログファイ
ル作成条件を参照して、新規の通信エラーログファイル
を作成できるかどうかを判断する新ファイル作成判定手
段と、 前記新規の通信エラーログファイルが作成された場合
に、該ファイルに前記新しく発生した通信エラーログを
格納する手段と、 を備えたことを特徴とする通信エラーログの採取方式。
Means for logging a communication error of a communication line; a communication error log file for cyclically storing the communication error log; a condition for overwriting the communication error log file with old data; A communication error log control table holding conditions for creating the communication error log file, and whether to overwrite an old communication error log at the writing position when writing a newly generated communication error log to the communication log file. Overwriting permission / non-permission determining means for determining by referring to the overwriting permission / prohibition condition, and when the overwriting cannot be performed, referring to the new communication error log file creation condition held in the communication error log control table, New file creation determining means for determining whether a communication error log file of the new communication can be created; If the error log file is created, collected method of communication error log, characterized in that it comprises means for storing a communication error log that the newly generated in the file, the.
【請求項2】 上記通信エラーログ制御テーブルは、予
め設定された、上書き可否条件を示す時間(T)と、シ
ステムに影響がない程度に作成可能な通信エラーログフ
ァイルの作成個数を示す通信エラーログファイル最大作
成個数(M)と、通信制御装置が現在までに作成した通
信エラーログファイルの個数を示す通信エラーログファ
イル現在の作成個数(m)と、を保持し、 上記上書き可否判定手段は、まず初めに、書き込もうと
している通信エラーログの通信エラー発生時刻と、現在
使用中の通信エラーログファイルの書き込み位置に書き
込まれている旧通信エラーログのエラー発生時刻との差
(t)を求め、更に前記通信エラーログ制御テーブルの
上書き可否条件に保持されている時間(T)との差(T
−t)を求め、この(T−t)が負ならば上書き可、正
又は0ならば上書き不可と判定し、 上記新ファイル作成判定手段は、前記通信エラーログ制
御テーブルの前記通信エラーログファイル最大作成個数
(M)と通信エラーログファイルの現在の作成個数
(m)との差(M−m)を求め、(M−m)が正ならば
作成可、負又は0ならば作成不可と判定し、作成可能な
場合、新たな前記通信エラーログファイルを作成し、上
記通信エラーログファイルの現在の作成個数をカウント
アップする、ことを特徴とする請求項1記載の通信エラ
ーログの採取方式。
2. The communication error log control table according to claim 1, wherein the communication error log control table has a preset time (T) indicating an overwrite permission condition and a communication error log file indicating the number of communication error log files that can be created without affecting the system. The maximum number of log files created (M) and the current number of created communication error log files (m) indicating the number of communication error log files created by the communication control device up to the present time. First, the difference (t) between the communication error occurrence time of the communication error log to be written and the error occurrence time of the old communication error log written at the writing position of the currently used communication error log file is calculated. And a difference (T) from the time (T) held in the overwrite permission condition of the communication error log control table.
−t), and if this (T−t) is negative, it is determined that overwriting is possible, and if it is positive or 0, it is determined that overwriting is not possible. The new file creation determining means determines the communication error log file in the communication error log control table. The difference (Mm) between the maximum number of created (M) and the current number of created communication error log files (m) is determined. If (Mm) is positive, creation is possible, and if negative or 0, creation is impossible. 2. The communication error log collection method according to claim 1, further comprising: creating a new communication error log file and counting up the current number of created communication error log files if the communication error log file can be created. .
【請求項3】 請求項1又は2記載の方式を実行するた
めのプログラムを記録したことを特徴とする媒体。
3. A medium on which a program for executing the method according to claim 1 or 2 is recorded.
JP8347212A 1996-12-26 1996-12-26 Communication error log collection method Expired - Fee Related JP2978803B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8347212A JP2978803B2 (en) 1996-12-26 1996-12-26 Communication error log collection method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8347212A JP2978803B2 (en) 1996-12-26 1996-12-26 Communication error log collection method

Publications (2)

Publication Number Publication Date
JPH10190778A true JPH10190778A (en) 1998-07-21
JP2978803B2 JP2978803B2 (en) 1999-11-15

Family

ID=18388689

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8347212A Expired - Fee Related JP2978803B2 (en) 1996-12-26 1996-12-26 Communication error log collection method

Country Status (1)

Country Link
JP (1) JP2978803B2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003066053A (en) * 2001-08-27 2003-03-05 Techno Medica Co Ltd Automatic preparation system of blood collecting tube provided with error management function
JP2006120152A (en) * 2004-10-19 2006-05-11 Quantum Corp Method and device for recording state of data storage device in response to device error and computer program product including program code
WO2007029308A1 (en) * 2005-09-06 2007-03-15 Hewlett-Packard Development Company, L.P. Message processing device and method thereof

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102481797B1 (en) 2017-11-09 2022-12-28 삼성전자주식회사 Server, electronic apparatus and controlling method thereof

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003066053A (en) * 2001-08-27 2003-03-05 Techno Medica Co Ltd Automatic preparation system of blood collecting tube provided with error management function
JP2006120152A (en) * 2004-10-19 2006-05-11 Quantum Corp Method and device for recording state of data storage device in response to device error and computer program product including program code
WO2007029308A1 (en) * 2005-09-06 2007-03-15 Hewlett-Packard Development Company, L.P. Message processing device and method thereof
JPWO2007029308A1 (en) * 2005-09-06 2009-03-12 ヒューレット−パッカード デベロップメント カンパニー エル.ピー. Message processing apparatus and method
JP4827261B2 (en) * 2005-09-06 2011-11-30 ヒューレット−パッカード デベロップメント カンパニー エル.ピー. Message processing apparatus and method

Also Published As

Publication number Publication date
JP2978803B2 (en) 1999-11-15

Similar Documents

Publication Publication Date Title
US7325112B2 (en) High-speed snapshot method
JP2710717B2 (en) A method for quickly accessing a desired logical data block identified by a logical block number on a tape
JP2978803B2 (en) Communication error log collection method
JP2003076604A (en) Log information collecting system and method for flash memory
EP0539966B1 (en) A magneto-optical disc control system and method
US5319503A (en) Method and apparatus for writing successive streams of data on a magnetic medium by writing a cancel mark indicating the cancellation of a previously-written file mark
JPS60113361A (en) Discrimination system of magnetic disk format
JPH0793101A (en) Data backup device
JP3870024B2 (en) Information recording apparatus and information recording method
JP2002042303A (en) Magnetic disk device and error-processing method of magnetic disk device
JPH10154087A (en) Memory content dumping method
JP4100226B2 (en) Log recording device
US7092773B1 (en) Method and system for providing enhanced editing capabilities
JPH06139650A (en) Circulation use type magnetic tape device
JP2000250595A (en) Sound-recording control system for ic memory
JPH08263389A (en) Data backup method
JPH07271518A (en) Magnetic disk device
JPS6118218B2 (en)
JP2000137633A (en) System and method for collecting information, and recording medium recorded with information collection processing program
JP2684803B2 (en) Information recording / reproducing device
JPS63298550A (en) Non-stop trace system
JPS6359640A (en) Log information file control system
JPS62192826A (en) File writing system
JPH04340664A (en) Shape data management device
JPH01158677A (en) Writing error judgement method

Legal Events

Date Code Title Description
R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

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

Free format text: PAYMENT UNTIL: 20080910

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20080910

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20090910

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20090910

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20100910

Year of fee payment: 11

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

Free format text: PAYMENT UNTIL: 20110910

Year of fee payment: 12

LAPS Cancellation because of no payment of annual fees