JP4692359B2 - Log management device, log management system, log management method and program thereof - Google Patents

Log management device, log management system, log management method and program thereof Download PDF

Info

Publication number
JP4692359B2
JP4692359B2 JP2006101314A JP2006101314A JP4692359B2 JP 4692359 B2 JP4692359 B2 JP 4692359B2 JP 2006101314 A JP2006101314 A JP 2006101314A JP 2006101314 A JP2006101314 A JP 2006101314A JP 4692359 B2 JP4692359 B2 JP 4692359B2
Authority
JP
Japan
Prior art keywords
job
time
image processing
log
dummy
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2006101314A
Other languages
Japanese (ja)
Other versions
JP2007279781A (en
Inventor
正志 浅川
龍也 清野
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Seiko Epson Corp
Original Assignee
Seiko Epson 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 Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP2006101314A priority Critical patent/JP4692359B2/en
Publication of JP2007279781A publication Critical patent/JP2007279781A/en
Application granted granted Critical
Publication of JP4692359B2 publication Critical patent/JP4692359B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Accessory Devices And Overall Control Thereof (AREA)
  • Facsimiles In General (AREA)

Description

本発明は、ログ管理装置、ログ管理方法及びそのプログラムに関し、詳しくは画像処理を伴う画像処理用ジョブに基づいて画像処理を実行し少なくとも所定の基準時からの経過時間によって特定される相対時刻を計測可能な相対時刻計測機能を有する画像処理装置とネットワークを介して接続され該画像処理装置のログを管理するログ管理装置、ログ管理方法及びそのプログラムに関する。   The present invention relates to a log management apparatus, a log management method, and a program thereof, and more particularly, to execute relative image processing based on an image processing job involving image processing and to specify a relative time specified by at least an elapsed time from a predetermined reference time. The present invention relates to a log management apparatus, a log management method, and a program thereof, which are connected to an image processing apparatus having a measurable relative time measurement function via a network and manage logs of the image processing apparatus.

従来より、印刷装置などのログを管理するシステムが知られている。例えば特許文献1では、印刷装置が現在時刻を計測可能な時計用ICを実装している場合には、その時計用ICから読み取った現在時刻を印刷ジョブの受信時刻情報として取得し、ログとして印刷装置内に記憶しておく。一方、印刷装置が時計用ICを実装していない場合には、印刷ジョブのデータ内に含まれているホストコンピュータからの送信日時情報を印刷ジョブの受信時刻情報として取得し、ログとして印刷装置内に記憶しておく。したがって、印刷装置が時計用ICを実装していなくても、ログとして各印刷ジョブの時間情報を印刷ジョブを受信した際の現在時刻として記憶され、印刷処理の管理やエラー処理の管理などを効率よく行うことができる。
特開2001−162899号公報
Conventionally, a system for managing a log of a printing apparatus or the like is known. For example, in Patent Document 1, when the printing device has a clock IC capable of measuring the current time, the current time read from the clock IC is acquired as print job reception time information and printed as a log. Store in the device. On the other hand, if the printing device does not have a clock IC, the transmission date and time information from the host computer included in the print job data is acquired as the reception time information of the print job, and is stored in the printing device as a log. Remember it. Therefore, even if the printing device does not have a clock IC, the time information of each print job is stored as a log as the current time when the print job is received, and management of print processing and error processing can be performed efficiently. Can be done well.
JP 2001-162899 A

ところで、印刷装置とは別の装置でログ管理を行う場合、そのログ管理装置は、印刷装置で作成された利用状況に関する情報(例えば、印刷開始時刻や印刷終了時刻といった時間情報など)を取得してこれを管理する。一般に、印刷装置においては、コスト面等の理由から、電源断の状態でも現在時刻を計測可能な時計(リアルタイムクロック)ではなく、起動時からの経過時間を計測可能なタイマ(システムクロック)を内蔵していることが多い。したがって、ログを管理する際には、印刷装置の保有する相対時刻としての時間情報を統一した時間軸で合わせることが必要になる。その方法としては、例えば、ジョブ管理装置から取得した絶対時刻に基づいて印刷装置を起動した絶対時刻を算出し、この起動時間からの経過時間によって印刷処理時刻を算出することが考えられる。しかしながら、ログ管理装置がプリントサーバなどを介してプリンタと接続されている場合には、ログ管理装置はプリンタの時刻を直接に取得することができないため、ログ管理装置でプリンタの正確な処理時刻を管理することができない。つまり、プリントサーバがログ管理装置から基準時刻を取得し、この取得した基準時刻に対しプリントサーバの有するシステムクロックで計測された経過時間を加味した時刻をプリンタの時刻として用いる場合、プリンタで作成されたログの時間情報は、プリントサーバのシステムクロックとプリンタのシステムクロックとの計測誤差が含まれたものになる。一般に、システムクロックの精度は低いため、このような構成においてプリンタで作成されたログの時間情報は、プリントサーバとプリンタとの計測誤差により実際の時刻よりも大きくずれていることがあった。   By the way, when log management is performed by a device different from the printing device, the log management device acquires information on the usage status created by the printing device (for example, time information such as printing start time and printing end time). Manage this. In general, the printer has a built-in timer (system clock) that can measure the elapsed time since startup, instead of a clock (real-time clock) that can measure the current time even when the power is off, for reasons such as cost. Often doing. Therefore, when managing logs, it is necessary to match time information as relative time held by the printing apparatus on a unified time axis. As the method, for example, it is conceivable to calculate the absolute time when the printing apparatus is activated based on the absolute time acquired from the job management apparatus, and to calculate the print processing time based on the elapsed time from the activation time. However, when the log management device is connected to the printer via a print server or the like, the log management device cannot directly acquire the printer time. It cannot be managed. In other words, when the print server obtains the reference time from the log management device and uses the time obtained by adding the elapsed time measured by the system clock of the print server as the obtained reference time as the printer time, it is created by the printer. The log time information includes measurement errors between the system clock of the print server and the system clock of the printer. In general, since the accuracy of the system clock is low, the time information of the log created by the printer in such a configuration sometimes deviates from the actual time due to a measurement error between the print server and the printer.

本発明は、このような課題を解決するためになされたものであり、画像処理装置から取得したログに含まれる時刻を統一した時間軸で管理することができるログ管理装置、ログ管理方法及びそのプログラムを提供することを目的とする。   The present invention has been made to solve such a problem, and a log management apparatus, a log management method, and a log management apparatus capable of managing a time included in a log acquired from an image processing apparatus on a unified time axis The purpose is to provide a program.

本発明は、上述の目的を達成するために以下の手段を採った。   The present invention adopts the following means in order to achieve the above-mentioned object.

すなわち、本発明のログ管理装置は、
画像処理を伴う画像処理用ジョブに基づいて画像処理を実行し少なくとも所定の基準時からの経過時間によって特定される相対時刻を計測可能な相対時刻計測機能を有する画像処理装置とネットワークを介して接続され該画像処理装置のログを管理するログ管理装置であって、
基準時刻を計測する基準時刻計測手段と、
前記画像処理用ジョブを模したダミージョブを前記画像処理装置に送信するダミージョブ送信手段と、
前記ダミージョブ送信手段から前記ダミージョブを送信したときの基準時刻である送信基準時刻に関する情報を記憶する送信時刻記憶手段と、
前記画像処理装置が前記ダミージョブを処理したときの相対時刻に関する情報を含む前記ダミージョブのログと前記画像処理用ジョブを処理したときの相対時刻に関する情報を含む前記画像処理用ジョブのログとを取得するログ取得手段と、
前記送信基準時刻に関する情報と前記ダミージョブのログとに基づいて前記画像処理用ジョブのログのうち相対時刻に関する情報を前記基準時刻の時間軸に合うように補正する時刻補正手段と、
前記時刻補正手段によって補正された情報を前記画像処理装置のログとして記憶するログ記憶手段と、
を備えたものである。
That is, the log management apparatus of the present invention is
Connected via an image processing device with a relative time measurement function capable of measuring image processing based on an image processing job involving image processing and measuring at least the relative time specified by the elapsed time from a predetermined reference time A log management device for managing a log of the image processing device,
A reference time measuring means for measuring the reference time;
Dummy job transmitting means for transmitting a dummy job imitating the image processing job to the image processing apparatus;
A transmission time storage means for storing information relating to a transmission reference time that is a reference time when the dummy job is transmitted from the dummy job transmission means;
A log of the dummy job including information on relative time when the image processing apparatus processes the dummy job, and a log of the image processing job including information on relative time when the image processing job is processed. Log acquisition means to acquire;
Time correction means for correcting the information on the relative time in the log of the image processing job based on the information on the transmission reference time and the log of the dummy job so as to match the time axis of the reference time;
Log storage means for storing information corrected by the time correction means as a log of the image processing device;
It is equipped with.

このログ管理装置では、画像処理用ジョブを模したダミージョブを画像処理装置に送信し、この画像処理装置のログとして、画像処理装置がダミージョブを処理したときの相対時刻に関する情報を画像処理装置から取得する。そして、画像処理装置のログとして、画像処理装置が画像処理用ジョブを処理したときの相対時刻に関する情報を取得すると、ダミージョブの送信基準時刻に関する情報とダミージョブのログとに基づいて、画像処理用ジョブを処理したときの相対時刻に関する情報を基準時刻の時間軸に合うように補正する。つまり、ログ管理装置が画像処理装置にダミージョブを送信することにより、ログ管理装置と画像処理装置との間で時刻同期を行うための特別な手段がなくても、ログ管理装置側の時刻と画像処理装置側の時刻とを関係づけ、画像処理装置で把握した画像処理用ジョブの処理相対時刻をログ管理装置の時間軸に合わせた時刻に置き換えることが可能になる。したがって、画像処理装置から取得したログに含まれる時刻をログ管理装置が有する時刻に合わせることで統一した時間軸でログを管理することができる。   In this log management apparatus, a dummy job imitating an image processing job is transmitted to the image processing apparatus, and information relating to the relative time when the image processing apparatus processes the dummy job is used as a log of the image processing apparatus. Get from. When the information regarding the relative time when the image processing apparatus processes the image processing job is acquired as the log of the image processing apparatus, the image processing is performed based on the information regarding the transmission reference time of the dummy job and the log of the dummy job. The information regarding the relative time when the job for processing is processed is corrected so as to match the time axis of the reference time. That is, the log management device transmits a dummy job to the image processing device, so that there is no special means for performing time synchronization between the log management device and the image processing device. It is possible to relate the time on the image processing apparatus side and replace the relative processing time of the image processing job grasped by the image processing apparatus with a time that matches the time axis of the log management apparatus. Therefore, the log can be managed on a unified time axis by matching the time included in the log acquired from the image processing apparatus with the time of the log management apparatus.

ここで、所定の基準時は、例えば画像処理装置の起動時としてもよいし、任意の時刻としてもよい。このとき、所定の基準時の時刻は、例えばゼロとしてもよいし、別の外部装置から通信により入力した時刻としてもよい。   Here, the predetermined reference time may be, for example, when the image processing apparatus is activated, or may be an arbitrary time. At this time, the time at the predetermined reference time may be zero, for example, or may be a time input by communication from another external device.

本発明のログ管理装置において、前記ダミージョブは画像処理を伴わないものであり、前記ログ取得手段は、前記画像処理装置が前記ダミージョブを処理したときの相対時刻に関する情報として、前記画像処理装置が前記ダミージョブを受信したときの相対時刻に関する情報を取得するとしてもよい。こうすれば、本来行うべき画像処理がダミージョブによって妨げられるのを防ぐことができる。また、画像処理装置がダミージョブを受信した時刻を用いて画像処理用ジョブの処理相対時刻の補正を行うため、画像処理装置がダミージョブの処理を開始した時刻を用いて補正を行う場合に比べて、処理相対時刻の補正をより正確に行うことができる。   In the log management apparatus according to the present invention, the dummy job does not involve image processing, and the log acquisition unit uses the image processing apparatus as information regarding a relative time when the image processing apparatus processes the dummy job. May acquire information relating to the relative time when the dummy job is received. In this way, it is possible to prevent the image processing that should be originally performed from being hindered by the dummy job. In addition, since the image processing apparatus corrects the processing relative time of the image processing job using the time when the dummy job is received, compared with the case where the image processing apparatus corrects using the time when the dummy job processing is started. Thus, the processing relative time can be corrected more accurately.

本発明のログ管理装置において、前記ダミージョブ送信手段は、前記ダミージョブを1回送信し、前記時刻補正手段は、前記ダミージョブ送信手段により送信された1回のダミージョブにつき、前記相対時刻計測機能により計測された相対時刻と前記基準時刻計測手段により計測される基準時刻との関係に基づいて前記画像処理用ジョブのログのうち相対時刻に関する情報を前記基準時刻の時間軸に合うように補正するとしてもよい。こうすれば、ダミージョブを必要以上に送信することなく画像処理装置で計測された処理相対時刻をログ管理装置の時間軸に合わせた時刻に補正することができる。   In the log management apparatus of the present invention, the dummy job transmission unit transmits the dummy job once, and the time correction unit performs the relative time measurement for one dummy job transmitted by the dummy job transmission unit. Based on the relationship between the relative time measured by the function and the reference time measured by the reference time measuring means, the information related to the relative time in the log of the image processing job is corrected to match the time axis of the reference time. You may do that. In this way, it is possible to correct the processing relative time measured by the image processing apparatus to a time that matches the time axis of the log management apparatus without transmitting dummy jobs more than necessary.

本発明のログ管理装置において、前記時刻補正手段は、前記相対時刻計測機能での計測誤差を考慮して前記画像処理用ジョブのログのうち相対時刻に関する情報を前記基準時刻の時間軸に合うように補正するとしてもよい。こうすれば、画像処理装置の相対時刻計測機能の精度が低いときにも、より正確な時刻をログとして管理することができる。このとき、前記ダミージョブ送信手段は、前記ダミージョブを2回送信し、前記時刻補正手段は、前記ダミージョブ送信手段により送信された2回のダミージョブにつき、前記相対時刻計測機能により計測された相対時刻と前記基準時刻計測手段により計測される基準時刻との関係を算出し、該算出した関係に基づいて前記画像処理用ジョブのログのうち相対時刻に関する情報を前記基準時刻の時間軸に合うように補正することにより前記相対時刻計測機能での計測誤差を考慮するとしてもよい。こうすれば、処理相対時刻を補正する際に、相対計測機能の計測誤差を比較的容易に反映させることができる。   In the log management apparatus according to the present invention, the time correction unit is configured so that information relating to the relative time in the log of the image processing job matches the time axis of the reference time in consideration of a measurement error in the relative time measurement function. You may correct to. In this way, even when the accuracy of the relative time measurement function of the image processing apparatus is low, more accurate time can be managed as a log. At this time, the dummy job transmission unit transmits the dummy job twice, and the time correction unit measures the two dummy jobs transmitted by the dummy job transmission unit by the relative time measurement function. A relationship between the relative time and the reference time measured by the reference time measuring unit is calculated, and information on the relative time in the log of the image processing job is aligned with the time axis of the reference time based on the calculated relationship. By correcting as described above, a measurement error in the relative time measurement function may be taken into consideration. In this way, when the processing relative time is corrected, the measurement error of the relative measurement function can be reflected relatively easily.

本発明のログ管理装置において、前記ダミージョブ送信手段は、所定間隔ごとに前記ダミージョブを送信するとしてもよい。こうすれば、画像処理装置において所定の基準時の時刻が変わったりダミージョブに関する過去の情報が消去されたりした場合にも、新たなダミージョブのログを用いて画像処理用ジョブの処理相対時刻を補正することができる。   In the log management apparatus of the present invention, the dummy job transmission unit may transmit the dummy job at predetermined intervals. In this way, even when the predetermined reference time changes in the image processing apparatus or past information related to the dummy job is deleted, the processing time of the image processing job can be set using the new dummy job log. It can be corrected.

本発明のログ管理装置において、前記所定の基準時は、前記画像処理装置の起動時であり、前記ダミージョブ送信手段は、前記画像処理装置が起動されたのちに再起動されたときには該再起動後に前記ダミージョブを少なくとも1回送信するとしてもよい。こうすれば、画像処理装置の再起動によって所定の基準時の時刻が変わった場合にも、画像処理用ジョブの処理相対時刻の補正を正確に行うことができる。   In the log management apparatus according to the present invention, the predetermined reference time is a time when the image processing apparatus is started, and the dummy job transmission unit restarts the image processing apparatus when the image processing apparatus is restarted. The dummy job may be transmitted at least once later. By doing this, it is possible to accurately correct the processing relative time of the image processing job even when the time of the predetermined reference time is changed by restarting the image processing apparatus.

本発明のログ管理装置おいて、前記画像処理装置は、前記画像処理用ジョブ及び前記ダミージョブを受信し該受信した前記画像処理用ジョブ及び前記ダミージョブを該画像処理装置に送信するジョブ管理装置を介在して前記ログ管理装置に接続され、前記ジョブ管理装置の有する時刻計測機能によって特定される相対時刻を時間軸にした相対時刻をログとして前記ログ管理装置に送信するとしてもよい。こうすれば、ジョブ管理装置での時刻を時間軸に用いて表した相対時刻をログ管理装置を時間軸とした時刻に補正することができる。この場合には、ジョブ管理装置での計測誤差を加味した補正を行うことができ、本発明を適用する意義が高い。このとき、前記ジョブ管理装置に前記画像処理用ジョブが蓄積されているか否かを判定するジョブ判定手段、を備え、前記ダミージョブ送信手段は、前記ジョブ判定手段によって前記ジョブ管理装置に前記画像処理用ジョブが蓄積されていないと判定されたときに前記ダミージョブを送信するとしてもよい。こうすれば、ダミージョブが画像処理装置に送信されるまでのジョブ管理装置での待ち時間を考慮する必要がないため、ログ管理装置側の時刻と画像処理装置側の時刻とを正確に関係づけることができ、処理相対時刻をより正確な時刻に補正することができる。   In the log management apparatus of the present invention, the image processing apparatus receives the image processing job and the dummy job, and transmits the received image processing job and the dummy job to the image processing apparatus. The log management device may be connected to the log management device, and a relative time having a relative time specified by the time measurement function of the job management device as a time axis may be transmitted to the log management device as a log. By doing so, it is possible to correct the relative time represented by using the time at the job management apparatus as the time axis to the time using the log management apparatus as the time axis. In this case, it is possible to carry out correction taking account of measurement errors in the job management apparatus, and it is highly significant to apply the present invention. At this time, the job management device includes a job determination unit that determines whether or not the image processing job is stored in the job management device, and the dummy job transmission unit causes the job management device to perform the image processing on the job management device. The dummy job may be transmitted when it is determined that no job is stored. In this way, since it is not necessary to consider the waiting time in the job management apparatus until the dummy job is transmitted to the image processing apparatus, the time on the log management apparatus side and the time on the image processing apparatus side are accurately related. The processing relative time can be corrected to a more accurate time.

本発明のログ管理システムは、上述したログ管理装置と、画像データを含む画像処理用ジョブに基づいて画像処理を実行し少なくとも所定の基準時からの経過時間によって特定される相対時刻を計測可能な相対時刻計測機能を有する画像処理装置と、を備えたものである。本発明のログ管理装置は、ダミージョブを用いることにより、ログ管理装置と画像処理装置との間で時刻同期を行うための特別な手段がなくても画像処理装置で把握した画像処理用ジョブの処理相対時刻をログ管理装置の時間軸に合わせた時刻に置き換えることができ、その結果、画像処理装置から取得したログに含まれる時刻をログ管理装置が有する時刻に合わせることで統一した時間軸でログを管理することができるから、これを備えたログ管理システムも同様の効果を奏するものとなる。   The log management system of the present invention can measure relative time specified by at least an elapsed time from a predetermined reference time by executing image processing based on the log management apparatus described above and an image processing job including image data. And an image processing apparatus having a relative time measurement function. The log management apparatus according to the present invention uses a dummy job, so that the image processing job grasped by the image processing apparatus can be obtained without special means for performing time synchronization between the log management apparatus and the image processing apparatus. The processing relative time can be replaced with a time that matches the time axis of the log management device, and as a result, the time included in the log acquired from the image processing device matches the time that the log management device has, with a unified time axis Since the log can be managed, the log management system including the log also has the same effect.

本発明のログ管理方法は、
基準時刻を計測する基準時刻計測手段を備え、画像処理を伴う画像処理用ジョブに基づいて画像処理を実行し少なくとも所定の基準時からの経過時間によって特定される相対時刻を計測可能な相対時刻計測機能を有する画像処理装置とネットワークを介して接続され該画像処理装置のログを管理するログ管理装置であって、
(a)前記画像処理用ジョブを模した画像処理を伴わないダミージョブを前記画像処理装置に送信するステップと、
(b)前記ステップ(b)で前記ダミージョブを送信したときの基準時刻である送信基準時刻に関する情報を記憶するステップと、
(c)前記画像処理装置が前記ダミージョブを処理したときの相対時刻に関する情報を含む前記ダミージョブのログと前記画像処理用ジョブを処理したときの相対時刻に関する情報を含む前記画像処理用ジョブのログとを取得するステップと、
(d)前記ステップ(b)で記憶した前記送信基準時刻に関する情報と前記ステップ(c)で取得した前記ダミージョブのログとに基づいて前記ステップ(c)で取得した前記画像処理用ジョブを処理したときの相対時刻に関する情報を前記基準時刻の時間軸に合うように補正するステップと、
(e)前記ステップ(d)で補正した情報を前記画像処理装置のログとして記憶するステップと、
を含むものである。
The log management method of the present invention includes:
Relative time measurement that includes a reference time measurement means for measuring a reference time, and that can execute image processing based on an image processing job that accompanies image processing and can measure at least a relative time specified by an elapsed time from a predetermined reference time A log management device connected to an image processing device having a function via a network and managing a log of the image processing device,
(A) transmitting a dummy job without image processing imitating the image processing job to the image processing apparatus;
(B) storing information relating to a transmission reference time, which is a reference time when the dummy job is transmitted in the step (b);
(C) a log of the dummy job including information regarding a relative time when the image processing apparatus processes the dummy job and an image processing job including information regarding a relative time when the image processing job is processed; A step to get logs and
(D) Process the image processing job acquired in step (c) based on the information related to the transmission reference time stored in step (b) and the log of the dummy job acquired in step (c). Correcting the information related to the relative time to match the time axis of the reference time;
(E) storing the information corrected in step (d) as a log of the image processing apparatus;
Is included.

このログ管理方法では、画像処理用ジョブを模したダミージョブを画像処理装置に送信し、この画像処理装置のログとして、画像処理装置がダミージョブを処理したときの相対時刻に関する情報を画像処理装置から取得する。そして、画像処理装置のログとして、画像処理装置が画像処理用ジョブを処理したときの相対時刻に関する情報を取得すると、ダミージョブの送信基準時刻に関する情報とダミージョブのログとに基づいて、画像処理用ジョブを処理したときの相対時刻に関する情報を基準時刻の時間軸に合うように補正する。つまり、ログ管理装置が画像処理装置にダミージョブを送信することにより、ログ管理装置と画像処理装置との間で時刻同期を行うための特別な手段がなくても、ログ管理装置側の時刻と画像処理装置側の時刻とを関係づけ、画像処理装置で把握した画像処理用ジョブの処理相対時刻をログ管理装置の時間軸に合わせた時刻に置き換えることが可能になる。したがって、画像処理装置から取得したログに含まれる時刻をログ管理装置が有する時刻に合わせることで統一した時間軸でログを管理することができる。なお、本発明のログ管理方法に、上述したログ管理装置のいずれかの機能を実現するステップを追加してもよい。   In this log management method, a dummy job imitating an image processing job is transmitted to the image processing apparatus, and information relating to the relative time when the image processing apparatus processes the dummy job is used as a log of the image processing apparatus. Get from. When the information regarding the relative time when the image processing apparatus processes the image processing job is acquired as the log of the image processing apparatus, the image processing is performed based on the information regarding the transmission reference time of the dummy job and the log of the dummy job. The information regarding the relative time when the job for processing is processed is corrected so as to match the time axis of the reference time. That is, the log management device transmits a dummy job to the image processing device, so that there is no special means for performing time synchronization between the log management device and the image processing device. It is possible to relate the time on the image processing apparatus side and replace the relative processing time of the image processing job grasped by the image processing apparatus with a time that matches the time axis of the log management apparatus. Therefore, the log can be managed on a unified time axis by matching the time included in the log acquired from the image processing apparatus with the time of the log management apparatus. Note that a step of realizing any of the functions of the log management apparatus described above may be added to the log management method of the present invention.

本発明のログ管理プログラムは、1又は複数のコンピュータに、上述したログ管理方法の各ステップを実行させるためのプログラムである。このプログラムは、コンピュータが読み取り可能な記録媒体(例えばハードディスク、ROM、FD、CD、DVDなど)に記録されていてもよいし、伝送媒体(インターネットやLANなどの通信網)を介してあるコンピュータから別のコンピュータへ配信されてもよいし、その他どのような形で授受されてもよい。このプログラムを一つのコンピュータに実行させるか又は複数のコンピュータに各ステップを分担して実行させれば、上述したログ管理方法と同様の効果が得られる。   The log management program of the present invention is a program for causing one or a plurality of computers to execute each step of the log management method described above. This program may be recorded on a computer-readable recording medium (for example, hard disk, ROM, FD, CD, DVD, etc.), or from a computer via a transmission medium (communication network such as the Internet or LAN). It may be distributed to another computer, or may be exchanged in any other form. If this program is executed by one computer, or if each step is shared and executed by a plurality of computers, the same effect as the log management method described above can be obtained.

図1は本発明の一実施形態であるログ管理システム10の構成の概略を示す構成図である。本実施形態のログ管理システム10は、図1に示すように、本発明のログ管理装置としての管理サーバ20と、この管理サーバ20とLAN(Local Area Network)12を介して接続されたプリントサーバ30と、プリントサーバ30にローカル接続されたプリンタ40と、管理サーバ20やプリントサーバ30とLAN12を介して接続されたクライアントコンピュータ(以下、クライアントPCという)50とから構成されている。   FIG. 1 is a configuration diagram showing an outline of the configuration of a log management system 10 according to an embodiment of the present invention. As shown in FIG. 1, a log management system 10 according to the present embodiment includes a management server 20 as a log management apparatus according to the present invention, and a print server connected to the management server 20 via a LAN (Local Area Network) 12. 30, a printer 40 locally connected to the print server 30, and a client computer (hereinafter referred to as a client PC) 50 connected to the management server 20 and the print server 30 via the LAN 12.

管理サーバ20は、各種制御を実行するCPU21と、各種制御プログラムを記憶するROM22と、データを一時記憶するRAM23と、各種アプリケーションプログラムや各種データファイルを記憶する大容量メモリであるHDD24と、外部機器との間で信号の送受信が可能なネットワークインタフェース(I/F)26と、管理サーバ20の基準時刻を計時するRTC25とを備え、これらはバス27を介して電気的に接続され、情報のやり取りが可能になっている。この管理サーバ20は、所定時間(例えば10秒)毎にプリンタ40を監視し、プリンタ40から印刷ジョブの印刷処理内容や印刷処理を行った時刻などの情報を取得してHDD24の所定領域に保存・管理する。この管理サーバ20は、LAN12を介してプリントサーバ30やクライアントPC50とデータを送受信する際には、RAM23の所定領域に設けられた受信バッファ及び送信バッファを利用してデータの送受信を行う。HDD24には、アプリケーションプログラムであるログ管理プログラム24aや、プリンタ40の過去の印刷処理に関する情報であるログ24bなどが記憶されている。RTC25は、水晶発振子からの発信クロックを分周してクロック周波数を生成するものであり、内部システムクロックと異なり、電源が切られている間も図示しないバッテリから電源供給を受けて動作する。   The management server 20 includes a CPU 21 that executes various controls, a ROM 22 that stores various control programs, a RAM 23 that temporarily stores data, an HDD 24 that is a large-capacity memory that stores various application programs and various data files, and external devices. A network interface (I / F) 26 capable of transmitting and receiving signals to and from the RTC 25 for measuring the reference time of the management server 20, which are electrically connected via a bus 27 to exchange information Is possible. The management server 20 monitors the printer 40 every predetermined time (for example, 10 seconds), acquires information such as the print processing content of the print job and the time when the print processing was performed from the printer 40, and stores it in a predetermined area of the HDD 24. ·to manage. When transmitting / receiving data to / from the print server 30 and the client PC 50 via the LAN 12, the management server 20 transmits / receives data using a reception buffer and a transmission buffer provided in a predetermined area of the RAM 23. The HDD 24 stores a log management program 24a that is an application program, a log 24b that is information related to past print processing of the printer 40, and the like. The RTC 25 divides the oscillation clock from the crystal oscillator to generate a clock frequency. Unlike the internal system clock, the RTC 25 receives power from a battery (not shown) and operates while the power is off.

プリントサーバ30は、CPU31を中心とするマイクロプロセッサとして構成されており、各種処理プログラムや各種データを記憶するROM32と、一時的にデータを記憶するRAM33と、プリンタ40とデータのやり取りを行うための外部通信I/F34と、ネットワークを介して管理サーバ20と通信可能なネットワークI/F35とを備え、これらはバス36で接続されている。CPU31は内部システムクロック31aを有しており、この内部システムクロック31aは水晶発振子からの発信クロックを分周してクロック周波数を生成する。   The print server 30 is configured as a microprocessor centered on a CPU 31, and exchanges data with a printer 32, a ROM 32 that stores various processing programs and various data, a RAM 33 that temporarily stores data, and a printer 40. An external communication I / F 34 and a network I / F 35 that can communicate with the management server 20 via a network are provided, and these are connected by a bus 36. The CPU 31 has an internal system clock 31a, and the internal system clock 31a divides a transmission clock from the crystal oscillator to generate a clock frequency.

プリンタ40は、インクジェット方式の印刷機構45を有しており、CPU41を中心とするマイクロプロセッサとして構成されており、各種処理プログラムや各種データを記憶するROM42と、一時的にデータを記憶するRAM43と、プリントサーバ30とデータのやり取りを行うための外部通信I/F44とを備え、これらはバス46で接続されている。CPU41は内部システムクロック41aを有しており、この内部システムクロック41aは水晶発振子からの発信クロックを分周してクロック周波数を生成する。また、ROM42には、アプリケーションプログラムであるジョブ情報管理プログラム42aが記憶されている。このジョブ情報管理プログラム42aが実行されることにより、クライアントPC50から受信した印刷ジョブの印刷処理内容や印刷処理を行った時刻がジョブ情報としてRAM43の所定領域に記憶される。   The printer 40 has an inkjet printing mechanism 45, and is configured as a microprocessor centered on a CPU 41. The ROM 42 stores various processing programs and various data, and the RAM 43 stores data temporarily. And an external communication I / F 44 for exchanging data with the print server 30, and these are connected by a bus 46. The CPU 41 has an internal system clock 41a, and this internal system clock 41a divides a transmission clock from the crystal oscillator to generate a clock frequency. The ROM 42 stores a job information management program 42a that is an application program. By executing the job information management program 42a, the print processing content of the print job received from the client PC 50 and the time when the print processing was performed are stored in a predetermined area of the RAM 43 as job information.

クライアントPC50は、周知の汎用パソコンであり、インストールされたプログラムによりファイルの印刷指令をLAN12を介してプリントサーバ30に送信したり、プリントサーバ30からの応答を受信したりする。クライアントPC50は、各種情報を画面表示するディスプレイ51や、ユーザが各種指令を入力するキーボード等の入力装置52などを備え、ディスプレイ51に表示されたカーソル等をユーザが入力装置52を介して入力することにより、その入力操作に応じた動作を実行する。   The client PC 50 is a known general-purpose personal computer, and transmits a file print command to the print server 30 via the LAN 12 or receives a response from the print server 30 by an installed program. The client PC 50 includes a display 51 that displays various information on a screen, an input device 52 such as a keyboard for a user to input various commands, and the like, and the user inputs a cursor displayed on the display 51 via the input device 52. Thus, an operation corresponding to the input operation is executed.

次に、本実施形態のログ管理システム10を構成するデバイスの動作のうち、まず、管理サーバ20がプリントサーバ30を経由してプリンタ40にダミージョブを送信する動作について説明する。ここで、ダミージョブとは、画像処理用の印刷ジョブの形式を模しているため管理サーバ20からプリントサーバ30を経由してプリンタ40に印刷ジョブとして送信されるものの、印刷枚数がゼロに設定されているために印刷の実行を伴わないジョブをいう。図2は、管理サーバ20のCPU21により実行されるダミージョブ送信ルーチンのフローチャートである。このルーチンは、管理サーバ20が起動されたあと所定タイミングごと(例えば数十secや数minごと)に実行される。   Next, among the operations of the devices constituting the log management system 10 of the present embodiment, an operation in which the management server 20 transmits a dummy job to the printer 40 via the print server 30 will be described first. Here, the dummy job imitates the format of a print job for image processing, and is sent as a print job from the management server 20 to the printer 40 via the print server 30, but the number of prints is set to zero. This is a job that does not involve execution of printing. FIG. 2 is a flowchart of a dummy job transmission routine executed by the CPU 21 of the management server 20. This routine is executed at predetermined timings (for example, every several tens of seconds or several mins) after the management server 20 is activated.

このルーチンが実行されると、管理サーバ20のCPU21は、プリントサーバ30を介してプリンタ40にダミージョブを送信し(ステップS100)、このときのRTC25の時刻をダミージョブ送信時刻としてダミージョブ送受信テーブルに記憶する(ステップS105)。図3は、ダミージョブ送受信テーブルの一例を示す説明図である。ダミージョブ送受信テーブルとは、ダミージョブを送信した際にRTC25が示すサーバ送信時刻tsdとダミージョブをプリンタ40が受信したときのジョブ受信時刻tpaと印刷ジョブ番号とをテーブルとして表したものであり、RAM23の所定領域に保存されている。ここで、ダミージョブ番号とは、管理サーバ20からダミージョブが送信されるときにCPU21により各ダミージョブに付与されるものである。また、印刷ジョブ番号とは、プリンタ40が印刷ジョブ又はダミージョブをプリントサーバ30から受信したときにプリンタのCPU41によって付される番号である。なお、サーバ送信時刻tsdは、RTC25で計測された時刻であるため、送信時の現在時刻として表される。   When this routine is executed, the CPU 21 of the management server 20 transmits a dummy job to the printer 40 via the print server 30 (step S100), and the dummy job transmission / reception table with the time of the RTC 25 at this time as the dummy job transmission time. (Step S105). FIG. 3 is an explanatory diagram illustrating an example of a dummy job transmission / reception table. The dummy job transmission / reception table is a table showing the server transmission time tsd indicated by the RTC 25 when the dummy job is transmitted, the job reception time tpa when the printer 40 receives the dummy job, and the print job number. It is stored in a predetermined area of the RAM 23. Here, the dummy job number is assigned to each dummy job by the CPU 21 when a dummy job is transmitted from the management server 20. The print job number is a number assigned by the printer CPU 41 when the printer 40 receives a print job or dummy job from the print server 30. Since the server transmission time tsd is a time measured by the RTC 25, it is represented as a current time at the time of transmission.

続いて、CPU21は、プリンタ40がダミージョブを受信したジョブ受信時刻tpaと印刷ジョブ番号とを返信するようプリントサーバ30に要求する(ステップS110)。これにより、プリントサーバ30やプリンタ40が起動しているときには、プリントサーバ30がジョブ受信時刻tpaと印刷ジョブ番号とを返信するようプリンタ40に要求し、この要求を受けたプリンタ40がプリントサーバ30にジョブ受信時刻tpaと印刷ジョブ番号とを返信する。そして、ジョブ受信時刻tpaと印刷ジョブ番号とを受信したプリントサーバ30がこれを管理サーバ20に返信する。ここで、ジョブ受信時刻tpaは、内部システムクロック41aで計測された時刻であり、プリンタを起動したときからの経過時間として表される。続いて、所定時間内にプリンタ40からジョブ受信時刻tpaと印刷ジョブ番号とを受信したか否かを判定し(ステップS115)、所定時間内にジョブ受信時刻tpaと印刷ジョブ番号とを受信しなかったときには、プリントサーバ30又はプリンタ40が起動していないと判断し、そのまま本ルーチンを終了する。一方、所定時間内にジョブ受信時刻tpaと印刷ジョブ番号とを受信したときには、そのジョブ受信時刻tpaと印刷ジョブ番号とをダミージョブ送受信テーブルのうちダミージョブ番号に対応したセルに記憶し(ステップS120)、本ルーチンを終了する。本ルーチンを終了した後は、管理サーバ20が電源断になるまでこのルーチンを繰り返し実行する。   Subsequently, the CPU 21 requests the print server 30 to return the job reception time tpa when the printer 40 received the dummy job and the print job number (step S110). Thus, when the print server 30 or the printer 40 is activated, the print server 30 requests the printer 40 to return the job reception time tpa and the print job number, and the printer 40 that has received this request returns the print server 30. Returns the job reception time tpa and the print job number. Then, the print server 30 that has received the job reception time tpa and the print job number returns it to the management server 20. Here, the job reception time tpa is a time measured by the internal system clock 41a, and is expressed as an elapsed time from when the printer is activated. Subsequently, it is determined whether or not the job reception time tpa and the print job number are received from the printer 40 within a predetermined time (step S115), and the job reception time tpa and the print job number are not received within the predetermined time. If this is the case, it is determined that the print server 30 or the printer 40 is not activated, and this routine is terminated. On the other hand, when the job reception time tpa and the print job number are received within the predetermined time, the job reception time tpa and the print job number are stored in the cell corresponding to the dummy job number in the dummy job transmission / reception table (step S120). ), This routine is terminated. After this routine is completed, this routine is repeatedly executed until the management server 20 is powered off.

