JP2008262287A - Communication control device and communication log storage method - Google Patents
Communication control device and communication log storage method Download PDFInfo
- Publication number
- JP2008262287A JP2008262287A JP2007102894A JP2007102894A JP2008262287A JP 2008262287 A JP2008262287 A JP 2008262287A JP 2007102894 A JP2007102894 A JP 2007102894A JP 2007102894 A JP2007102894 A JP 2007102894A JP 2008262287 A JP2008262287 A JP 2008262287A
- Authority
- JP
- Japan
- Prior art keywords
- communication
- log
- error
- communication log
- error log
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Landscapes
- Debugging And Monitoring (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
- Maintenance And Management Of Digital Transmission (AREA)
- Telephonic Communication Services (AREA)
Abstract
Description
本発明は、通信ログを保存する機能を有する通信制御装置、および通信制御装置で発生する通信ログを保存する通信ログ保存方法に関する。 The present invention relates to a communication control apparatus having a function of storing a communication log, and a communication log storage method for storing a communication log generated in the communication control apparatus.
従来の通信ログ(通信記録)のロギング方式(通信記録の記録方式)では、限られたメモリ資源を有効に活用するために、静的にメモリ領域を確保し、通信ログをサイクリック(循環的)にメモリに書き込む。通信ログをサイクリックにメモリに書き込むとは、通信ログをメモリ領域におけるログ保存領域の先頭から順番に書き込み、通信ログがログ保存領域の最後まで書き込まれた状態で新たな通信ログが発生した場合に、その通信ログを、ログ保存領域の先頭から上書きすることをいう。すなわち、新たに発生した通信ログで最旧のデータ(通信ログ)を更新することである。 In the conventional communication log (communication record) logging method (communication record recording method), in order to effectively use the limited memory resources, a memory area is statically secured and the communication log is cyclic (cyclic) ) To memory. The communication log is written to the memory cyclically when the communication log is written in order from the beginning of the log storage area in the memory area and a new communication log is generated with the communication log written to the end of the log storage area. The communication log is overwritten from the beginning of the log storage area. That is, the oldest data (communication log) is updated with a newly generated communication log.
従って、障害発生時等に大量のエラーが発生した場合に、発生したエラーを示す通信ログ(エラーログ情報)がログ保存領域の最後まで記憶されたときに、さらに、エラーログ情報が発生すると、過去のエラーログ情報が消去される。すると、障害解析のために重要な情報となる過去のエラーログ情報が消失してしまうことがある。 Therefore, when a large number of errors occur, such as when a failure occurs, when the communication log indicating the error that occurred (error log information) is stored to the end of the log storage area, and further error log information occurs, Past error log information is deleted. Then, past error log information that is important information for failure analysis may be lost.
特許文献1には、エラーログ情報の消失を防止するために、エラーが発生した場合に、エラーログファイルのファイルサイズを拡張する方法が記載されている。
特許文献2には、エラーログ情報の消失を防止するために、通信エラーが発生したときに、過去における最新の通信エラーの発生時点からの時間が所定時間を超えていれば、エラーログをエラーログファイルに上書きする方法が記載されている。
In
過去のエラーログ情報が消失すると、障害解析のための時間が長くなり、MTTR(Mean Time To Repair)が増大するという問題がある。 When the past error log information is lost, there is a problem that the time for failure analysis becomes longer and MTTR (Mean Time To Repair) increases.
また、過去のエラーログ情報の消失を防ぐために、エラーログの保存(記憶)を停止させると、エラーログの保存の停止後にエラーログや通信ログが記憶されないという問題がある。 Further, if the error log saving (memory) is stopped in order to prevent the loss of past error log information, there is a problem that the error log and the communication log are not stored after the error log saving is stopped.
また、共通のログバッファ領域に複数の回線のエラー情報を書き込む方法があるが、同時に複数の回線で障害が発生した場合に、複数の回線のエラーログ情報が当該ログバッファ領域に混在し、障害解析作業が困難になるという問題がある。 In addition, there is a method to write error information for multiple lines to a common log buffer area. However, if a failure occurs on multiple lines at the same time, error log information for multiple lines is mixed in the log buffer area and There is a problem that analysis work becomes difficult.
特許文献1に記載されている方法は、エラーログ情報の消失を防ぐために、エラーログファイルのファイルサイズを拡張するという方法であるが、記憶手段の記憶容量に制限がある場合には、そのような方法を用いることは難しい。
The method described in
特許文献2に記載されている方法は、過去における最新の通信エラーの発生時点からの時間が所定時間を超えていればエラーログをエラーログファイルに上書きすることを許可する方法であるが、所定時間過去に遡った時点よりも前に発生したエラーログであっても、消去することが好ましくない場合もありうる。特に、通信ログ収集対象のシステムの稼働開始時やリセット直後に生じたエラーログは消去されないことが好ましい。
The method described in
そこで、本発明は、エラーログファイルのファイルサイズを拡張することなく、できるだけ初期エラー発生時の通信ログを消去しないようにすることができる通信制御装置および通信ログ保存方法を提供することを目的とする。 Therefore, an object of the present invention is to provide a communication control device and a communication log storage method that can avoid deleting the communication log at the time of initial error as much as possible without expanding the file size of the error log file. To do.
本発明による通信制御装置は、通信ログが、通信エラーが発生したときの通信ログであるエラーログであるのか、通信エラーが発生していないときの通信ログである通常通信ログであるのかを判定する通信ログ種別判定手段と、データの上書きが禁止されるように書き込み制御される第1エラーログ記憶手段(例えば、初期エラーログ保存部)と、既に全ての領域にデータが書き込まれている場合に新たに書き込み対象としてデータ発生したときにそのデータで最旧データが更新されるように書き込み制御される第2エラーログ記憶手段(例えば、循環エラーログ保存部)とを備え、通信ログ種別判定手段が、通信ログがエラーログであると判定した場合に、第1エラーログ記憶手段に空き領域が存在する場合に当該空き領域に通信ログを記憶させ、第1エラーログ記憶手段に空き領域が存在しないときには第2エラーログ記憶手段に通信ログを記憶させることを特徴とする。 The communication control device according to the present invention determines whether the communication log is an error log that is a communication log when a communication error occurs or a normal communication log that is a communication log when no communication error occurs Communication log type determination means, first error log storage means (for example, an initial error log storage unit) that is controlled to be overwritten so that overwriting of data is prohibited, and data has already been written in all areas And a second error log storage unit (for example, a circular error log storage unit) that is controlled so that the oldest data is updated with the data when new data is generated as a write target. When the means determines that the communication log is an error log, if there is an empty area in the first error log storage means, the communication log is recorded in the empty area. It is allowed, when no free area exists in the first error log storage means, characterized in that storing the communication log to the second error log storage unit.
通信制御装置が複数の通信回線に接続され、第1エラーログ記憶手段と第2エラーログ記憶手段とは、複数の通信回線のそれぞれにに応じて備えられ、通信ログ種別判定手段が、通信ログがどの通信回線で発生した通信エラーを示しているのかを判定し、判定結果に応じた第1エラーログ記憶手段および第2エラーログ記憶手段に通信ログを記憶させるように構成されていてもよい。 The communication control device is connected to a plurality of communication lines, and the first error log storage means and the second error log storage means are provided for each of the plurality of communication lines, and the communication log type determination means includes a communication log It may be configured to determine which communication line indicates a communication error and to store the communication log in the first error log storage unit and the second error log storage unit according to the determination result .
通信ログ種別判定手段が、通信ログがエラーログであると判定した場合に、第1エラーログ記憶手段に空き領域が存在しないときに、通信回線を介して接続されたコンピュータに障害が発生したことを示す情報を送信し、コンピュータの要求に応じて、通信ログを通信回線を介してコンピュータに送信するように構成されていてもよい。 When the communication log type determination means determines that the communication log is an error log, a failure has occurred in the computer connected via the communication line when there is no free space in the first error log storage means The communication log may be transmitted to the computer via a communication line in response to a request from the computer.
通信ログ種別判定手段が、通信ログを通信回線を介して接続されたコンピュータに送信した場合に、第1エラーログ記憶手段を、新たに発生した通信ログが書き込まれることが可能になるように初期化するように構成されていてもよい。 When the communication log type determination means transmits the communication log to a computer connected via a communication line, the first error log storage means is initialized so that a newly generated communication log can be written. You may be comprised so that it may become.
本発明による通信ログ保存方法は、データの上書きが禁止される第1エラーログ記憶手段を設け、既に全ての領域にデータが書き込まれている場合に新たに書き込み対象としてデータ発生したときにそのデータで最旧データが更新される第2エラーログ記憶手段を設け、通信ログが、通信エラーが発生したときの通信ログであるエラーログであるのか、通信エラーが発生していないときの通信ログである通常通信ログであるのかを判定し、通信ログがエラーログであると判定した場合に、第1エラーログ記憶手段に空き領域が存在する場合に当該空き領域に通信ログを保存し、第1エラーログ記憶手段に空き領域が存在しないときには第2エラーログ記憶手段に通信ログを保存することを特徴とする。 The communication log storage method according to the present invention includes first error log storage means for prohibiting overwriting of data, and when data is newly written as data to be written when data is already written in all areas, the data is stored. The second error log storage means for updating the oldest data is provided, and the communication log is an error log that is a communication log when a communication error occurs, or a communication log when no communication error occurs If it is determined whether the communication log is an error log, and it is determined that the communication log is an error log, the communication log is stored in the empty area when the first error log storage means has an empty area, and the first A communication log is stored in the second error log storage means when there is no free space in the error log storage means.
通信ログがエラーログであると判定した場合に、第1エラーログ記憶手段に空き領域が存在しないときに、通信回線を介して接続されたコンピュータに障害が発生したことを示す情報を送信し、コンピュータの要求に応じて、通信ログを通信回線を介してコンピュータに送信するように構成されていてもよい。 When it is determined that the communication log is an error log, when there is no free area in the first error log storage unit, information indicating that a failure has occurred in the computer connected via the communication line is transmitted, The communication log may be configured to be transmitted to the computer via a communication line in response to a request from the computer.
通信ログを通信回線を介して接続されたコンピュータに送信した場合に、第1エラーログ記憶手段を、新たに発生した通信ログが書き込まれることが可能になるように初期化するように構成されていてもよい。 It is configured to initialize the first error log storage means so that a newly generated communication log can be written when the communication log is transmitted to a computer connected via a communication line. May be.
本発明によれば、データの上書きが禁止されるように書き込み制御される第1エラーログ記憶手段に優先的にエラーログを書き込み、第1エラーログ記憶手段に空き領域がない場合には、循環的にデータの書き込み制御がなされる第2エラーログ記憶手段にエラーログを書き込むようにして、初期エラーログを消去しないようにすることができる。また、初期エラーログ以外のエラーログについても、ある程度の期間分保存することができる。 According to the present invention, the error log is preferentially written to the first error log storage means that is controlled to be overwritten so that overwriting of data is prohibited. It is possible to prevent the initial error log from being erased by writing the error log in the second error log storage means that is controlled to write data. Also, error logs other than the initial error log can be stored for a certain period.
通信ログ種別判定手段が、通信ログがどの通信回線で発生した通信エラーを示しているのかを判定し、判定結果に応じた第1エラーログ記憶手段および第2エラーログ記憶手段に通信ログを記憶させるように構成されている場合には、通信ログが各通信回線に応じた記憶手段に記憶されるので、複数の通信回線の通信ログを混在させて記憶させる場合に比べて、障害解析作業を容易にすることができる。 The communication log type determination unit determines which communication line the communication log indicates a communication error, and stores the communication log in the first error log storage unit and the second error log storage unit according to the determination result Communication logs are stored in the storage means corresponding to each communication line, so failure analysis work is performed compared to the case where the communication logs of a plurality of communication lines are mixed and stored. Can be easily.
通信ログ種別判定手段が、通信ログがエラーログであると判定した場合に、第1エラーログ記憶手段に空き領域が存在しないときに、通信回線を介して接続されたコンピュータに障害が発生したことを示す情報を送信し、コンピュータの要求に応じて、通信ログを通信回線を介してコンピュータに送信するように構成された場合には、コンピュータに通信ログを保存させることができる。 When the communication log type determination means determines that the communication log is an error log, a failure has occurred in the computer connected via the communication line when there is no free space in the first error log storage means When the communication log is configured to be transmitted to the computer via the communication line in response to a request from the computer, the computer can store the communication log.
実施の形態1.
本発明の第1の実施の形態について、図面を参照して説明する。図1は、本発明の第1の実施の形態の通信制御装置の構成例を示すブロック図である。
A first embodiment of the present invention will be described with reference to the drawings. FIG. 1 is a block diagram illustrating a configuration example of a communication control apparatus according to the first embodiment of this invention.
図1に示すように、第1の実施の形態の通信制御装置は、通信ログ種別判定部1と、通常通信ログ保存部2と、回線エラーログ保存部3とを含む。また、図1に示すように、回線エラーログ保存部3は、初期エラーログ保存部4と、循環エラーログ保存部5とを含む。なお、通信制御装置は、複数の通信回線に接続されている。そして、通信回線を介して他のコンピュータとデータを送受信する通信手段(図示せず)と、データの送受信を制御するデータ制御手段(図示せず)とを含む。なお、通信制御装置は、例えば、ハブやルータである。
As shown in FIG. 1, the communication control apparatus according to the first embodiment includes a communication log
初期エラーログ保存部4と循環エラーログ保存部5とは、複数の通信回線のそれぞれに対応して設けられている。各ログ保存部には、通信ログ種別判定部1によって通信ログが記憶される。なお、初期エラーログ保存部4には、管理者による書き込み許可の指示があるまで、通信ログの上書きが禁止される。
The initial error
通信ログ種別判定部1は、例えば、通信制御装置に搭載されたCPU、または通信回線を介して接続されたコンピュータに搭載されたCPUである。また、各ログ保存部は、例えば、通信制御装置または当該通信制御装置に接続されているコンピュータに内蔵されているメモリ等の記憶手段に設けられた領域である。以下、各ログ保存部は、通信制御装置に内蔵されているメモリに用意された領域(メモリ領域)であるとして説明する。なお、回線エラーログ保存部3は、接続されている各通信回線毎に用意されているとする。
The communication log
なお、通信制御装置には、コンピュータに、通信エラーが発生したときの通信ログであるエラーログであるのか、または通信エラーが発生していないときの通信ログである通常通信ログであるのかを判定する通信ログ種別判定処理と、通信ログ種別判定処理で通信ログがエラーログであると判定し、初期エラーログ保存部4に空き領域が存在する場合に当該空き領域に通信ログを記憶させ、初期エラーログ保存部4に空き領域が存在しない場合に循環エラーログ保存部5に通信ログを記憶させる通信ログ保存処理とを実行させるための通信ログ保存プログラムが搭載されている。
The communication control device determines whether the computer is an error log that is a communication log when a communication error occurs or a normal communication log that is a communication log when no communication error has occurred. Communication log type determination processing and communication log type determination processing to determine that the communication log is an error log, and if there is a free area in the initial error
図2は、通信ログの例を示す説明図である。なお、通信ログには、障害(通信エラー)が発生した場合の通信ログであるエラーログと、障害(通信エラー)が発生していない場合の通信ログである通常通信ログとがある。図2(a)は、通信ログのフォーマットを示す説明図である。図2(b)は、エラーログの一例を示す説明図である。図2(c)は、通常通信ログの一例を示す説明図である。 FIG. 2 is an explanatory diagram illustrating an example of a communication log. Note that the communication log includes an error log that is a communication log when a failure (communication error) occurs and a normal communication log that is a communication log when no failure (communication error) occurs. FIG. 2A is an explanatory diagram showing a format of a communication log. FIG. 2B is an explanatory diagram illustrating an example of an error log. FIG. 2C is an explanatory diagram illustrating an example of a normal communication log.
図2(a)に示すように、通信ログは、当該通信ログの種別を示すログ種別情報と、障害が発生した場所(通信回線)を示す障害箇所情報と、通信ログの内容を示すログメッセージ情報とを含む。 As shown in FIG. 2A, the communication log includes log type information indicating the type of the communication log, failure location information indicating the location (communication line) where the failure occurred, and a log message indicating the content of the communication log. Information.
図2(b)に示す例では、通信ログに、通信ログの種別がエラーログであることを示す(図2(b)に示す例では「ERROR」)ログ種別情報と、第1の通信回線で障害が発生したことを示す(図2(b)に示す例では「Line 1」)障害箇所情報と、通信ログの内容(図2(b)に示す例では「Alarm Detection」)を示すログメッセージ情報とが含まれている。
In the example shown in FIG. 2B, log type information indicating that the type of communication log is an error log (“ERROR” in the example shown in FIG. 2B) and the first communication line in the communication log. (“
図2(c)に示す例では、通信ログに、通信ログの種別が通常通信ログであることを示す(図2(c)に示す例では「INFO」)ログ種別情報と、第1の通信回線の通信ログであることを示す(図2(c)に示す例では「Line 1」)障害箇所情報と、通信ログの内容(図2(c)に示す例では「Link status UP」)を示すログメッセージ情報とが含まれている。
In the example shown in FIG. 2C, the communication log includes log type information indicating that the type of the communication log is a normal communication log (“INFO” in the example shown in FIG. 2C), and the first communication. The failure location information indicating that the communication log is a line (“
図3は、通信ログ種別判定部1が通信ログの書き込み要求を入力された場合の動作を示すフローチャートである。なお、通信ログ種別判定部1には、前述した通信手段またはデータ制御手段によって通信ログの書き込み要求が入力される。
FIG. 3 is a flowchart showing an operation when the communication log
図3に示すように、通信ログ種別判定部1は、通信ログの書き込み要求を入力された場合に、通信ログに含まれているログ種別情報にもとづいて、当該通信ログがエラーログであるのか、または通常通信ログであるのかを判定する(ステップS101,S102)。
As shown in FIG. 3, when a communication log write request is input, the communication log
具体的には、通信ログ種別判定部1は、ログ種別情報に「ERROR」の文字列が含まれている通信ログをエラーログであると判定し(ステップS102のY)、ログ種別情報に「ERROR」の文字列が含まれていない通信ログを通常通信ログであると判定する(ステップS102のN)。
Specifically, the communication log
通信ログ種別判定部1は、通信ログが通常通信ログであると判定した場合には(ステップS102のN)、通常通信ログ保存部2に、通信ログをサイクリックに記憶させる(ステップS103)。具体的には、通信ログ種別判定部1は、通信ログをメモリ領域における通常通信ログ保存部2の先頭から順番に記憶させるのであるが、通信ログが通常通信ログ保存部2の最後まで記憶されている場合には、最旧の通信ログ(最も過去に発生した通信ログ)に新たな通信ログを上書きする。
When the communication log
図4は、ステップS103の通信ログを通常通信ログ保存部2に記憶させる動作を説明するフローチャートである。通信ログ種別判定部1は、通信ログを通常通信ログ保存部2に記憶させる(ステップS201)。
FIG. 4 is a flowchart for explaining the operation of storing the communication log in step S103 in the normal communication
そして、通信ログ種別判定部1は、通信ログを記憶させる領域を示す書き込みポインタを更新する(ステップS202)。具体的には、通信ログ種別判定部1は、通常通信ログ保存部2におけるステップS201の処理で通信ログが記憶された領域の次の領域を示すように書き込みポインタを更新する。なお、書き込みポインタが通常通信ログ保存部2の最後の次を指した場合には、通常通信ログ保存部2における先頭の領域を示すように書き込みポインタを更新する。
Then, the communication log
通信ログ種別判定部1は、通信ログがエラーログであると判定した場合には(ステップS102のY)、回線エラーログ保存部3にエラーログを記憶させる(ステップS104)。
If the communication log
図5は、ステップS104の通信ログを回線エラーログ保存部3に記憶させる動作を説明するフローチャートである。 FIG. 5 is a flowchart for explaining the operation of storing the communication log in step S104 in the line error log storage unit 3.
通信ログ種別判定部1は、障害が発生した箇所(障害が発生した通信回線の回線番号)を判定する(ステップS301)。具体的には、通信ログ種別判定部1は、通信ログに含まれる障害箇所情報から障害が発生した通信回線の回線番号を取得する。
The communication log
通信ログ種別判定部1は、メモリ領域における取得した回線番号に対応する初期エラーログ保存部4の空き領域の有無にもとづいて、初期エラーログ保存部4に通信ログを記憶させるか否かを判定する(ステップS302)。
The communication log
取得した回線番号に対応する初期エラーログ保存部4に空き領域が存在する場合には(ステップS302のY)、通信ログ種別判定部1は、取得した回線番号に対応する初期エラーログ保存部4に通信ログを記憶させる(ステップS304)。なお、初期エラーログ保存部4には管理者によって過去の通信ログが消去された後に空き領域が用意される。つまり、初期エラーログ保存部4には、管理者によって当該初期エラーログ保存部4に記憶されていた過去の通信ログが消去された後、最初に生成されたエラーログが記憶される。
If there is an empty area in the initial error
取得した回線番号に対応する初期エラーログ保存部4に空き領域が存在しない場合には(ステップS302のN)、通信ログ種別判定部1は、取得した回線番号に対応する循環エラーログ保存部5に通信ログをサイクリックに記憶させる(ステップS303)。具体的には、通信ログ種別判定部1は、通信ログをメモリ領域における取得した回線番号に対応する循環エラーログ保存部5の先頭から順番に記憶させるのであるが、循環エラーログ保存部5の全ての領域に既にデータ(通信ログ)が保存されている場合には、最旧の通信ログ(最も過去に発生した通信ログ)に新たな通信ログを上書きする。
If there is no free area in the initial error
本実施の形態では、初期エラーログ保存部4に空き領域が存在する場合に、初期エラーログ保存部4に通信ログを記憶させ、初期エラーログ保存部4には、管理者による書き込み許可の指示があるまで、通信ログの上書きが禁止されるので、障害解析のために重要な情報となる最初のエラーログが消失することを防ぐことができる。また、初期エラーログ保存部4に空き領域がなくなった場合には循環エラーログ保存部5にエラーログが保存されるので、初期エラー以外のエラーを示す通信ログについて直近のものが保存され、エラー解析に役立たせることができる。
In the present embodiment, when there is an empty area in the initial error
実施の形態2.
本発明の第2の実施の形態について、図面を参照して説明する。図6は、本発明の第2の実施の形態の通信制御装置の構成例を示すブロック図である。
A second embodiment of the present invention will be described with reference to the drawings. FIG. 6 is a block diagram illustrating a configuration example of the communication control apparatus according to the second embodiment of this invention.
図6に示すように、第2の実施の形態の通信制御装置は、通信ログ種別判定部1と、通常通信ログ保存部2と、回線エラーログ保存部3と、回線エラーログ送信部6と、エラーログ領域初期化部9とを含む。また、図5に示すように、回線エラーログ送信部6は、アラーム通知部7と、エラーログ取得要求監視部8とを含む。
As shown in FIG. 6, the communication control apparatus according to the second embodiment includes a communication log
なお、通信ログ種別判定部1、通常通信ログ保存部2、および回線エラーログ保存部3の構成は、図1に示す第1の実施の形態における構成と同様なため、図1と同じ符号を付し、説明を省略する。
The configurations of the communication log
図7は、第2の実施の形態の通信ログ種別判定部1が通信ログの書き込み要求を入力された場合の動作を示すフローチャートである。
FIG. 7 is a flowchart illustrating an operation when the communication log
通信ログ種別判定部1は、第1の実施の形態の場合と同様に、通信ログの書き込み要求を入力された場合に、通信ログに含まれているログ種別情報にもとづいて、当該通信ログがエラーログであるのか、または通常通信ログであるのかを判定する(ステップS101,S102)。通信ログが通常通信ログであると判定した場合には(ステップS102のN)、通常通信ログ保存部2に、通信ログをサイクリックに記憶させる(ステップS103)。通信ログ種別判定部1は、通信ログがエラーログであると判定した場合には(ステップS102のY)、回線エラーログ保存部3にエラーログを記憶させる(ステップS104)。
As in the case of the first embodiment, the communication log
次に、通信ログ種別判定部1は、メモリ領域における初期エラーログ保存部4に空き領域があるか否か判定する(ステップS405)。
Next, the communication log
メモリ領域における初期エラーログ保存部4に空き領域がない(フル(full)である)場合には(ステップS405のY)、通信ログ種別判定部1は、管理者に対してアラームを通知する(ステップS406)。管理者へのアラームの通知は、例えば、予め登録されている管理者の電子メールアドレスに、障害(通信エラー)が発生し、かつ、初期エラーログ保存部4に空き領域が存在しないことを示す電子メールアドレスを送信すること等によって実現される。管理者は、アラームの通知に気付いた場合には、コンピュータ等から、通信ネットワークを介してエラーログの送信を指示する情報を通信制御装置に送信する。
If the initial error
通信ログ種別判定部1は、管理者からエラーログ取得要求を受信した場合(具体的には、所定の時間内に、管理者によって操作がなされたコンピュータ等からエラーログの送信を指示する情報を受信した場合)には(ステップS407のY)、エラーログである通信ログ(初期エラーログ保存部4に保存されている通信ログおよび循環エラーログ保存部5にに保存されている通信ログ)を管理者によって管理されるコンピュータ等に通信ネットワークを介して送信する(ステップS408)。コンピュータ等は、受信した通信ログを保存する。
When the communication log
通信ログを送信した場合には、通信ログ種別判定部1は、メモリ領域における初期エラーログ保存部4への通信ログの上書きが許可されたと判断し、メモリ領域における初期エラーログ保存部4の書き込み領域を示す書き込みポインタを初期化する。すなわち、各保存部の先頭を指すように書き込みポインタの値を変更する(ステップS409)。なお、循環エラーログ保存部5の書き込み領域を示す書き込みポインタも初期化する。通信ログ種別判定部1は、書き込みポインタの位置を初期化したときに、初期エラーログ保存部4および循環エラーログ保存部5に対応するメモリ領域を初期化(クリア)してもよい。
When the communication log is transmitted, the communication log
本実施の形態によれば、初期エラーログ保存部4に空き領域が存在しなくなった場合に、管理者にアラームを通知し、指示に応じて通信ログを送信することによって、エラーログをコンピュータ等に保存させることができる。よって、初期エラーログ保存部4に保存されていた通信ログを消去しても問題はなく、新たに発生した通信ログが書き込まれることが可能になるように初期エラーログ保存部4を初期化することによって、新たに発生したエラーログを初期エラーログ保存部4に書き込みことができるようになる。
According to the present embodiment, when there is no more free space in the initial error
本発明は、通信回線に接続されデータの送受信を制御する通信制御装置に好適に適用される。 The present invention is preferably applied to a communication control apparatus that is connected to a communication line and controls transmission / reception of data.
1 通信ログ種別判定部
2 通常通信ログ保存部
3 回線エラーログ保存部
4 初期エラーログ保存部
5 循環エラーログ保存部
6 回線エラーログ送信部
7 アラーム通知部
8 エラーログ取得要求監視部
9 エラーログ領域初期化部
1 Communication log
Claims (7)
通信ログが、通信エラーが発生したときの通信ログであるエラーログであるのか、通信エラーが発生していないときの通信ログである通常通信ログであるのかを判定する通信ログ種別判定手段と、
データの上書きが禁止されるように書き込み制御される第1エラーログ記憶手段と、
既に全ての領域にデータが書き込まれている場合に新たに書き込み対象としてデータ発生したときにそのデータで最旧データが更新されるように書き込み制御される第2エラーログ記憶手段とを備え、
前記通信ログ種別判定手段は、通信ログがエラーログであると判定した場合に、前記第1エラーログ記憶手段に空き領域が存在する場合に当該空き領域に通信ログを記憶させ、前記第1エラーログ記憶手段に空き領域が存在しないときには前記第2エラーログ記憶手段に通信ログを記憶させる
ことを特徴とする通信制御装置。 In the communication control device connected to the communication line,
A communication log type determining means for determining whether the communication log is an error log that is a communication log when a communication error occurs or a normal communication log that is a communication log when a communication error has not occurred;
First error log storage means that is write-controlled so that overwriting of data is prohibited;
A second error log storage means that is controlled so that the oldest data is updated with the data when data is newly generated when the data has already been written in all areas,
When the communication log type determination unit determines that the communication log is an error log, if the first error log storage unit includes a free area, the communication log type determination unit stores the communication log in the free area, and the first error log A communication control device, wherein a communication log is stored in the second error log storage means when there is no free space in the log storage means.
第1エラーログ記憶手段と第2エラーログ記憶手段とは、複数の通信回線のそれぞれにに応じて備えられ、
通信ログ種別判定手段は、通信ログがどの通信回線で発生した通信エラーを示しているのかを判定し、判定結果に応じた第1エラーログ記憶手段および第2エラーログ記憶手段に通信ログを記憶させる
請求項1記載の通信制御装置。 The communication control device is connected to a plurality of communication lines,
The first error log storage means and the second error log storage means are provided according to each of a plurality of communication lines,
The communication log type determination unit determines which communication line the communication log indicates a communication error, and stores the communication log in the first error log storage unit and the second error log storage unit according to the determination result The communication control device according to claim 1.
請求項1または請求項2記載の通信制御装置。 When the communication log type determination means determines that the communication log is an error log, a failure has occurred in the computer connected via the communication line when there is no free space in the first error log storage means. The communication control apparatus according to claim 1, wherein the communication control apparatus transmits information indicating the communication information and transmits the communication log to the computer via the communication line in response to a request from the computer.
請求項3記載の通信制御装置。 The communication log type determination unit is configured to initialize the first error log storage unit so that a newly generated communication log can be written when the communication log is transmitted to a computer connected via a communication line. The communication control device according to claim 3.
データの上書きが禁止されるように書き込み制御される第1エラーログ記憶手段を設け、
既に全ての領域にデータが書き込まれている場合に新たに書き込み対象としてデータ発生したときにそのデータで最旧データが更新されるように書き込み制御される第2エラーログ記憶手段を設け、
通信ログが、通信エラーが発生したときの通信ログであるエラーログであるのか、通信エラーが発生していないときの通信ログである通常通信ログであるのかを判定し、
通信ログがエラーログであると判定した場合に、前記第1エラーログ記憶手段に空き領域が存在する場合に当該空き領域に通信ログを保存し、前記第1エラーログ記憶手段に空き領域が存在しないときには前記第2エラーログ記憶手段に通信ログを保存する
ことを特徴とする通信ログ保存方法。 In a communication log storage method for storing a communication log generated in a communication control device connected to a communication line in a storage means,
A first error log storage means that is write-controlled so that overwriting of data is prohibited;
A second error log storage means for controlling writing so that the oldest data is updated with new data when data is newly generated when data has already been written in all areas;
Determine whether the communication log is an error log that is a communication log when a communication error occurs, or a normal communication log that is a communication log when a communication error has not occurred,
When it is determined that the communication log is an error log, if there is an empty area in the first error log storage means, the communication log is saved in the empty area, and there is an empty area in the first error log storage means If not, a communication log is stored in the second error log storage means.
請求項5記載の通信ログ保存方法。 When it is determined that the communication log is an error log, when there is no free area in the first error log storage unit, information indicating that a failure has occurred in the computer connected via the communication line is transmitted, The communication log storage method according to claim 5, wherein the communication log is transmitted to the computer via the communication line in response to a request from the computer.
請求項6記載の通信ログ保存方法。 When the communication log is transmitted to the computer connected via the communication line and the communication log is transmitted to the computer connected via the communication line, the first error log storage means is set to the newly generated communication log. The communication log storage method according to claim 6, wherein initialization is performed so that can be written.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2007102894A JP2008262287A (en) | 2007-04-10 | 2007-04-10 | Communication control device and communication log storage method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2007102894A JP2008262287A (en) | 2007-04-10 | 2007-04-10 | Communication control device and communication log storage method |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2008262287A true JP2008262287A (en) | 2008-10-30 |
Family
ID=39984736
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2007102894A Pending JP2008262287A (en) | 2007-04-10 | 2007-04-10 | Communication control device and communication log storage method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2008262287A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2014102717A (en) * | 2012-11-21 | 2014-06-05 | Mitsubishi Electric Corp | System test support apparatus |
JP2016062150A (en) * | 2014-09-16 | 2016-04-25 | 京セラ株式会社 | Communication apparatus and communication apparatus log storage method |
JP2017054365A (en) * | 2015-09-10 | 2017-03-16 | 富士通株式会社 | Information processor, log recording method, and log recording program |
JP2020088806A (en) * | 2018-11-30 | 2020-06-04 | キヤノン株式会社 | Information processing device, control method thereof, and program |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH03105434A (en) * | 1989-09-20 | 1991-05-02 | Fujitsu Ltd | Error logging system |
JPH08328970A (en) * | 1995-05-30 | 1996-12-13 | Fuji Xerox Co Ltd | Log possessing system for equipment to be managed |
JP2004348315A (en) * | 2003-05-21 | 2004-12-09 | Fanuc Ltd | Control device with communication interface |
JP2005094716A (en) * | 2003-09-22 | 2005-04-07 | Yokogawa Electric Corp | Communication system |
-
2007
- 2007-04-10 JP JP2007102894A patent/JP2008262287A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH03105434A (en) * | 1989-09-20 | 1991-05-02 | Fujitsu Ltd | Error logging system |
JPH08328970A (en) * | 1995-05-30 | 1996-12-13 | Fuji Xerox Co Ltd | Log possessing system for equipment to be managed |
JP2004348315A (en) * | 2003-05-21 | 2004-12-09 | Fanuc Ltd | Control device with communication interface |
JP2005094716A (en) * | 2003-09-22 | 2005-04-07 | Yokogawa Electric Corp | Communication system |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2014102717A (en) * | 2012-11-21 | 2014-06-05 | Mitsubishi Electric Corp | System test support apparatus |
JP2016062150A (en) * | 2014-09-16 | 2016-04-25 | 京セラ株式会社 | Communication apparatus and communication apparatus log storage method |
JP2017054365A (en) * | 2015-09-10 | 2017-03-16 | 富士通株式会社 | Information processor, log recording method, and log recording program |
JP2020088806A (en) * | 2018-11-30 | 2020-06-04 | キヤノン株式会社 | Information processing device, control method thereof, and program |
JP7309349B2 (en) | 2018-11-30 | 2023-07-18 | キヤノン株式会社 | Information processing device, its control method, and program |
US11733948B2 (en) | 2018-11-30 | 2023-08-22 | Canon Kabushiki Kaisha | Information processing apparatus and control method for storing an operation log |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JPWO2014167721A1 (en) | Data erasing device, data erasing method, program, and storage medium | |
JP2014515858A (en) | Method and apparatus for recombining executing instructions | |
JP4641443B2 (en) | Log information management apparatus, log information management method, and log information management program | |
CN106033322A (en) | Method and device for data storage | |
US7523319B2 (en) | System and method for tracking changed LBAs on disk drive | |
JP2008262287A (en) | Communication control device and communication log storage method | |
JP2010152838A (en) | Image forming device, control method and program | |
US20140337301A1 (en) | Big data extraction system and method | |
JP2009265877A (en) | Electronic apparatus | |
JP2008033527A (en) | Storage device, disk device and data restoring method | |
JP4894567B2 (en) | Trace information output device and trace information output method | |
KR101576370B1 (en) | System and method for remote restoration of computer system, and computer-readable recording medium with program therefor | |
WO2005103909A1 (en) | Security maintenance method, data accumulation device, security maintenance server, and recording medium containing the program | |
CN105511904B (en) | A kind of method and device automatically updating quick window | |
JP2009009323A (en) | Setting device, electronic equipment, and setting program | |
JP2008165606A (en) | Electronic equipment and program to be executed by computer | |
JP4897359B2 (en) | MEMORY MANAGEMENT DEVICE, MEMORY MANAGEMENT METHOD, AND PROGRAM | |
JP2007072695A (en) | Redundancy storage method and program to flash memory | |
US9606929B2 (en) | Simulated NVRAM | |
CN112486511A (en) | Method for generating operating system installation mirror image through web | |
JP2007299126A (en) | Controller and program for controller | |
US20060156058A1 (en) | Data management apparatus, data management method and data management program | |
JP2014106826A (en) | Print control device, data management method, and program | |
JP4707335B2 (en) | Storage device, image forming apparatus, and file server | |
US20240053933A1 (en) | Printing apparatus, control method of printing apparatus, and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20100126 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20100907 |
|
A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20110105 |