JPH0844596A - Command log recording system - Google Patents

Command log recording system

Info

Publication number
JPH0844596A
JPH0844596A JP6198949A JP19894994A JPH0844596A JP H0844596 A JPH0844596 A JP H0844596A JP 6198949 A JP6198949 A JP 6198949A JP 19894994 A JP19894994 A JP 19894994A JP H0844596 A JPH0844596 A JP H0844596A
Authority
JP
Japan
Prior art keywords
message
command
write
pointer
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.)
Granted
Application number
JP6198949A
Other languages
Japanese (ja)
Other versions
JP2692605B2 (en
Inventor
Koji Yanatori
弘司 梁取
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 JP6198949A priority Critical patent/JP2692605B2/en
Publication of JPH0844596A publication Critical patent/JPH0844596A/en
Application granted granted Critical
Publication of JP2692605B2 publication Critical patent/JP2692605B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Abstract

PURPOSE:To dispense with a message accumulation means other than a log file by suppressing message recording by changing a write position after a command message is written on the log file once. CONSTITUTION:When a command 12 is started up by a system control means 11, a log recording means 13 saves the write start position of an execution message from a write pointer 16 to a preservation pointer 17. Thence, a log write means 15 writes the command message outputted from the command 12 on the log file 14 until the execution of the command 12 is completed. The command message is written on the log file 14 from the write start position instructed by the write pointer 16, and the value of write pointer is updated at every write of the message. When the processing of the command is completed normally, a message suppression flag is read in, and when suppression is designated, the write start position is taken out from the preservation pointer 17, and it is set on the write pointer 16.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、コマンドログ記録方式
に関し、特に情報処理システムにおけるコマンド実行メ
ッセージの記録方式に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a command log recording system, and more particularly to a command execution message recording system in an information processing system.

【0002】[0002]

【従来の技術】従来の転送メッセージ記録方式として、
例えば特開平2-310662号公報には、図4に示すように、
システム制御手段41と、コマンド42と、1コマンド
分の実行メッセージを一旦蓄積するメッセージ蓄積手段
43と、蓄積されたメッセージを記録するログ記録手段
44と、記録を抑制するか否かを設定するメッセージ抑
止フラグ45と、メッセージログを記録するログファイ
ル46を有して成る転送メッセージ記録方式が開示され
ている。
2. Description of the Related Art As a conventional transfer message recording method,
For example, in Japanese Patent Laid-Open No. 2-310662, as shown in FIG.
A system control unit 41, a command 42, a message storage unit 43 for temporarily storing an execution message for one command, a log recording unit 44 for recording the accumulated messages, and a message for setting whether or not to suppress the recording. A transfer message recording method is disclosed which includes a suppression flag 45 and a log file 46 for recording a message log.

【0003】システム制御手段41は、コマンド52を
起動する。コマンド52が出力するメッセージはメッセ
ージ蓄積手段43へ一旦蓄積される。
The system control means 41 activates a command 52. The message output by the command 52 is temporarily stored in the message storage means 43.

【0004】コマンド42が終了すると、ログ記録手段
44は、正常終了の場合メッセージ抑止フラグ45を参
照し、抑止指定がなされていない場合のみ、メッセージ
蓄積手段43に蓄積されているメッセージをログファイ
ル46へ記録する。
When the command 42 is completed, the log recording means 44 refers to the message suppression flag 45 in the case of normal termination, and only when the suppression specification is not made, the log recording means 44 stores the message stored in the message storage means 43 in the log file 46. Record to.

【0005】これにより、正常メッセージの記録を必要
に応じて抑止することができ、ログファイル46への蓄
積データ量を削減することが可能とされるている。
As a result, the recording of the normal message can be suppressed as necessary, and the amount of data accumulated in the log file 46 can be reduced.

【0006】[0006]

【発明が解決しようとする課題】しかしながら、前記従
来のコマンドメッセージ記録方式では、1回分のコマン
ド実行メッセージを一旦メッセージ蓄積手段に蓄積し
て、コマンド実行完了後にログファイルへの記録を行う
ために、ログファイルとは別に、メッセージを蓄積する
手段が必要になるという問題がある。
However, in the above-mentioned conventional command message recording system, in order to temporarily store one command execution message in the message storage means and record it in the log file after the command execution is completed, There is a problem that a means for accumulating messages is required separately from the log file.

【0007】また、例えば、コマンド実行途中にシステ
ムがダウンした場合等において、メッセージ蓄積手段か
らログファイルへの記録が行われないため、コマンド実
行開始からシステムダウンまでのコマンド実行途中のメ
ッセージがログファイルに記録されないという問題があ
る。
Further, for example, when the system goes down during the execution of the command, the message is not recorded in the log file from the message accumulating means, so that the message during the command execution from the start of the command execution to the system down is displayed in the log file. There is a problem that is not recorded in.

【0008】従って、本発明は、前記問題点を解消し、
正常終了時にログ記録を抑止するコマンドログ記録方式
において、ログファイル以外のメッセージ蓄積手段を不
要にするコマンドログ記録方式を提供することを目的と
する。
Therefore, the present invention solves the above problems,
It is an object of the present invention to provide a command log recording method that suppresses log recording at normal termination and that does not require a message accumulating means other than a log file.

【0009】[0009]

【課題を解決するための手段】前記目的は、本発明によ
れば、コマンドの実行メッセージをログファイルに記録
する方式において、コマンド実行時にコマンドメッセー
ジをログファイルに書込む手段と、書込開始位置を保存
する保存ポインタと、前記保存ポインタより前記書込開
始位置を書込ポインタに復帰させることによりメッセー
ジ記録を抑止する手段と、を具備するログ記録手段を有
することを特徴とするコマンドログ記録方式、によって
達成される。
According to the present invention, in the method of recording a command execution message in a log file, a means for writing the command message in the log file when the command is executed and a write start position are provided. A command log recording method, comprising: a save pointer that saves a message; and a log recording unit that suppresses message recording by returning the write start position from the save pointer to the write pointer. Achieved by.

【0010】本発明においては、前記メッセージ記録を
抑止する手段は、メッセージ抑止フラグが抑止指定を示
す時に、前記保存ポインタより前記書込開始位置を前記
書込ポインタに復帰させるように構成されている。
In the present invention, the means for inhibiting the message recording is configured to restore the write start position from the save pointer to the write pointer when the message inhibit flag indicates inhibition specification. .

【0011】また、本発明は、好ましい態様において、
前記ログ記録手段は、コマンドの実行メッセージを前記
ログファイルに書込む際に、前記書込ポインタの現在の
書込開始位置を前記保存ポインタに退避した後に、前記
書込開始位置から前記コマンドが出力するメッセージを
前記ログファイルに書込み、前記コマンドが正常終了し
た場合において、メッセージ抑止フラグが抑止指定を示
す時に、前記保存ポインタより前記書込開始位置を前記
書込ポインタに復帰させるように、制御する。
The present invention also provides, in a preferred embodiment,
When the command execution message is written to the log file, the log recording unit saves the current write start position of the write pointer to the save pointer, and then outputs the command from the write start position. A message to be written to the log file, and when the command ends normally, control is performed so that the write start position is restored from the save pointer to the write pointer when the message inhibit flag indicates inhibition specification. .

【0012】[0012]

【作用】上記構成のもと、本発明によれば、ログ記録手
段は一旦ログファイルにメッセージを書込んだ後に、書
込位置を保存しておいた書込位置に戻すことにより、メ
ッセージ記録抑止を行う。
According to the present invention having the above structure, the log recording means writes the message in the log file once, and then returns the write position to the saved write position, thereby suppressing the message recording. I do.

【0013】従って、コマンドメッセージを一旦ログフ
ァイルに書込むことによりログファイルと別のメッセー
ジ蓄積を行う手段が不要になり、またシステムダウン発
生時等コマンドが異常終了した場合においても、途中ま
でのコマンドメッセージの記録をログファイル上に行う
ことができる。
Therefore, by temporarily writing the command message to the log file, a means for accumulating a message different from the log file becomes unnecessary, and even when the command is abnormally terminated such as when the system goes down, the command up to the middle is completed. Messages can be recorded in the log file.

【0014】[0014]

【実施例】以下、本発明の実施例について図面を参照し
て説明する。
Embodiments of the present invention will be described below with reference to the drawings.

【0015】図1は本発明の一実施例の構成を示す図で
ある。
FIG. 1 is a diagram showing the configuration of an embodiment of the present invention.

【0016】図1に示すように、本実施例は、システム
制御手段11と、コマンド12と、メッセージの記録を
制御するログ記録手段13と、記録を抑制するか否かを
設定するメッセージ制御情報を保持するメッセージ抑止
フラグ18と、メッセージログを記録するログファイル
14とから構成され、更に、ログ記録手段13は、ログ
書込手段15、現在の書込位置を示す書込ポインタ1
6、及び、書込位置を退避するための保存ポインタ17
と、を含む。
As shown in FIG. 1, in the present embodiment, the system control means 11, the command 12, the log recording means 13 for controlling the recording of the message, and the message control information for setting whether or not to suppress the recording. And a log file 14 for recording a message log. Further, the log recording means 13 includes a log writing means 15 and a write pointer 1 indicating the current writing position.
6, and a save pointer 17 for saving the write position
And, including.

【0017】システム制御手段11はコマンド12を起
動する。コマンド12が発生するメッセージはログ記録
手段13を介して、ログファイル14へ記録される。
The system control means 11 activates the command 12. The message generated by the command 12 is recorded in the log file 14 via the log recording means 13.

【0018】メッセージ抑止フラグ18は、出力された
メッセージの出力の可否を指示するためのフラグであ
り、システム制御手段11によりセットされる。
The message suppression flag 18 is a flag for instructing whether to output the output message, and is set by the system control means 11.

【0019】次に、図2及び図3を参照して、ログ記録
手段13の動作を説明する。
Next, the operation of the log recording means 13 will be described with reference to FIGS.

【0020】システム制御手段11によりコマンド12
が起動されると、ログ記録手段13は、実行メッセージ
の書込開始位置32を書込ポインタ16から保存ポイン
タ17へ退避する(ステップS1)。
Command 12 by the system control means 11
When is started, the log recording means 13 saves the write start position 32 of the execution message from the write pointer 16 to the save pointer 17 (step S1).

【0021】次に、コマンド12の実行が終了するま
で、即ちメッセージ転送が終了するまで(ステップS
2)、ログ書込手段15は、コマンド12が出力するコ
マンドメッセージをログファイル14へ書込む(ステッ
プS3)。図3(A)に示すように、ログファイル14
には、書込ポインタ16で指示される書込開始位置32
からコマンドメッセージ33が書込まれ、メッセージの
書込毎に書込ポインタ34の値が更新される。
Next, until the execution of the command 12 is completed, that is, the message transfer is completed (step S
2), the log writing means 15 writes the command message output by the command 12 to the log file 14 (step S3). As shown in FIG. 3A, the log file 14
At the write start position 32 designated by the write pointer 16.
The command message 33 is written from, and the value of the write pointer 34 is updated every time the message is written.

【0022】コマンドが正常終了した場合には(ステッ
プS4)、メッセージ抑止フラグを読込み(ステップS
5)、抑止指定がされていれば(ステップS6)、保存
ポインタ17より書込開始位置32を取り出し、書込ポ
インタ16へセットする。
When the command ends normally (step S4), the message suppression flag is read (step S4).
5) If the inhibition is designated (step S6), the write start position 32 is taken out from the save pointer 17 and set in the write pointer 16.