次に、プリンタ40の印刷処理に関するログの作成及び保存の動作について説明する。図4はログ作成保存ルーチンのフローチャートである。このルーチンは、プリンタ40が起動したあと所定タイミングごと(例えば数msecごと)にプリンタ40のCPU41によって実行される。   Next, a description will be given of operations for creating and storing a log related to the printing process of the printer 40. FIG. 4 is a flowchart of the log creation / save routine. This routine is executed by the CPU 41 of the printer 40 at every predetermined timing (for example, every several msec) after the printer 40 is activated.

このルーチンが実行されると、CPU21は、プリントサーバ30から印刷ジョブを受信したか否かを判定し(ステップS200)、印刷ジョブを受信していないときにはそのままこのルーチンを終了する。一方、印刷ジョブを受信したときには、その印刷ジョブにつき、印刷ジョブを送信したユーザ名や印刷枚数などといった印刷処理内容やその印刷ジョブの印刷開始時刻をプリンタ用ログテーブルの対応する各セルに保存する(ステップS210)。図5にプリンタ用ログテーブルの一例を示す。プリンタ用ログテーブルとは、プリントサーバ30からプリンタ40に送信された印刷ジョブの印刷処理内容や処理時刻をテーブルとして表したものであり、RAM43の所定領域に保存されている。具体的には、プリンタ用ログテーブルには、図5に示すように、印刷ジョブを受信したときにCPU41により付与される印刷ジョブ番号と、印刷ジョブを受信したときの内部システムクロック41aの時刻であるジョブ受信時間tpaと、印刷処理を開始したときの内部システムクロック41aの時刻である印刷開始時刻tpsと、印刷処理が終了したときの内部システムクロック41aの時刻である印刷終了時刻tpeと、印刷を指示したユーザ名と、印刷枚数との対応関係が表される。このうち、印刷開始時刻tps及び印刷終了時刻tpeは、本実施形態では、プリンタ40の起動時を時刻ゼロとし、内部システムクロック41aで計測された起動時からの経過時間で表される。この印刷開始時刻tps及び印刷終了時刻tpeについては、印刷ジョブがダミージョブである場合には印刷が実行されないため、これらのセルはヌルとなる。なお、ステップS210では、印刷は未だ終了していないため、このときには印刷終了時刻tpeの情報については保存されない。また、印刷を指示したユーザ名については、印刷ジョブには送信元がいずれであるかを示す送信者情報が含まれているものとし、CPU41はこの送信者情報に基づいてユーザ名を判別する。本実施形態では、送信元がクライアントPC50である場合には、各クライアントPC50に割り当てられたIPアドレスが印刷ジョブに含まれるようにしてこのIPアドレスをクライアントPCのユーザ名として利用し、送信元が管理サーバ20の場合には、管理サーバ20が接続されているネットワークインタフェース26のI/F番号が印刷ジョブに含まれるようにしてこのI/F番号を管理サーバ20のユーザ名として利用する。   When this routine is executed, the CPU 21 determines whether or not a print job has been received from the print server 30 (step S200). If no print job has been received, this routine is terminated as it is. On the other hand, when a print job is received, the print processing contents such as the name of the user who sent the print job, the number of prints, and the print start time of the print job are stored in each corresponding cell of the printer log table. (Step S210). FIG. 5 shows an example of a printer log table. The printer log table represents the print processing contents and processing time of a print job transmitted from the print server 30 to the printer 40 as a table, and is stored in a predetermined area of the RAM 43. Specifically, as shown in FIG. 5, the printer log table includes a print job number given by the CPU 41 when a print job is received and the time of the internal system clock 41a when the print job is received. A certain job reception time tpa, a print start time tps that is the time of the internal system clock 41a when the print process is started, a print end time tpe that is the time of the internal system clock 41a when the print process is finished, and printing The correspondence between the name of the user who instructed the user and the number of printed sheets is displayed. Of these, the print start time tps and the print end time tpe are represented by the elapsed time from the start time measured by the internal system clock 41a with the time when the printer 40 is started as time zero. With respect to the print start time tps and the print end time tpe, if the print job is a dummy job, printing is not executed, so these cells are null. In step S210, since printing has not yet been completed, information on the print end time tpe is not saved at this time. Further, regarding the user name instructing printing, it is assumed that the print job includes sender information indicating the sender, and the CPU 41 determines the user name based on the sender information. In the present embodiment, when the transmission source is the client PC 50, the IP address assigned to each client PC 50 is included in the print job, and this IP address is used as the user name of the client PC. In the case of the management server 20, the I / F number of the network interface 26 to which the management server 20 is connected is included in the print job, and this I / F number is used as the user name of the management server 20.

続いて、CPU21は、印刷が終了したか否かを判定し(ステップS220)、印刷が終了していないときには印刷が終了するまでそのまま待機する。一方、印刷が終了したときには、内部システムクロック41aの時刻を読み出して印刷終了時刻tpeとし、対応する印刷ジョブ番号の「印刷終了時刻」のセルにその時刻を保存し(ステップS230)、本ルーチンを終了する。   Subsequently, the CPU 21 determines whether or not printing is finished (step S220), and when the printing is not finished, the CPU 21 stands by until the printing is finished. On the other hand, when printing is completed, the time of the internal system clock 41a is read out and set as the print end time tpe, and the time is stored in the “print end time” cell of the corresponding print job number (step S230). finish.

次に、管理サーバ20がプリンタ40のRAM43からログを取得して保存する動作について説明する。図6は、管理サーバ20のCPU21により実行されるログ管理ルーチンのフローチャートである。このルーチンは、管理サーバ20が起動されたのち所定タイミングごと(例えば10secごと)に実行される。   Next, an operation in which the management server 20 acquires and saves a log from the RAM 43 of the printer 40 will be described. FIG. 6 is a flowchart of a log management routine executed by the CPU 21 of the management server 20. This routine is executed every predetermined timing (for example, every 10 sec) after the management server 20 is activated.