【0023】次のコマンド実行時には、コマンドメッセ
ージは、再度、書込開始位置32よりログファイル14
に書込まれるため、前のコマンドメッセージは上書きさ
れ、結局、前のコマンドメッセージの書込みが行われな
かったのと同一の効果が得られる(図3(B)参照)。
When the next command is executed, the command message starts again from the write start position 32 in the log file 14
Since the previous command message is overwritten, the same effect as if the previous command message was not written is obtained (see FIG. 3B).

【0024】コマンド12が異常終了した場合、もしく
は、メッセージ記録の抑止指定が行われていない場合、
そのまま終了するため、ログファイル14にはコマンド
メッセージ34が記録される(図3(C)参照)。
If the command 12 terminates abnormally, or if message record suppression is not specified,
Since the process ends as it is, the command message 34 is recorded in the log file 14 (see FIG. 3C).

【0025】以上説明したように、本実施例によれば、
一旦ログファイルへコマンドメッセージを書込んだ後
に、書込ポインタの切替のみでメッセージ出力の抑制を
行うため、コマンド実行中にシステムダウンが発生した
時も、途中までのコマンドメッセージの記録を行うこと
ができ、またメッセージ蓄積手段を省略することができ
る。
As described above, according to this embodiment,
After writing the command message to the log file once, the message output is suppressed only by switching the write pointer, so even if the system goes down during command execution, the command message can be recorded up to the middle. And the message storage means can be omitted.