このルーチンが実行されると、CPU21は、まず、誤差係数α及び起動時刻tsoを設定したか否かを判定する(ステップS300)。この誤差係数αについては後述する。そして、誤差係数α及び起動時刻tsoが未だ設定されていないときには、上述のダミージョブ送受信ルーチンの実行により管理サーバ20が起動後にダミージョブを2回送信したか否かを判定する(ステップS305)。ここで、管理サーバ40が起動後にダミージョブを2回送信したか否かは、ダミージョブ送受信テーブルに記憶されたダミージョブ番号に基づいて判定する。そして、管理サーバ20が起動後にダミージョブを未だ2回送信していないときにはそのまま待機し、管理サーバ20が起動後にダミージョブを2回送信しているときには、ダミージョブ送受信テーブルから2つのダミージョブのサーバ送信時刻tsd及びジョブ受信時刻tpaを読み出す(ステップS310)。   When this routine is executed, the CPU 21 first determines whether or not the error coefficient α and the activation time tso are set (step S300). This error coefficient α will be described later. When the error coefficient α and the activation time tso are not yet set, it is determined whether or not the management server 20 has transmitted the dummy job twice after activation by executing the above-described dummy job transmission / reception routine (step S305). Here, whether or not the management server 40 has transmitted the dummy job twice after activation is determined based on the dummy job number stored in the dummy job transmission / reception table. When the management server 20 has not yet transmitted the dummy job twice after starting, the management server 20 waits as it is, and when the management server 20 has transmitted the dummy job twice after starting, the dummy job transmission / reception table stores The server transmission time tsd and job reception time tpa are read (step S310).

続いて、読み出したそれぞれ2つのサーバ送信時刻tsd及びジョブ受信時刻tpaを用いて、RTC25に対する内部システムクロック41aの計測誤差を補正するための誤差係数αを算出し、算出した誤差係数αを用いて下記の式(1)によりプリンタ40の起動時刻tsoを推定し、誤差係数α及び起動時刻tsoをRAMに記憶する(ステップS315)。ここで、誤差係数αは、2つのダミージョブにおけるサーバ送信時刻tsd1,tsd2の差分をジョブ受信時刻tpd1,tpd2の差分で除することにより算出されたものであり、下記式(2)により表される。つまり、誤差係数αは、ジョブ受信時刻tpd1,tpd2間の時間をサーバ送信時刻tsd1,tsd2間の時間に合わせるための比である。例えば、プリンタ40の内部システムクロック41aの精度が低く時間の誤差が大きいときには時刻のズレも大きくなるため、この時間の誤差による時刻のズレを誤差係数αにより補正するのである。なお、これらの算出式は、HDD24に記憶されている。図7に、サーバ送信時刻tsd1,tsd2と、ジョブ受信時刻tpd1,tpd2と、誤差係数αと、プリンタ起動時間tsoとの関係を示す。   Subsequently, an error coefficient α for correcting the measurement error of the internal system clock 41a with respect to the RTC 25 is calculated using each of the two server transmission times tsd and job reception times tpa that have been read, and the calculated error coefficient α is used. The activation time tso of the printer 40 is estimated by the following equation (1), and the error coefficient α and the activation time tso are stored in the RAM (step S315). Here, the error coefficient α is calculated by dividing the difference between the server transmission times tsd1 and tsd2 in the two dummy jobs by the difference between the job reception times tpd1 and tpd2, and is expressed by the following equation (2). The That is, the error coefficient α is a ratio for adjusting the time between the job reception times tpd1 and tpd2 to the time between the server transmission times tsd1 and tsd2. For example, when the accuracy of the internal system clock 41a of the printer 40 is low and the time error is large, the time shift also increases. Therefore, the time shift due to this time error is corrected by the error coefficient α. Note that these calculation formulas are stored in the HDD 24. FIG. 7 shows the relationship among the server transmission times tsd1 and tsd2, the job reception times tpd1 and tpd2, the error coefficient α, and the printer activation time tso.