【0026】そして、本実施例によれば、(1)ログファ
イル以外のメッセージ蓄積手段が不要になり、(2)コマ
ンド実行中にシステム全体がダウンした時も途中までの
コマンドメッセージをログファイルに記録することがで
きる、という利点を有する。
According to this embodiment, (1) message storage means other than the log file is unnecessary, and (2) even if the entire system goes down during command execution, the command messages up to the middle are written in the log file. It has the advantage that it can be recorded.

【0027】[0027]

【発明の効果】以上説明したように、本発明によれば、
書込位置保存手段を有し、コマンドメッセージを一旦ロ
グファイルへ書込んだ後に、書込位置の変更を行うこと
により、メッセージ記録抑止を行う構成としたことによ
り以下に示す効果がある。
As described above, according to the present invention,
The following effects can be obtained by having a writing position storage means, which temporarily writes the command message in the log file and then changes the writing position to suppress the message recording.

【0028】ログファイル以外のメッセージ蓄積手段
が不要になる。
Message storage means other than the log file becomes unnecessary.

【0029】コマンド実行中にシステム全体がダウン
した時も、途中までのコマンドメッセージをログファイ
ルに記録することができる。
Even when the entire system goes down during command execution, command messages up to the middle can be recorded in the log file.

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

【図1】本発明の一実施例の構成を示すブロック図であ
る。
FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention.

【図2】本発明におけるログ記録手段の処理フローを示
す流れ図である。
FIG. 2 is a flowchart showing a processing flow of a log recording means in the present invention.

【図3】(A)コマンドメッセージのログファイルへの
書込の様子を説明する図である。 (B)正常終了でかつ抑止指定がある場合、保存ポイン
タから書込開始情報が復帰された書込ポインタの位置を
説明する図である。 (C)異常終了もしくは抑止指定のない場合の転送終了
時の書込ポインタの位置を説明する図である。
FIG. 3A is a diagram for explaining how a command message is written in a log file. FIG. 9B is a diagram illustrating the position of the write pointer where the write start information is restored from the save pointer when the termination is normal and the inhibition is designated. (C) is a diagram for explaining the position of the write pointer at the end of transfer when there is no abnormal end or no suppression designation.

【図4】従来のコマンドログ記録方式の構成を示す図で
ある。
FIG. 4 is a diagram showing a configuration of a conventional command log recording system.

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

11 システム制御手段 12 コマンド 13 ログ記録手段 14 ログファイル 15 書込手段 16 書込ポインタ 17 保存ポインタ 31 前コマンドメッセージ 32 書込開始位置 33 コマンドメッセージ 34 書込ポインタ 41 システム制御手段 42 コマンド 43 メッセージ蓄積手段 44 ログ記録手段 45 メッセージ抑止フラグ 46 ログファイル 11 system control means 12 command 13 log recording means 14 log file 15 write means 16 write pointer 17 save pointer 31 previous command message 32 write start position 33 command message 34 write pointer 41 system control means 42 command 43 message storage means 44 log recording means 45 message suppression flag 46 log file

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】コマンドの実行メッセージをログファイル
に記録する方式において、 コマンド実行時にコマンドメッセージをログファイルに
書込む手段と、 書込開始位置を保存する保存ポインタと、 前記保存ポインタより前記書込開始位置を書込ポインタ
に復帰させることによりメッセージ記録を抑止する手段
と、 を具備するログ記録手段を有することを特徴とするコマ
ンドログ記録方式。
1. A method of recording a command execution message in a log file, a means for writing a command message in a log file when a command is executed, a save pointer for saving a write start position, and the write operation from the save pointer. A command log recording method comprising: a log recording unit having a unit for suppressing message recording by returning a start position to a write pointer.
【請求項2】前記メッセージ記録を抑止する手段が、メ
ッセージ抑止フラグが抑止指定を示す時に、前記保存ポ
インタより前記書込開始位置を前記書込ポインタに復帰
させることを特徴とする請求項1記載のコマンドログ記
録方式。
2. The means for inhibiting the message recording, when the message inhibition flag indicates an inhibition specification, restores the write start position from the save pointer to the write pointer. Command logging method.
【請求項3】前記ログ記録手段が、コマンドの実行メッ
セージを前記ログファイルに書込む際に、前記書込ポイ
ンタの現在の書込開始位置を前記保存ポインタに退避し
た後に、前記書込開始位置から前記コマンドが出力する
メッセージを前記ログファイルに書込み、前記コマンド
が正常終了した場合において、メッセージ抑止フラグが
抑止指定を示す時に、前記保存ポインタより前記書込開
始位置を前記書込ポインタに復帰させるように、制御す
ることを特徴とする請求項1記載のコマンドログ記録方
式。
3. The write start position after the log recording means saves the current write start position of the write pointer to the save pointer when writing a command execution message to the log file. Writes the message output from the command to the log file, and when the command ends normally, restores the write start position from the save pointer to the write pointer when the message suppression flag indicates suppression specification. The command log recording method according to claim 1, wherein the command log recording method is controlled as follows.
JP6198949A 1994-08-02 1994-08-02 Command log recording method Expired - Lifetime JP2692605B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6198949A JP2692605B2 (en) 1994-08-02 1994-08-02 Command log recording method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6198949A JP2692605B2 (en) 1994-08-02 1994-08-02 Command log recording method