tso=tsd1-α・tpd1 ・・・(1)
α=(tsd2-tsd1)/(tpd2-tpd1) ・・・(2)
tso = tsd1-α ・ tpd1 (1)
α = (tsd2-tsd1) / (tpd2-tpd1) (2)

さて、ステップS315で誤差係数α及び起動時刻tsoを算出したあと又はステップS300で誤差係数α及び起動時刻tsoが既に設定済みと判定されたときには、CPU21は、プリンタ40のRAM43に保存されたプリンタ用ログテーブルの中から、未だログを受信していない印刷ジョブのうちダミージョブ以外のジョブであって最も小さい印刷ジョブ番号を有するログを返信するようプリントサーバ30に要求し(ステップS320)、このログを受信したか否かを判定し(ステップS325)、ログを受信したときにはそのログに含まれる各情報のうちジョブ受信時刻tpa以外の情報をログ管理テーブルの対応する各セルにそれぞれ保存する(ステップS330)。すなわち、管理サーバ20のCPU21がプリントサーバ30にログを返信するよう要求すると、まず、プリントサーバ30がプリンタ40にログを送信するよう要求する。この要求を受けたプリンタ40がプリンタ用ログテーブルの中に未送信であってユーザ名として管理サーバ20以外のユーザ名が記されたログが記憶されているか否かを調べ、プリンタ用ログテーブルにこのログが記憶されているときには、その中から最も小さい印刷ジョブ番号のログをプリントサーバ30に返信する。そして、ログを受信したプリントサーバ30が管理サーバ20に返信し、これを管理サーバ20が受信してログ管理テーブルの対応する各セルに保存する。   Now, after calculating the error coefficient α and the activation time tso in step S315, or when it is determined in step S300 that the error coefficient α and the activation time tso have already been set, the CPU 21 stores the printer data stored in the RAM 43 of the printer 40. From the log table, the print server 30 is requested to send back a log that is a job other than a dummy job among print jobs that have not yet received a log and has the smallest print job number (step S320). Is received (step S325), and when the log is received, information other than the job reception time tpa among the information included in the log is stored in each corresponding cell of the log management table (step S325). S330). That is, when the CPU 21 of the management server 20 requests the print server 30 to return a log, the print server 30 first requests the printer 40 to transmit the log. The printer 40 that has received this request has not been transmitted in the printer log table, and it is checked whether or not a log in which a user name other than the management server 20 is recorded as a user name is stored in the printer log table. When this log is stored, the log with the smallest print job number is returned to the print server 30. Then, the print server 30 that has received the log returns it to the management server 20, which is received by the management server 20 and stored in each corresponding cell of the log management table.

ログ管理テーブルについて説明する。図8にログ管理テーブルの一例を示す。ログ管理テーブルとは、プリンタ40で印刷が実行された印刷ジョブの印刷処理内容や処理時刻をテーブルとして表したものであり、HDD24の所定領域に保存されている。具体的には、ログ管理テーブルには、図8に示すように、印刷ジョブ番号と、印刷処理を開始したときの時刻をRTC25の時刻として表した印刷開始ログ時刻tssと、印刷処理が終了したときの時刻をRTC25の時刻として表した印刷終了ログ時刻tseと、印刷を指示したユーザ名と、印刷枚数との対応関係が表される。このうち、印刷開始ログ時刻tss及び印刷終了ログ時刻tseは、ステップS330では、プリントサーバ30から受信したログのうち、印刷開始時刻tps及び印刷終了時刻tpeがそれぞれ保存される。   The log management table will be described. FIG. 8 shows an example of the log management table. The log management table is a table representing the print processing content and processing time of a print job executed by the printer 40 and is stored in a predetermined area of the HDD 24. Specifically, in the log management table, as shown in FIG. 8, the print job number, the print start log time tss representing the time when the print process is started as the time of the RTC 25, and the print process are completed. The correspondence relationship between the print end log time tse, which represents the time as the time of the RTC 25, the name of the user who instructed printing, and the number of printed sheets is represented. Among these, the print start log time tss and the print end log time tse are stored in step S330, respectively, among the logs received from the print server 30, the print start time tps and the print end time tpe.

印刷ジョブのログを保存すると、CPU21は、プリンタ40の再起動があったか否かを判定する(ステップS335)。プリンタ40の再起動があったか否かは、印刷ジョブのジョブ受信時刻tpaに基づいて判断する。すなわち、今回受信した印刷ジョブの印刷ジョブ番号と今回受信した印刷ジョブよりも値1だけ小さい印刷ジョブ番号を有する印刷ジョブとのジョブ受信時刻tpaをプリンタ用ログテーブルから読み出して比較し、今回受信した印刷ジョブのジョブ受信時刻tpaの方が小さい場合にはプリンタ40の再起動があったと判定する。そして、プリンタ40の再起動があったときには、今回受信した印刷ジョブのジョブ番号よりも大きい印刷ジョブ番号を有するダミージョブがあるか否かを判定する(ステップS340)。今回受信した印刷ジョブの印刷ジョブ番号よりも大きい印刷ジョブ番号を有するダミージョブがあるか否かは、ダミージョブ送受信テーブルの印刷ジョブ番号によって判断する。そして、今回受信した印刷ジョブの印刷ジョブ番号よりも大きい印刷ジョブ番号を有するダミージョブがダミージョブ送受信テーブルにないときには、ダミージョブ送受信テーブルに保存されるまでそのまま待機する。一方、今回受信した印刷ジョブのジョブ番号よりも大きい印刷ジョブ番号を有するダミージョブがあるときには、そのダミージョブのログをダミージョブ送受信テーブルから読み出し(ステップS345)、プリンタ起動時刻tsoを再設定する(ステップS350)。具体的には、ステップS315で算出した誤差係数αと、ステップS345で読み出したサーバ送信時刻tsd及びジョブ受信時刻tpaと、上記式(1)とを用いてプリンタ起動時刻tsoを再計算する。これにより、プリンタを再起動したときの時刻がRTC25の時刻として算出される。   After saving the print job log, the CPU 21 determines whether the printer 40 has been restarted (step S335). Whether or not the printer 40 has been restarted is determined based on the job reception time tpa of the print job. That is, the job reception time tpa between the print job number of the print job received this time and the print job having a print job number that is smaller by 1 than the print job received this time is read from the printer log table, compared, and received this time If the job reception time tpa of the print job is smaller, it is determined that the printer 40 has been restarted. When the printer 40 is restarted, it is determined whether there is a dummy job having a print job number larger than the job number of the print job received this time (step S340). Whether there is a dummy job having a print job number larger than the print job number of the print job received this time is determined by the print job number in the dummy job transmission / reception table. If there is no dummy job having a print job number larger than the print job number of the print job received this time in the dummy job transmission / reception table, the process waits until it is stored in the dummy job transmission / reception table. On the other hand, if there is a dummy job having a print job number larger than the job number of the print job received this time, the dummy job log is read from the dummy job transmission / reception table (step S345), and the printer activation time tso is reset (step S345). Step S350). Specifically, the printer activation time tso is recalculated using the error coefficient α calculated in step S315, the server transmission time tsd and job reception time tpa read in step S345, and the above equation (1). Thereby, the time when the printer is restarted is calculated as the time of the RTC 25.

ステップS335でプリンタ40の再起動がないと判定されたとき又はステップS350でプリンタ40の起動時刻tsoを再設定した後は、CPU21は、ステップS330で保存したログのうち、印刷開始ログ時刻tssのセルに保存した印刷開始時刻tpsと印刷終了ログ時刻tseのセルに保存した印刷終了時刻tpeとをHDD24から読み出し、これらの時刻を管理サーバ20のRTC25で計測される時刻に相当する時刻にそれぞれ補正する(ステップS355)。つまり、印刷開始時刻tpsを印刷開始ログ時刻tssに変換し、印刷終了時刻tpeを印刷終了ログ時刻tseに変換する。この印刷開始時刻tpsから印刷開始ログ時刻tssへの変換及び印刷終了時刻tpeから印刷終了ログ時刻tseへの変換は、プリンタ起動時刻tsoと誤差係数αとを用いてそれぞれ下記式(3)及び式(4)により行う。   When it is determined in step S335 that the printer 40 has not been restarted or after the start time tso of the printer 40 is reset in step S350, the CPU 21 sets the print start log time tss among the logs saved in step S330. The print start time tps stored in the cell and the print end time tpe stored in the cell of the print end log time tse are read from the HDD 24, and these times are corrected to times corresponding to the times measured by the RTC 25 of the management server 20, respectively. (Step S355). That is, the print start time tps is converted into the print start log time tss, and the print end time tpe is converted into the print end log time tse. The conversion from the print start time tps to the print start log time tss and the conversion from the print end time tpe to the print end log time tse are performed using the following equation (3) and equation using the printer activation time tso and the error coefficient α, respectively. (4).

tss=tso+α・tps ・・・(3)
tse=tso+α・tpe ・・・(4)
tss = tso + α ・ tps (3)
tse = tso + α ・ tpe (4)

印刷開始ログ時刻tss及び印刷終了ログ時刻tseを算出すると、CPU21は、ログ管理テーブルのうち、対応する印刷ジョブ番号の印刷開始ログ時刻及び印刷終了ログ時刻として保存されている時刻を算出した時刻に更新し(ステップS360)、本ルーチンを終了する。これにより、HDD24のログ管理テーブルに含まれる印刷処理の時刻は、管理サーバ20のRTC25の時刻に合うように統一されて管理される。なお、本ルーチンを終了した後は、管理サーバ20が電源断になるまでこのルーチンを繰り返し実行する。   When the print start log time tss and the print end log time tse are calculated, the CPU 21 calculates the time stored as the print start log time and the print end log time of the corresponding print job number in the log management table. Update (step S360), and this routine ends. Thereby, the time of the printing process included in the log management table of the HDD 24 is unified and managed so as to match the time of the RTC 25 of the management server 20. After this routine is finished, this routine is repeatedly executed until the management server 20 is powered off.

ここで、プリンタ40の内部システムクロック41aで計測された時刻を管理サーバ20のRTC25で計測された時刻になるよう補正する動作について、図3,図5,図7及び図8を用いて具体的に説明する。まず、CPU21は、ダミージョブ送受信テーブル(図3参照)に記憶されたダミージョブのうちダミージョブ番号が値1のログの内容に含まれる時刻情報(サーバ送信時刻tsd1:9時00分00秒、ジョブ受信時刻tpa1:01分00秒)とダミージョブ番号が値2のログの内容に含まれる時刻情報(サーバ送信時刻tsd2:9時05分00秒、ジョブ受信時刻tpa2:05分30秒)とをすべて読み出す。続いて、サーバ送信時刻tsd2(9時05分00秒)とサーバ送信時刻tsd1(9時00分00秒)との差分(5分00秒)と、ジョブ受信時刻tpd2(05分30秒)とジョブ受信時刻tpd1(01分00秒)との差分(4分30秒)とを算出し、両者の差分比としての誤差係数α(5分00秒/4分30秒)を求める。次に、誤差係数αにジョブ受信時刻tpd1(01分00秒)を乗じ、この値をサーバ送信時刻tsd1(9時00分00秒)から減ずることによりプリンタ起動時刻tso(8時58分53秒)を算出する。今、印刷ジョブ番号が値3の印刷ジョブの印刷開始ログ時間tssを求めるとする(図5及び図8参照)。この印刷ジョブは、プリンタ40から受信したログの内容に含まれる印刷開始時刻tpsが10分00秒である(図5及び図8参照)。この時刻をRTC25の時間軸に合うように補正するには、上記式(3)を用いることにより行う。つまり、誤差係数αに印刷開始時刻tps(10分00秒)を乗じ、この値をプリンタ起動時刻tso(8時58分53秒)に足すことにより印刷開始ログ時刻(9時9分59秒)を算出する。なお、印刷終了ログ時間tseについても同様にして算出することができる。   Here, the operation for correcting the time measured by the internal system clock 41a of the printer 40 to be the time measured by the RTC 25 of the management server 20 will be specifically described with reference to FIGS. 3, 5, 7 and 8. FIG. Explained. First, the CPU 21 includes time information (server transmission time tsd1: 9:00:00, which is included in the log contents of the dummy job number 1 among the dummy jobs stored in the dummy job transmission / reception table (see FIG. 3). Job reception time tpa1: 01 minutes 00 seconds) and time information (server transmission time tsd2: 9: 05: 00, job reception time tpa2: 05 minutes 30 seconds) included in the log contents with the dummy job number value 2. Read all. Subsequently, the difference (5:00 minutes 00 seconds) between the server transmission time tsd2 (9:05:00) and the server transmission time tsd1 (9:00:00), the job reception time tpd2 (05 minutes 30 seconds), and A difference (4 minutes 30 seconds) from the job reception time tpd1 (01 minutes 00 seconds) is calculated, and an error coefficient α (5 minutes 00 seconds / 4 minutes 30 seconds) as a difference ratio between the two is calculated. Next, the printer start time tso (8:58:53) is obtained by multiplying the error coefficient α by the job reception time tpd1 (01:00) and subtracting this value from the server transmission time tsd1 (9:00:00). ) Is calculated. Now, it is assumed that the print start log time tss of the print job having the print job number 3 is obtained (see FIGS. 5 and 8). In this print job, the print start time tps included in the contents of the log received from the printer 40 is 10 minutes 00 seconds (see FIGS. 5 and 8). In order to correct this time so as to match the time axis of the RTC 25, the above equation (3) is used. In other words, the print start log time (9: 9: 59) is obtained by multiplying the error coefficient α by the print start time tps (10:00) and adding this value to the printer start time tso (8:58:53). Is calculated. The print end log time tse can be calculated in the same manner.