Publications (2)

Publication Number Publication Date
JPH0844596A true JPH0844596A (en) 1996-02-16
JP2692605B2 JP2692605B2 (en) 1997-12-17

Family

ID=16399635

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6198949A Expired - Lifetime JP2692605B2 (en) 1994-08-02 1994-08-02 Command log recording method

Country Status (1)

Country Link
JP (1) JP2692605B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007241540A (en) * 2006-03-07 2007-09-20 Ricoh Co Ltd Log information management system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6075946A (en) * 1983-09-30 1985-04-30 Nec Corp History output device
JPH02310662A (en) * 1989-05-25 1990-12-26 Fujitsu Ltd Message display suppressing system
JPH04239343A (en) * 1991-01-14 1992-08-27 Nec Corp Tracing system for information processor

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6075946A (en) * 1983-09-30 1985-04-30 Nec Corp History output device
JPH02310662A (en) * 1989-05-25 1990-12-26 Fujitsu Ltd Message display suppressing system
JPH04239343A (en) * 1991-01-14 1992-08-27 Nec Corp Tracing system for information processor

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007241540A (en) * 2006-03-07 2007-09-20 Ricoh Co Ltd Log information management system

Also Published As

Publication number Publication date
JP2692605B2 (en) 1997-12-17

Similar Documents

Publication Publication Date Title
JPH05298835A (en) Information recording and reproducing device with mechanism for recording self diagnostic information
JPH0991099A (en) Disk update log recording system
US6931485B2 (en) Disk array apparatus
JP2009230212A (en) Virtual tape device and control method for virtual tape device
JP2692605B2 (en) Command log recording method
JPH0744440A (en) Data save device
JP3022011B2 (en) Data backup system
JP2723821B2 (en) Dump collection control method
JP2576375B2 (en) Automatic editing document saving method
JPH04209044A (en) Data base control system
JPH08106419A (en) Backup device
JP2861846B2 (en) Magnetic disk control system
JP2953874B2 (en) Magnetic tape device control method for input / output channel device
JP3041096B2 (en) Data evacuation method
JPH03171322A (en) Magnetic tape controller
JPH04361320A (en) Computer system
JPH06266598A (en) Information processor
JPH04333129A (en) Method for writing data into auxiliary storage device
JPS6254347A (en) Processing system for fault of file
JPH0619766A (en) File update history extracting system
JPH0619767A (en) Magnetic disk device with file restoration function
JPH03257559A (en) Data transfer system
JPH08263348A (en) Data storage system
JPS59183451A (en) Data saving control system
JPH05181572A (en) Information processor

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 19970805