次に、管理サーバ20によるプリンタ40の監視が継続している最中にプリンタ40が再起動された場合を考える。例えば、印刷ジョブ番号6の印刷ジョブがプリンタ40に送信される前にプリンタ40の再起動があったとする。この場合、先に求めた誤差係数αと印刷ジョブ番号6の後にプリンタ40に送信されたダミージョブ(ここではダミージョブ番号が値5のもの)とを用いて、上記式(1)によりプリンタ起動時間tsoを再設定する。つまり、誤差係数αにジョブ受信時刻tpd(03分00秒)を乗じ、この値をサーバ送信時刻tsd(9時20分00秒)から減ずることによりプリンタ起動時刻tso(9時16分42秒)を算出する。そして、印刷ジョブ番号6の印刷開始時刻tps(01分00秒)に誤差係数αを乗じ、この値をプリンタ起動時刻tso(9時16分42秒)に足すことにより印刷開始ログ時刻(9時17分48秒)を算出する。   Next, consider a case where the printer 40 is restarted while the management server 20 continues to monitor the printer 40. For example, assume that the printer 40 is restarted before the print job with the print job number 6 is transmitted to the printer 40. In this case, the printer is activated according to the above equation (1) using the previously obtained error coefficient α and the dummy job transmitted to the printer 40 after the print job number 6 (here, the dummy job number is 5). Reset time tso. That is, by multiplying the error coefficient α by the job reception time tpd (03:00) and subtracting this value from the server transmission time tsd (9:20:00), the printer activation time tso (9:16:42) Is calculated. Then, the print start log time (9 o'clock) is obtained by multiplying the print start time tps (01 minutes 00 seconds) of the print job number 6 by the error coefficient α and adding this value to the printer start time tso (9:16:42). 17 minutes 48 seconds) is calculated.

ここで、本実施形態の構成要素と本発明の構成要素との対応関係を明らかにする。本実施形態のプリンタ40が本発明の画像処理装置に相当し、プリンタ40の内部システムクロック41aが相対時刻計測機能に相当し、管理サーバ20がログ管理装置に相当する。また、RTC25が基準時刻計測手段に相当し、管理サーバ20のCPU21がダミージョブ送信手段、ログ取得手段及び時刻補正手段に相当し、RAM23が送信時間記憶手段に相当する。また、HDD24がログ記憶手段に相当し、プリントサーバ30がジョブ管理装置に相当する。なお、本実施形態では、管理サーバ20及びプリンタ40の動作を説明すると同時に、本発明のログ管理方法やそのプログラムについても併せて説明した。   Here, the correspondence between the components of the present embodiment and the components of the present invention will be clarified. The printer 40 of this embodiment corresponds to the image processing apparatus of the present invention, the internal system clock 41a of the printer 40 corresponds to the relative time measurement function, and the management server 20 corresponds to the log management apparatus. The RTC 25 corresponds to a reference time measuring unit, the CPU 21 of the management server 20 corresponds to a dummy job transmission unit, a log acquisition unit, and a time correction unit, and the RAM 23 corresponds to a transmission time storage unit. The HDD 24 corresponds to a log storage unit, and the print server 30 corresponds to a job management apparatus. In the present embodiment, the operations of the management server 20 and the printer 40 are described, and at the same time, the log management method of the present invention and its program are also described.

以上詳述した本実施形態のログ管理システム10によれば、管理サーバ20からプリンタ40にダミージョブを送信した後にこのダミージョブのログをプリンタ40から取得することにより管理サーバ20のRTC25の時刻とプリンタ40の内部システムクロック41aの時刻とを関係づける。このように、管理サーバ20からプリンタ40にダミージョブを送信することにより、管理サーバ20とプリンタ40との間で特別に時刻同期を行わなくても、プリンタ40で計測された印刷開始時刻tpsと印刷終了時刻tpeを管理サーバ20の時間軸に合わせた時刻に補正することができる。したがって、プリンタ40から取得したログに含まれる時刻を管理サーバ20のRTC25を時間軸として統一して管理することができる。   According to the log management system 10 of this embodiment described in detail above, the dummy job log is acquired from the printer 40 after the dummy job is transmitted from the management server 20 to the printer 40, whereby the time of the RTC 25 of the management server 20 is obtained. The time of the internal system clock 41a of the printer 40 is related. In this way, by transmitting a dummy job from the management server 20 to the printer 40, the print start time tps measured by the printer 40 can be obtained without special time synchronization between the management server 20 and the printer 40. The print end time tpe can be corrected to a time that matches the time axis of the management server 20. Therefore, the time included in the log acquired from the printer 40 can be managed by unifying the RTC 25 of the management server 20 as a time axis.

また、ダミージョブは印刷枚数がゼロに設定されているため、本来行うべき印刷を妨げることがないし、印刷用紙や着色剤(インクやトナーなど)を無駄にしない。また、プリンタ40がダミージョブを受信した時刻を用いて印刷開始時刻tpsや印刷終了時刻tpeの補正を行うため、より正確に補正を行うことができる。   In addition, since the number of printed sheets of the dummy job is set to zero, printing that should be performed is not hindered, and printing paper and colorant (ink, toner, etc.) are not wasted. Further, since the print start time tps and the print end time tpe are corrected using the time when the printer 40 receives the dummy job, the correction can be performed more accurately.

更に、誤差係数αを用いて印刷開始時刻tpsや印刷終了時刻tpeの補正を行うため、プリンタ40の内部システムクロック41aの精度が低いときにも、より正確な時刻をログとして管理することができる。また、誤差係数αは、2つのダミージョブから算出するため、比較的容易に算出することができる。   Furthermore, since the printing start time tps and the printing end time tpe are corrected using the error coefficient α, more accurate time can be managed as a log even when the accuracy of the internal system clock 41a of the printer 40 is low. . Further, since the error coefficient α is calculated from two dummy jobs, it can be calculated relatively easily.

更にまた、所定間隔ごとにダミージョブを送信するため、プリンタ40の再起動によってプリンタ40の内部システムクロック41aの基準が変わったときにも新たなダミージョブのログを用いて印刷開始時刻tpsや印刷終了時刻tpeの補正を正確に行うことができる。   Furthermore, since a dummy job is transmitted at predetermined intervals, even when the standard of the internal system clock 41a of the printer 40 is changed by restarting the printer 40, the print start time tps and printing are performed using a new dummy job log. The end time tpe can be corrected accurately.

なお、本発明は上述した実施形態に何ら限定されることはなく、本発明の技術的範囲に属する限り種々の態様で実施し得ることはいうまでもない。   It should be noted that the present invention is not limited to the above-described embodiment, and it goes without saying that the present invention can be implemented in various modes as long as it belongs to the technical scope of the present invention.

例えば、上述した実施形態では、内部システムクロック41aでの計測誤差つまり誤差係数αを考慮して印刷開始時刻tpsや印刷終了時刻tpeの補正を行ったが、誤差係数αを考慮しないで補正を行うとしてもよい。つまり、図6の代わりに図9のログ管理ルーチンを実行するとしてもよい。図9において、図6と同じ処理については図6と同じステップ番号を付してその説明を省略する。図9のルーチンが開始されると、CPU21は、まず、ステップS320〜S330の処理を実行したあと、RAM23のダミージョブ送受信テーブルからダミージョブ番号が最も大きいダミージョブのログを読み出す(ステップS410)。続いて、このダミージョブのログを用いて、ステップS330で受信したログのうち印刷開始時刻tps及び印刷終了時刻tpeの補正を行う(ステップS420)。この補正は、図10に示すように、印刷開始時刻tps又は印刷終了時刻tpeとダミージョブのジョブ受信時刻tpaとの差分を求め、ダミージョブのサーバ送信時刻tsdにこの差分を足した時刻を印刷開始ログ時刻tss又は印刷終了ログ時刻tseとすることにより行う。ここで、印刷ジョブ番号3(図5参照)とダミージョブ番号2(図3参照)とを用いて印刷ジョブ番号3の印刷開始時刻tpsを補正する動作について具体的に説明する。印刷ジョブ番号3の印刷開始時刻tps(10分00秒)を印刷開始ログ時刻tssに補正するには、まず、印刷ジョブ番号3の印刷開始時刻tps(10分00秒)からダミージョブ番号2のジョブ受信時刻tpa(05分30秒)の差分を求める。続いて、この差分(4分30秒)をサーバ送信時刻tsd(9時05分)に足す。このようにして求めた時刻つまり9時9分35秒が印刷開始ログ時刻tssになる。なお、印刷終了ジョブ時刻tseについても同様にして求めることができる。さて、ステップS420で印刷開始時刻tps及び印刷終了時刻tpeの補正を行うと、印刷開始時刻tps及び印刷終了時刻tpeを補正後の値に更新し(ステップS360)、本ルーチンを終了する。この場合にも、プリンタ40から取得したログに含まれる時刻を管理サーバ20のRTC25に合わせることで、統一した時間軸でログを管理することができる。このとき、管理サーバ20からプリンタ40へダミージョブを送信する頻度を上げることが好ましい。こうすれば、誤差係数αを算出しなくてもログ時刻の正確性を確保することができる。   For example, in the embodiment described above, the print start time tps and the print end time tpe are corrected in consideration of the measurement error in the internal system clock 41a, that is, the error coefficient α. However, the correction is performed without considering the error coefficient α. It is good. That is, the log management routine of FIG. 9 may be executed instead of FIG. 9, the same processes as those in FIG. 6 are denoted by the same step numbers as those in FIG. When the routine of FIG. 9 is started, the CPU 21 first executes the processes of steps S320 to S330, and then reads the log of the dummy job having the largest dummy job number from the dummy job transmission / reception table of the RAM 23 (step S410). Subsequently, using the log of the dummy job, the print start time tps and the print end time tpe are corrected in the log received in step S330 (step S420). In this correction, as shown in FIG. 10, the difference between the print start time tps or print end time tpe and the job reception time tpa of the dummy job is obtained, and the time obtained by adding this difference to the server transmission time tsd of the dummy job is printed. This is done by setting the start log time tss or the print end log time tse. Here, the operation of correcting the print start time tps of the print job number 3 using the print job number 3 (see FIG. 5) and the dummy job number 2 (see FIG. 3) will be specifically described. In order to correct the print start time tps (10:00) of the print job number 3 to the print start log time tss, first, from the print start time tps (10:00) of the print job number 3, the dummy job number 2 The difference between the job reception times tpa (05 minutes 30 seconds) is obtained. Subsequently, this difference (4 minutes 30 seconds) is added to the server transmission time tsd (9:05). The time thus obtained, that is, 9: 9: 35, becomes the print start log time tss. The print end job time tse can be obtained in the same manner. When the print start time tps and the print end time tpe are corrected in step S420, the print start time tps and the print end time tpe are updated to the corrected values (step S360), and this routine ends. Also in this case, by matching the time included in the log acquired from the printer 40 with the RTC 25 of the management server 20, the log can be managed on a unified time axis. At this time, it is preferable to increase the frequency with which the dummy job is transmitted from the management server 20 to the printer 40. In this way, the accuracy of the log time can be ensured without calculating the error coefficient α.

上述した実施形態において、誤差係数αを算出する際、管理サーバ20のHDD24に記憶されたログ管理テーブルの中から読み出したログと1回のダミージョブのログとを用いて算出するとしてもよい。すなわち、ログ管理テーブルとして印刷ジョブの印刷開始時刻tpsを記憶しておくセルを設け、この印刷ジョブの印刷開始時刻tps,印刷開始ジョブ時刻tss及びダミージョブのジョブ受信時刻tpa,サーバ送信時刻tsdから誤差係数αを算出してもよい。具体的には、印刷開始ジョブ時刻tssとサーバ送信時刻tsdとの差分を印刷開始時刻tpsとジョブ受信時刻tpaとの差分で除した値を誤差係数αとする。   In the embodiment described above, when calculating the error coefficient α, the error coefficient α may be calculated using a log read from the log management table stored in the HDD 24 of the management server 20 and a log of one dummy job. That is, a cell for storing the print start time tps of the print job is provided as a log management table. From the print start time tps, the print start job time tss of the print job, the job reception time tpa of the dummy job, and the server transmission time tsd The error coefficient α may be calculated. Specifically, a value obtained by dividing the difference between the print start job time tss and the server transmission time tsd by the difference between the print start time tps and the job reception time tpa is defined as an error coefficient α.

上述した実施形態では、プリンタ起動時刻tsoを算出してプリンタ起動時刻tsoからの経過時間によってプリンタ40の処理時刻を求めたが、ダミージョブを送信した時刻であるサーバ送信時刻tsdからの時間によってプリンタ40の処理時刻を求めるとしてもよい。具体的には、ダミージョブのジョブ受信時刻tpaとプリンタ40の処理時刻tps,tpeとの差分に誤差係数αを乗じ、この値にサーバ送信時刻tsdを足すことによってプリンタ40の処理時刻を算出するとしてもよい。   In the above-described embodiment, the printer activation time tso is calculated and the processing time of the printer 40 is obtained from the elapsed time from the printer activation time tso. For example, 40 processing times may be obtained. Specifically, the processing time of the printer 40 is calculated by multiplying the difference between the job reception time tpa of the dummy job and the processing times tps and tpe of the printer 40 by the error coefficient α and adding this value to the server transmission time tsd. It is good.

上述した実施形態では、プリンタ40と管理サーバ20とがプリントサーバ30を介して接続される構成としたが、プリンタ40と管理サーバ20とが直接接続される構成をしていてもよい。この場合にも、上述した実施形態と同様の効果が得られる。なお、プリントサーバ30を介してプリンタ40と管理サーバ20とが接続される構成においては、プリントサーバ30の有する内部システムクロック31aを時間軸としてプリンタ40がログを作成する場合がある。この場合に本発明を適用することにより、プリンタ40の内部システムクロック41aでの計測誤差だけでなく、プリントサーバ30の有する内部システムクロック31aでの計測誤差を加味した補正を行うことができる。したがって、プリントサーバ30を介して接続される構成であってプリントサーバ30の有する内部システムクロック31aを時間軸としてプリンタ40がログを作成する場合には、本発明を適用する意義が高い。   In the above-described embodiment, the printer 40 and the management server 20 are connected via the print server 30, but the printer 40 and the management server 20 may be directly connected. Also in this case, the same effect as the above-described embodiment can be obtained. In a configuration in which the printer 40 and the management server 20 are connected via the print server 30, the printer 40 may create a log using the internal system clock 31a of the print server 30 as a time axis. In this case, by applying the present invention, it is possible to perform correction in consideration of not only the measurement error in the internal system clock 41a of the printer 40 but also the measurement error in the internal system clock 31a of the print server 30. Therefore, when the printer 40 creates a log using the internal system clock 31a of the print server 30 as a time axis, the connection is made via the print server 30, it is highly significant to apply the present invention.

上述した実施形態において、管理サーバ20はプリントサーバ30に印刷ジョブが蓄積されていないときにダミージョブを送信するとしてもよい。こうすれば、ダミージョブがプリントサーバ30からプリンタ40に送信されるまでの待ち時間がないため、サーバ送信時刻tsdとジョブ受信時刻tpaとをより正確に関係づけることができる。したがって、プリンタ40での処理時刻をより正確に補正することができる。   In the embodiment described above, the management server 20 may transmit a dummy job when no print job is stored in the print server 30. In this way, since there is no waiting time until the dummy job is transmitted from the print server 30 to the printer 40, the server transmission time tsd and the job reception time tpa can be more accurately related. Therefore, the processing time in the printer 40 can be corrected more accurately.

上述した実施形態では、画像処理装置としてプリンタ40を用いたが、ダミージョブを受信可能な画像処理装置であればこれに限定されるものではなく、例えばファクシミリ装置やコピー機、複合機などのような電子機器に本発明を適用してもよい。   In the above-described embodiment, the printer 40 is used as the image processing apparatus. However, the image processing apparatus is not limited to this as long as it is capable of receiving a dummy job. For example, a facsimile machine, a copier, a multifunction machine, or the like is used. The present invention may be applied to various electronic devices.

ログ管理システム10の概略構成を示す構成図。1 is a configuration diagram showing a schematic configuration of a log management system 10. FIG. ダミージョブ送信ルーチンのフローチャート。The flowchart of a dummy job transmission routine. ダミージョブ送受信テーブルの一例を示す説明図。Explanatory drawing which shows an example of a dummy job transmission / reception table. ログ作成保存ルーチンのフローチャート。The flowchart of a log creation preservation routine. プリンタ用ログテーブルの一例を示す説明図。FIG. 3 is an explanatory diagram illustrating an example of a printer log table. ログ管理ルーチンのフローチャート。The flowchart of a log management routine. サーバ送信時刻とジョブ受信時刻と誤差係数とプリンタ起動時間との関係を説明する説明図。Explanatory drawing explaining the relationship between server transmission time, job reception time, error coefficient, and printer activation time. ログ管理テーブルの一例を示す説明図。Explanatory drawing which shows an example of a log management table. 他のログ管理ルーチンのフローチャート。The flowchart of another log management routine. サーバ送信時刻とジョブ受信時刻との関係を説明する説明図。Explanatory drawing explaining the relationship between server transmission time and job reception time.

符号の説明Explanation of symbols

10 ログ管理システム、20 管理サーバ、21 CPU、22 ROM、23 RAM、24 HDD、24a ログ管理プログラム、24b ログ、25 RTC、26 ネットワークインタフェース、27 バス、30 プリントサーバ、31 CPU、31a 内部システムクロック、32 ROM、33 RAM、34 外部通信インタフェース、35 ネットワークインタフェース、36 バス、40 プリンタ、41 CPU、41a 内部システムクロック、42 ROM、42a ジョブ情報管理プログラム、43 RAM、44 外部通信インタフェース、45 印刷機構、46 バス、50 クライアントPC、51 ディスプレイ、52 入力装置。   10 log management system, 20 management server, 21 CPU, 22 ROM, 23 RAM, 24 HDD, 24a log management program, 24b log, 25 RTC, 26 network interface, 27 bus, 30 print server, 31 CPU, 31a internal system clock 32 ROM, 33 RAM, 34 External communication interface, 35 Network interface, 36 Bus, 40 Printer, 41 CPU, 41a Internal system clock, 42 ROM, 42a Job information management program, 43 RAM, 44 External communication interface, 45 Printing mechanism , 46 buses, 50 client PCs, 51 displays, 52 input devices.

Claims (12)

画像処理を伴う画像処理用ジョブに基づいて画像処理を実行し少なくとも所定の基準時からの経過時間によって特定される相対時刻を計測可能な相対時刻計測機能を有する画像処理装置とネットワークを介して接続され該画像処理装置のログを管理するログ管理装置であって、
基準時刻を計測する基準時刻計測手段と、
前記画像処理用ジョブを模したダミージョブを前記画像処理装置に送信するダミージョブ送信手段と、
前記ダミージョブ送信手段から前記ダミージョブを送信したときの基準時刻である送信基準時刻に関する情報を記憶する送信時刻記憶手段と、
前記画像処理装置が前記ダミージョブを処理したときの相対時刻に関する情報を含む前記ダミージョブのログと前記画像処理用ジョブを処理したときの相対時刻に関する情報を含む前記画像処理用ジョブのログとを取得するログ取得手段と、
前記送信基準時刻に関する情報と前記ダミージョブのログとに基づいて前記画像処理用ジョブのログのうち相対時刻に関する情報を前記基準時刻の時間軸に合うように補正する時刻補正手段と、
前記時刻補正手段によって補正された情報を前記画像処理装置のログとして記憶するログ記憶手段と、
を備えたログ管理装置。
Connected via an image processing device with a relative time measurement function capable of measuring image processing based on an image processing job involving image processing and measuring at least the relative time specified by the elapsed time from a predetermined reference time A log management device for managing a log of the image processing device,
A reference time measuring means for measuring the reference time;
Dummy job transmitting means for transmitting a dummy job imitating the image processing job to the image processing apparatus;
A transmission time storage means for storing information relating to a transmission reference time that is a reference time when the dummy job is transmitted from the dummy job transmission means;
A log of the dummy job including information on relative time when the image processing apparatus processes the dummy job, and a log of the image processing job including information on relative time when the image processing job is processed. Log acquisition means to acquire;
Time correction means for correcting the information on the relative time in the log of the image processing job based on the information on the transmission reference time and the log of the dummy job so as to match the time axis of the reference time;
Log storage means for storing information corrected by the time correction means as a log of the image processing device;
Log management device with
前記ダミージョブは画像処理を伴わないものであり、
前記ログ取得手段は、前記画像処理装置が前記ダミージョブを処理したときの相対時刻に関する情報として、前記画像処理装置が前記ダミージョブを受信したときの相対時刻に関する情報を取得する、
請求項1に記載のログ管理装置。
The dummy job does not involve image processing,
The log acquisition unit acquires information on a relative time when the image processing apparatus receives the dummy job as information on a relative time when the image processing apparatus processes the dummy job.
The log management apparatus according to claim 1.
前記ダミージョブ送信手段は、前記ダミージョブを1回送信し、
前記時刻補正手段は、前記ダミージョブ送信手段により送信された1回のダミージョブにつき、前記相対時刻計測機能により計測された相対時刻と前記基準時刻計測手段により計測される基準時刻との関係に基づいて前記画像処理用ジョブのログのうち相対時刻に関する情報を前記基準時刻の時間軸に合うように補正する、
請求項1又は2に記載のログ管理装置。
The dummy job transmission means transmits the dummy job once,
The time correction means is based on the relationship between the relative time measured by the relative time measurement function and the reference time measured by the reference time measurement means for one dummy job transmitted by the dummy job transmission means. Correct the information related to the relative time in the log of the image processing job so that it matches the time axis of the reference time,
The log management apparatus according to claim 1 or 2.
前記時刻補正手段は、前記相対時刻計測機能での計測誤差を考慮して前記画像処理用ジョブのログのうち相対時刻に関する情報を前記基準時刻の時間軸に合うように補正する、
請求項1〜3のいずれかに記載のログ管理装置。
The time correction means corrects the information related to the relative time in the log of the image processing job so as to match the time axis of the reference time in consideration of the measurement error in the relative time measurement function;
The log management apparatus according to claim 1.
前記ダミージョブ送信手段は、前記ダミージョブを2回送信し、
前記時刻補正手段は、前記ダミージョブ送信手段により送信された2回のダミージョブにつき、前記相対時刻計測機能により計測された相対時刻と前記基準時刻計測手段により計測される基準時刻との関係を算出し、該算出した関係に基づいて前記画像処理用ジョブのログのうち相対時刻に関する情報を前記基準時刻の時間軸に合うように補正することにより前記相対時刻計測機能での計測誤差を考慮する、
請求項4に記載のログ管理装置。
The dummy job transmission means transmits the dummy job twice,
The time correction means calculates the relationship between the relative time measured by the relative time measurement function and the reference time measured by the reference time measurement means for the two dummy jobs transmitted by the dummy job transmission means. And taking into account the measurement error in the relative time measurement function by correcting the information related to the relative time in the log of the image processing job based on the calculated relationship so as to match the time axis of the reference time.
The log management apparatus according to claim 4.
前記ダミージョブ送信手段は、所定間隔ごとに前記ダミージョブを送信する、
請求項1〜5のいずれかに記載のログ管理装置。
The dummy job transmission means transmits the dummy job at predetermined intervals.
The log management apparatus according to claim 1.
前記所定の基準時は、前記画像処理装置の起動時であり、
前記ダミージョブ送信手段は、前記画像処理装置が起動されたのちに再起動されたときには該再起動後に前記ダミージョブを少なくとも1回送信する、
請求項1〜6のいずれかに記載のログ管理装置。
The predetermined reference time is when the image processing apparatus is activated,
The dummy job transmission means transmits the dummy job at least once after the restart when the image processing apparatus is restarted after being started.
The log management apparatus according to claim 1.
前記画像処理装置は、前記画像処理用ジョブ及び前記ダミージョブを受信し該受信した前記画像処理用ジョブ及び前記ダミージョブを該画像処理装置に送信するジョブ管理装置を介在して前記ログ管理装置に接続され、前記ジョブ管理装置の有する時刻計測機能によって特定される相対時刻を時間軸にした相対時刻をログとして前記ログ管理装置に送信する、
請求項1〜7のいずれかに記載のログ管理装置。
The image processing apparatus receives the image processing job and the dummy job, and sends the received image processing job and the dummy job to the log management apparatus via a job management apparatus that transmits the image processing job and the dummy job to the image processing apparatus. Connected to the log management device as a log relative time with the relative time specified by the time measurement function of the job management device as a time axis,
The log management apparatus according to claim 1.
請求項8に記載のログ管理装置であって、
前記ジョブ管理装置に前記画像処理用ジョブが蓄積されているか否かを判定するジョブ判定手段、
を備え、
前記ダミージョブ送信手段は、前記ジョブ判定手段によって前記ジョブ管理装置に前記画像処理用ジョブが蓄積されていないと判定されたときに前記ダミージョブを送信する、
ログ管理装置。
The log management device according to claim 8,
Job determination means for determining whether or not the image processing job is stored in the job management apparatus;
With
The dummy job transmission unit transmits the dummy job when the job determination unit determines that the image processing job is not stored in the job management apparatus;
Log management device.
請求項1〜9のいずれかに記載のログ管理装置と、
画像データを含む画像処理用ジョブに基づいて画像処理を実行し少なくとも所定の基準時からの経過時間によって特定される相対時刻を計測可能な相対時刻計測機能を有する画像処理装置と、
を備えたログ管理システム。
A log management device according to claim 1;
An image processing apparatus having a relative time measurement function capable of performing image processing based on an image processing job including image data and measuring a relative time specified by at least an elapsed time from a predetermined reference time;
Log management system with
基準時刻を計測する基準時刻計測手段を備え、画像処理を伴う画像処理用ジョブに基づいて画像処理を実行し少なくとも所定の基準時からの経過時間によって特定される相対時刻を計測可能な相対時刻計測機能を有する画像処理装置とネットワークを介して接続され該画像処理装置のログを管理するログ管理方法であって、
(a)前記画像処理用ジョブを模した画像処理を伴わないダミージョブを前記画像処理装置に送信するステップと、
(b)前記ステップ(b)で前記ダミージョブを送信したときの基準時刻である送信基準時刻に関する情報を記憶するステップと、
(c)前記画像処理装置が前記ダミージョブを処理したときの相対時刻に関する情報を含む前記ダミージョブのログと前記画像処理用ジョブを処理したときの相対時刻に関する情報を含む前記画像処理用ジョブのログとを取得するステップと、
(d)前記ステップ(b)で記憶した前記送信基準時刻に関する情報と前記ステップ(c)で取得した前記ダミージョブのログとに基づいて前記ステップ(c)で取得した前記画像処理用ジョブを処理したときの相対時刻に関する情報を前記基準時刻の時間軸に合うように補正するステップと、
(e)前記ステップ(d)で補正した情報を前記画像処理装置のログとして記憶するステップと、
を含むログ管理方法。
Relative time measurement that includes a reference time measurement means for measuring a reference time, and that can execute image processing based on an image processing job that accompanies image processing and can measure at least a relative time specified by an elapsed time from a predetermined reference time A log management method for managing a log of an image processing apparatus connected to an image processing apparatus having a function via a network,
(A) transmitting a dummy job without image processing imitating the image processing job to the image processing apparatus;
(B) storing information relating to a transmission reference time, which is a reference time when the dummy job is transmitted in the step (b);
(C) a log of the dummy job including information regarding a relative time when the image processing apparatus processes the dummy job and an image processing job including information regarding a relative time when the image processing job is processed; A step to get logs and
(D) Process the image processing job acquired in step (c) based on the information related to the transmission reference time stored in step (b) and the log of the dummy job acquired in step (c). Correcting the information related to the relative time to match the time axis of the reference time;
(E) storing the information corrected in step (d) as a log of the image processing apparatus;
Log management method.
請求項11に記載のログ管理方法の各ステップを1又は複数のコンピュータに実行させるためのログ管理プログラム。   A log management program for causing one or more computers to execute each step of the log management method according to claim 11.
JP2006101314A 2006-04-03 2006-04-03 Log management device, log management system, log management method and program thereof Expired - Fee Related JP4692359B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006101314A JP4692359B2 (en) 2006-04-03 2006-04-03 Log management device, log management system, log management method and program thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006101314A JP4692359B2 (en) 2006-04-03 2006-04-03 Log management device, log management system, log management method and program thereof

Publications (2)

Publication Number Publication Date
JP2007279781A JP2007279781A (en) 2007-10-25
JP4692359B2 true JP4692359B2 (en) 2011-06-01

Family

ID=38681199

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006101314A Expired - Fee Related JP4692359B2 (en) 2006-04-03 2006-04-03 Log management device, log management system, log management method and program thereof

Country Status (1)

Country Link
JP (1) JP4692359B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5676950B2 (en) * 2009-08-20 2015-02-25 キヤノン株式会社 Image forming apparatus
JP7188145B2 (en) * 2019-01-31 2022-12-13 ブラザー工業株式会社 Time adjustment device, printing device, time adjustment method, and time adjustment program

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000242618A (en) * 1999-02-18 2000-09-08 Nec Corp Network system and time synchronization method therefor
JP2000285038A (en) * 1999-03-30 2000-10-13 Hitachi Software Eng Co Ltd Method for setting time
JP2005327053A (en) * 2004-05-13 2005-11-24 Ricoh Co Ltd Log information management device, log information generation device, log information management program and recording medium
JP2006195538A (en) * 2005-01-11 2006-07-27 Konica Minolta Business Technologies Inc Information processing apparatus, time information correcting method, time information correcting program, and recording medium with the program recorded thereon
JP2006344020A (en) * 2005-06-09 2006-12-21 Seiko Epson Corp Log information management device, log information management system, log information management method, log information production management method and program

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2658962B2 (en) * 1995-03-15 1997-09-30 日本電気株式会社 Network time information synchronization method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000242618A (en) * 1999-02-18 2000-09-08 Nec Corp Network system and time synchronization method therefor
JP2000285038A (en) * 1999-03-30 2000-10-13 Hitachi Software Eng Co Ltd Method for setting time
JP2005327053A (en) * 2004-05-13 2005-11-24 Ricoh Co Ltd Log information management device, log information generation device, log information management program and recording medium
JP2006195538A (en) * 2005-01-11 2006-07-27 Konica Minolta Business Technologies Inc Information processing apparatus, time information correcting method, time information correcting program, and recording medium with the program recorded thereon
JP2006344020A (en) * 2005-06-09 2006-12-21 Seiko Epson Corp Log information management device, log information management system, log information management method, log information production management method and program

Also Published As

Publication number Publication date
JP2007279781A (en) 2007-10-25

Similar Documents

Publication Publication Date Title
JP6355330B2 (en) Network device, network device control method and program thereof
JP2000148434A (en) Print system
JP2023168372A (en) application program
JP5699731B2 (en) Image processing apparatus and program
JP4420053B2 (en) Information management apparatus, information management method and program thereof
JP2006344020A (en) Log information management device, log information management system, log information management method, log information production management method and program
JP4692359B2 (en) Log management device, log management system, log management method and program thereof
US20060007487A1 (en) Printer, control method, program and recording medium
JP5979944B2 (en) Printing system, printing apparatus used in printing system, printing method, and program
JP2005327053A (en) Log information management device, log information generation device, log information management program and recording medium
JP3933018B2 (en) Printer and information processing apparatus
JP2007048303A (en) Printer, printing system and program
JP2000215019A (en) Device and method for image formation
JP2010140286A (en) Information processing apparatus, printing system and program
JP2007278873A (en) Time synchronizer, time synchronization method, and program thereof
JP2006227731A (en) Data output system and connection method
JP2010039879A (en) Power management system and program
JP6605077B2 (en) Information processing apparatus, information processing apparatus control method, and program thereof
US20200341710A1 (en) Job transmission device, job processing device, program, and job transmission method performed by job transmission device
JP2009076003A (en) Printing system, printer and printer monitoring program
US8860985B2 (en) Image forming apparatus for reducing power consumption using a commonly accessible shared memory
JP4071587B2 (en) Peripheral equipment management system
JP2007245634A (en) Image forming device
JP2002304268A (en) Printing system, printer, and print control device
JP5088399B2 (en) Printing system

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20090327

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20110113

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20110125

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20110207

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

Free format text: PAYMENT UNTIL: 20140304

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Ref document number: 4692359

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

LAPS Cancellation because of no payment of annual fees