JP2016066214A - Log recording device, control method, and program - Google Patents
Log recording device, control method, and program Download PDFInfo
- Publication number
- JP2016066214A JP2016066214A JP2014194275A JP2014194275A JP2016066214A JP 2016066214 A JP2016066214 A JP 2016066214A JP 2014194275 A JP2014194275 A JP 2014194275A JP 2014194275 A JP2014194275 A JP 2014194275A JP 2016066214 A JP2016066214 A JP 2016066214A
- Authority
- JP
- Japan
- Prior art keywords
- log
- log information
- image processing
- recording
- history
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Landscapes
- Debugging And Monitoring (AREA)
Abstract
Description
本発明は、ログ記録装置、制御方法及びプログラムに関する。 The present invention relates to a log recording device, a control method, and a program.
従来の画像処理装置において、異常動作後に修理し復帰させる場合等、ログ記録装置により以下の処理が行われる。即ち、ログ記録装置は、画像処理装置の元の設定(各種設定値、印刷枚数のカウンタ値等)を外部記憶装置等に一旦退避させ、修理後、画像処理装置に前記設定を戻すリストア処理を行う。
このようなログ記録装置には、必要な情報が誤って上書きされてしまうのを防止できる機能を持つもの(例えば、特許文献1)がある。
In a conventional image processing apparatus, the following processing is performed by the log recording apparatus when repairing and returning after an abnormal operation. In other words, the log recording device temporarily restores the original settings of the image processing device (various setting values, counter value of the number of printed sheets, etc.) to an external storage device, etc., and restores the settings to the image processing device after repair. Do.
Such a log recording apparatus has a function (for example, Patent Document 1) that can prevent necessary information from being overwritten by mistake.
特許文献1記載のログ記録装置は、画像処理装置の記憶部の記録状態を判定し、判定した結果に基づきリストア処理を行うか否かを決定する処理を行う。この処理により、ログ記録装置は、必要な情報をリストア処理によって上書きされることを防止することができる。しかし、特許文献1記載のログ記録装置では、リストア前の記憶部に記憶されている状態を残して、バックアップしてあるリストア対象データを追記することはできない。バックアップとは、データの写しを取って保存する処理である。つまり、特許文献1記載のログ記録装置は、修理後の画像処理装置で実行したジョブのログ履歴等の特定のデータを残したまま、修理前のバックアップデータを追加することができない。よって、リストア後、修理後の画像処理装置で実行したジョブのログ履歴等特定のデータは、バックアップされているリストア対象データによって上書きされて消失してしまう。例えば、画像処理装置の記憶装置が故障したとする。記憶装置を交換、修理すると、画像処理装置が保持しているログ履歴は、空になる。この状態からジョブを実行すると、画像処理装置は、記憶装置に交換修理後のジョブのログ履歴を順次格納していく。その後、ユーザーによって事前にバックアップしてあったデータがリストアされると、画像処理装置のログ履歴は、故障前のジョブのログ履歴で上書きされる。即ち、記憶装置の交換後に画像処理装置が実行したジョブのログ履歴は、消失してしまう問題があった。
そこで、本発明は、記憶装置の交換等によるログ履歴の消失後に画像処理装置が実行したジョブのログ履歴の消失を防止することを目的とする。
The log recording apparatus described in
SUMMARY An advantage of some aspects of the invention is that it prevents a log history of a job executed by an image processing apparatus from being lost after a log history is lost due to replacement of a storage device or the like.
そこで、本発明のログ記録装置は、記録領域に記録されている画像処理装置のログ情報を記憶装置にバックアップするバックアップ手段と、前記記憶装置にバックアップされているログ情報に対応するログ情報を前記画像処理装置から取得する取得手段と、前記取得手段によるログ情報の取得が失敗した場合、前記画像処理装置におけるログ情報の消失を検知する検知手段と、前記検知手段により、前記画像処理装置におけるログ情報の消失が検知された場合、前記ログ情報の消失が起こった後に前記画像処理装置において生成されたログ情報を前記画像処理装置から取得し、前記記録領域に記録する記録手段と、を有する。 Therefore, the log recording apparatus of the present invention includes backup means for backing up the log information of the image processing apparatus recorded in the recording area to the storage device, and log information corresponding to the log information backed up in the storage device. An acquisition unit that acquires from the image processing device, a detection unit that detects loss of log information in the image processing device when log information acquisition by the acquisition unit fails, and a log in the image processing device by the detection unit And recording means for acquiring log information generated in the image processing apparatus after the loss of the log information has occurred from the image processing apparatus and recording it in the recording area.
本発明によれば、記憶装置の交換等によるログ履歴の消失後に画像処理装置が実行したジョブのログ履歴の消失を防止することができる。 According to the present invention, it is possible to prevent the log history of a job executed by the image processing apparatus after the log history is lost due to replacement of the storage device or the like.
以下、本発明の実施形態について図面に基づいて説明する。
以下では、「ログ履歴」とは、印刷装置等の画像処理装置が生成する複数種類のログをログ種毎に蓄積した情報を意味する。「ログ履歴」は、ログ情報の一例である。「ジョブ履歴」とは、複数種類あるログ履歴のうち印刷ジョブのログ履歴を意味する。「ログ記録ソフトウェア」とは、印刷装置等の画像処理装置等にインストールされ、印刷装置等の前記画像処理装置からログ履歴を取得するソフトウェアを意味する。
Hereinafter, embodiments of the present invention will be described with reference to the drawings.
In the following, “log history” means information obtained by accumulating a plurality of types of logs generated by an image processing apparatus such as a printing apparatus for each log type. “Log history” is an example of log information. “Job history” means a log history of a print job among a plurality of types of log history. “Log recording software” means software that is installed in an image processing apparatus such as a printing apparatus and acquires a log history from the image processing apparatus such as a printing apparatus.
<実施形態1>
図1は、ログ記録システムのシステム構成の一例を示す図である。なお、本実施形態の機能が実行されるのであれば、ログ記録システムは、単体の機器で構成されていてもよいし、複数の機器から構成されていてもよい。
ログ記録システムは、印刷装置100と、管理PC110と、サーバー120と、クライアントPC140、141と、を含む。印刷装置100は、本実施形態では、印刷部、スキャナ部等の複数の機能を持つ複合機とする。管理PC110は、管理者が使う情報処理装置である。サーバー120は、外部にデータを蓄積する情報処理装置である。クライアントPC140、141は、ユーザーが使う情報処理装置である。更に、印刷装置100と管理PC110とサーバー120とクライアントPC140、141とは、ネットワーク130を介し、相互に接続されている。本実施形態において、前記ログ記録システムは、画像処理装置として1つの印刷装置を含むものとする。しかし、前記ログ記録システム内の画像処理装置は、1つに限定されない。前記ログ記録システムは、複数の印刷装置を含むこととしてもよいし、他の画像処理装置を含むこととしてもよい。
印刷装置100は、記憶部101、印刷制御部102、ジョブ管理部103等を機能構成として含む。記憶部101は、印刷やファクス等のジョブデータやログ、画面操作の履歴等を保存・蓄積する。印刷制御部102は、ネットワーク130を介し受信した画像データの印刷を制御する。ジョブ管理部103は、印刷やコピー、ファクス等のジョブの実行、中断、完了を管理し、ジョブの状態を適宜、記憶部101に記録する。印刷装置100は、画像処理装置の一例である。印刷装置100は、図1に示した機能構成以外に、FAX送受信部、ライセンス管理部、ネットワーク部等を有していてもよい。
<
FIG. 1 is a diagram illustrating an example of a system configuration of a log recording system. As long as the function of the present embodiment is executed, the log recording system may be configured by a single device or a plurality of devices.
The log recording system includes a
The
管理PC110は、情報処理装置としての管理PCである。本実施形態のログ記録システムの管理者は、管理PC110に予め供えられている管理ツールを用いて、印刷装置100や他の印刷装置を管理する。
ネットワーク130は、インターネット、イントラネット等のネットワークである。
クライアントPC140、141は、情報処理装置としてのクライアントPCである。ユーザーは、クライアントPCに予め供えられたプリンタードライバーを用い、所望のドキュメントを印刷装置100が処理可能な画像データに変換し、ネットワーク130を介し、印刷装置100に送信することができる。
The
The
The
図2は、印刷装置100、管理PC110のハードウェア構成等の一例を示す図である。
管理PC110のハードウェア構成の詳細を説明する。
CPU200は、管理PC110における処理を制御する。CPU200は、ハードディスク装置(HD)205に格納されているアプリケーションプログラム、プリンタードライバープログラム、OSのプログラム、制御プログラム等を実行する。更に、CPU200は、RAM202にプログラムの実行に必要な情報、ファイル等を一時的に格納する制御を行う。
CPU200が、ROM201又はHD205に記憶されたプログラムに基づき処理を実行することによって、管理PCの機能が実現される。
ROM201は、記憶部である。ROM201は、内部に基本I/Oプログラム等のプログラム、文書処理に使用するフォントデータ、テンプレート用データ等の各種データを記憶する。
RAM202は、一時記憶部である。RAM202は、CPU200の主メモリ、ワーク領域等として機能する。
FIG. 2 is a diagram illustrating an example of the hardware configuration of the
Details of the hardware configuration of the
The
The function of the management PC is realized by the
The
The
FDドライブ203は、記憶媒体読み込み部であるフレキシブルディスクドライブである。CPU200は、FDドライブ203を介して、記憶媒体としてのフレキシブルディスク(FD)204に記憶されたプログラム等を管理PC110にロードすることができる。なお、記憶媒体は、FDに限らず、CD−ROM、CD−R、CD−RW、PCカード、DVD、ICメモリカード、MO、メモリスティック等、でもよい。FD204は、コンピュータによって読み取り可能なプログラムを格納する。
ハードディスク装置(HD)205は外部記憶部の一つであり、大容量メモリとして機能するハードディスクである。ハードディスク装置(HD)205は、アプリケーションプログラム、プリンタードライバープログラム、OS、制御プログラム、関連プログラム等を格納する。
キーボード(KBD)206は、ユーザーの入力を受け付ける入力部である。
表示部(CRT)207は、キーボード206から入力されたコマンドや、アプリケーションプログラムを表示するディスプレイ等の表示部である。
システムバス208は、管理PC110内のデータの流れを司るものである。
ポインティングデバイス(PD)209は、ユーザーの指示を受け付ける指示部である。
The FD drive 203 is a flexible disk drive that is a storage medium reading unit. The
A hard disk device (HD) 205 is one of external storage units, and is a hard disk that functions as a large-capacity memory. A hard disk device (HD) 205 stores an application program, a printer driver program, an OS, a control program, a related program, and the like.
A keyboard (KBD) 206 is an input unit that receives user input.
A display unit (CRT) 207 is a display unit such as a display that displays commands input from the
A
A pointing device (PD) 209 is an instruction unit that receives a user instruction.
双方向インターフェィス211は、入出力部である。管理PC110は、双方向インターフェィス211を介して外部装置とのデータのやり取りを行う。
サーバー120、クライアントPC140、クライアントPC141は、管理PC110と同様なハードウェア構成である。
次に印刷装置100のハードウェア構成の詳細を説明する。印刷装置100は、ハードディスク装置(HD)228(以下、HD228)と、接続部226と、データ制御部225と、操作部224と、外部メモリ223と、CPU220と、RAM222と、ROM221と、を含む。印刷装置100のハードウェア構成要素は、システムバス227を介して互いに接続されている。
CPU220は、印刷装置100の全体制御を司る制御装置である。CPU220は、ROM221又は外部メモリ223に記憶された制御プログラムに基づいて、接続部226を介して受信した印刷制御コマンド(送信データ)から画像信号をデータ制御部225に送信する。
CPU220が、ROM221又はHD228に記憶されたプログラムに基づき処理を実行することによって、印刷装置100の機能が実現される。印刷装置100にログ記録ソフトウェアがインストールされている場合、CPU220が、ROM221又はHD228に記憶されたプログラムに基づき処理を実行することによって、ログ記録ソフトウェアの機能及び後述のフローチャートの処理が実現される。
HD228は、大容量の記憶装置である。HD228は、フォントデータや印刷ジョブ等のデータを記憶する。HD228は、複数のハードディスクで構成されていてもよい。印刷装置100は、印刷装置100がログ履歴の記録などに通常利用しているハードディスクとは別にバックアップデータの記憶用のハードディスクを別個に持つこととしてもよい。また、HD228は、外部装置である記憶装置と置き換えることができる。HD228を外部の記憶装置と置き換える場合、印刷装置100は、接続部226を介し、外部の記憶装置との間でデータの送受信を行う。
RAM222は、CPU220の主メモリとして、CPU220による制御実行の際、ワークデータエリアとして使用される一時記憶領域を備えている。
外部メモリ223は、オプションとしても接続され、フォントデータ、エミュレーションプログラム、フォームデータ等を記憶する。
ROM221は内部メモリであり、外部メモリと同様に、各種データや印刷装置を制御する制御プログラム等を記憶している。
The bidirectional interface 211 is an input / output unit. The
The
Next, details of the hardware configuration of the
The
The function of the
The HD 228 is a large capacity storage device. The HD 228 stores data such as font data and print jobs. The HD 228 may be composed of a plurality of hard disks. The
The
The
The
データ制御部225は、印刷エンジンであり、CPU220により制御され、ROM221、外部メモリ223等に記憶された制御プログラムにより、システムバス227を介して出力された画像信号を受信し、実際の印刷処理を行う。
操作部224は、操作パネルや操作スイッチ等の入力部、及びLED、液晶パネル等の表示部等から構成され、オペレータの操作を受け、結果を表示する。オペレータは、操作部224を介して印刷装置の設定情報の設定や、前記設定情報の確認等をすることができる。
接続部226は、双方向インターフェィス211を介して管理PCの接続部210に接続し、印刷制御コマンド(送信データ)の受信や、印刷装置内部の状態等の通知等を行う。
表示部(CRT)229は、ディスプレイ(表示部)であり、印刷装置100へのログイン画面や、印刷装置100にインストールされたアプリケーションプログラムの画面を表示する。
The data control
The
The
A display unit (CRT) 229 is a display (display unit), and displays a login screen to the
図3は、ログ記録システムのソフトウェア構成の一例を示す図である。ログ記録ソフトウェアは、本実施形態において管理PC110又は印刷装置100にインストールされ実行される。本実施形態では、ログ記録ソフトウェアのプログラムは、RAM222、ROM221、HD228の何れかの記憶部に記憶され、CPU220により実行されるものとする。ログ記録ソフトウェアがインストールされている印刷装置100は、ログ記録装置の一例である。ログ記録ソフトウェアが管理PCにインストールされている場合、管理PC110は、ログ記録装置の一例となる。ログ記録ソフトウェアが印刷装置100にインストールされている場合、ログ記録装置は、印刷装置100と一体の装置となる。
管理部301は、ログ記録ソフトウェア全体の制御を行う。ログ記録ソフトウェアの機能毎に、各構成部を呼び出す。
初期化部302は、管理部301から呼ばれ、ログ記録ソフトウェア全体の初期化処理を実施する。初期化処理とは、例えば、ログ記録ソフトウェア起動に必要なメモリ領域をRAM222等の記憶装置に確保する等の処理である。
FIG. 3 is a diagram illustrating an example of a software configuration of the log recording system. The log recording software is installed and executed in the
The
The
バックアップ部303は、管理部301から呼ばれ、ログ記録ソフトウェアのバックアップ処理を実行する。バックアップ処理とは、例えば、ログ記録ソフトウェアの内部データをアーカイブし、HD228等の記憶装置に保存する等の処理である。バックアップ処理においてHD228にバックアップデータを保存する場合、HD228は、複数のハードディスクで構成され、印刷装置100がログ履歴の記録等に通常使用するハードディスクとは別にバックアップデータ保存用のハードディスクを持つものとする。また、バックアップ部303は、前記ログ記録システムが印刷装置100以外の画像処理装置を含む場合、印刷装置100とは別の画像処理装置内の記憶装置に印刷装置100のログ履歴をバックアップすることとしてもよい。更に、バックアップ部303は、ネットワーク130を介し接続された外部の記憶装置等にバックアップデータをバックアップすることとしてもよい。
ログ履歴取得部304は、管理部301から呼ばれ、ログ履歴取得処理を行う。ログ履歴取得処理とは、印刷装置100が作成したログ履歴を印刷装置100に予め供えられているログ履歴を取得する機能を介して取得する処理である。例えば、ログ履歴取得部304は、定期的に印刷装置100にログ履歴数を問い合わせ、印刷装置100のログ履歴数を取得し、印刷装置100のログ履歴数とログ履歴取得部304が保持するログ履歴数とを比較する。ログ履歴取得部304は、比較の結果、新規のログ履歴が印刷装置100で生成されたと判断したときは、前記新規のログ履歴を印刷装置100から取得する。また、ログ履歴取得部304は、取得したログ履歴を、ユーザー毎や用紙サイズ毎等に集計し、集計結果を適宜保存する。ログ履歴には、印刷やFAX送信等のジョブの実行結果を記録したジョブ履歴、ユーザーによる印刷装置へのログイン、ログアウトを記録したアクセス履歴、印刷装置の設定変更等を記録した操作ログ等がある。以下では、ログ履歴は、ジョブ履歴であるとする。
The
The log
リストア部305は、管理部301から呼び出され、リストア処理を実行する。リストア処理とは、例えば、印刷装置100内の内部記憶装置又はネットワーク上の外部記憶装置に予め保存されたバックアップデータで、稼働中のログ記録ソフトウェアの内部データを上書きする等の処理である。
ログ履歴消失検知部306は、リストア部305から呼ばれ、図10で後述のログ履歴消失検知処理を行う。
ログ履歴連結判定部307は、リストア部305から呼ばれ、図11で後述のログ履歴連結判定処理を行う。
エクスポート部308は、管理部301から呼ばれ、エクスポート処理を行う。エクスポート処理とは、例えば、バックアップデータやログ履歴を定期的に外部記憶装置に送付する等の処理である。
データ管理部309は、管理部301から呼ばれ、データ管理処理を行う。データ管理処理とは、ログ履歴取得部304が取得したログ履歴や集計結果、設定値ファイル等を、HD228等の記憶装置内に予め確保した領域に適宜保存する等の処理である。
The restore
The log history
The log history
The
The
図4は、バックアップデータの一例を示す図である。
バックアップデータ400は、アーカイブファイルであり、ジョブ履歴401と、集計結果402と、設定値403と、動作記録404と、バックアップ記録405と、を含む。
ジョブ履歴401は、ログ記録ソフトウェアが印刷装置100から取得したログ履歴を蓄積したファイルである。
集計結果402は、ログ記録ソフトウェアが印刷装置100から取得したログ履歴を、ユーザー毎、カラーモード毎、用紙タイプ毎に集計した結果を記録するファイルである。
設定値403は、ログ記録ソフトウェアが動作するうえで必要な各種設定値を記述するファイルである。
動作記録404は、ログ記録ソフトウェアの動作を遂次記録したファイルである。
バックアップ記録405は、バックアップファイルの記録を記載したファイルである。例えば、バックアップ記録405は、バックアップした日時、バックアップを実行した印刷装置のデバイスシリアルNo.、バックアップファイルのサイズ等を含む。デバイスシリアルNo.は、装置識別情報の一例である。図9で後述するリストア処理において、バックアップ記録405のデータをリストア対象データとして説明する。リストア処理では、リストア部305は、ジョブ履歴401、集計結果402、設定値403、動作記録404に記載されている情報で、ログ記録ソフトウェアの持つ各ファイルの内容を上書きする。
図4のバックアップデータは、HD228等に予め確保されるバックアップデータ記憶用の記憶領域に記憶されるものとする。
FIG. 4 is a diagram illustrating an example of backup data.
The
The
The
A setting
The
The
The backup data in FIG. 4 is assumed to be stored in a storage area for storing backup data reserved in advance in the HD 228 or the like.
図5は、印刷装置100が作成するログ履歴の一例を示す図である。
ログ履歴番号501は、印刷装置100から取得したログ履歴の番号である。印刷装置100は、ログ履歴を生成する際に、ログ履歴を一意に識別する番号としてログ履歴に関連付けて設定する。ログ履歴番号501は、1から始まる数値とし、ログ履歴を1つ生成毎に1加算される。
出力デバイス502は、ジョブの出力先のデバイスを表す。つまり、出力デバイス502は、前記ジョブがどの印刷装置で処理されたかを示す情報である。出力デバイス502には、例えば「MFP−1」となる。
完了時刻503は、ジョブの完了時刻を表す。完了時刻503には、例えば「2014/1/1 16:11.35.221」が設定される。
用紙タイプ504は、排紙された用紙のタイプである。用紙タイプ504には、例えば「A4」が設定される。
FIG. 5 is a diagram illustrating an example of a log history created by the
The
An
A
A
ページ数505は、出力されたページ数である。ページ数505には、例えば「7」が設定される。
枚数506は、排紙された枚数である。枚数506には、例えば「4」が設定される。
発行者507は、ジョブの実行者のユーザー名を示す情報である。発行者507には、例えば「山田太郎」が設定される。
カラーモード508は、ジョブがカラー印刷かモノクロ印刷かを識別する情報である。カラーモード508には、例えば「カラー」が設定される。
ドキュメント名509は、印刷されたドキュメントの名前である。ドキュメント名509には、例えば「機密書類.doc」が設定される。
片面両面情報510は、片面印刷か両面印刷かを識別する情報である。片面両面情報510には、例えば「両面」が設定される。Nin1情報511は、印刷レイアウトとして1面に対し、何ページ分の情報を印刷するかを識別する情報である。Nin1情報511には、例えば「1」が設定される。
The
The number of
The
The
The
Single-
図6は、表示画面の一例を示す図である。ログ記録ソフトウェアは、ログ記録ソフトウェアが集計した集計結果402から、印刷装置100へログインしたユーザーに対応するカラーページ数、白黒ページ数、総出力枚数、カラー比率、両面比率、ページ集約比率の集計結果を取得する。ログ記録ソフトウェアは、前記集計結果を、表示部(CRT)207、229等の予め定められた表示位置に表示する。
FIG. 6 is a diagram illustrating an example of a display screen. The log recording software calculates the total number of color pages, black and white pages, total number of output pages, color ratio, duplex ratio, and page aggregation ratio corresponding to the user who has logged into the
図7は、ログ履歴の一例を示す図である。図7は、ログ記録ソフトウェアがHD228等の記憶装置に予め確保したログ記録ソフトウェアのデータ領域に保存されているログ履歴の一例を示す。前記データ領域は、ログ記録装置の記録領域の一例である。
ログ履歴は、1つのファイルに1つのログ種を格納する。ログ履歴は、1行に1ログを記載するカンマ区切りのデータ形式である。1行分のデータには、先頭から、ログ履歴番号、ジョブの実行者のユーザー名、カラーモード、ドキュメント名、完了時刻について、印刷装置100から取得した各値が記載されている。図7(a)は、ログ履歴番号の値が10001〜10003のログ履歴が登録されている状態を示す例である。
FIG. 7 is a diagram illustrating an example of a log history. FIG. 7 shows an example of a log history stored in the data area of the log recording software that the log recording software has secured in advance in a storage device such as HD228. The data area is an example of a recording area of the log recording apparatus.
The log history stores one log type in one file. The log history is a comma-delimited data format in which one log is described in one line. In the data for one line, each value acquired from the
図8は、設定情報の一例を示す図である。図8は、予めRAM222等の記憶装置に確保された領域に格納されているログ記録ソフトウェアが保持する設定情報の例を示す。
自動エクスポート801は、自動でエクスポートを実行するかしないかの設定である。自動エクスポート801の設定値が「する」の場合、エクスポート実行時刻802の設定時刻になると、ログ記録ソフトウェアの管理部301は、エクスポート部308を呼び出し、自動エクスポート処理を実行する。
自動バックアップ803は、自動でバックアップを実行するかしないかの設定である。自動バックアップ803の設定値が、日毎にバックアップを実行することを意味する「毎日」の場合、バックアップ実行時刻804の設定時刻になると、ログ記録ソフトウェアの管理部301は、バックアップ部303を呼び出し、自動バックアップ処理を実行する。
取得済ログ履歴番号805は、ソフトウェアが印刷装置100から取得したログ履歴のうち、最も新しいログのログ履歴番号示すものである。
図8(a)の例は、自動エクスポートはしない、自動バックアップは毎日1:00に実行する、取得済ログ履歴番号805の値は10001であることを示している。取得済ログ履歴番号805の値は10001であることは、印刷装置100から取得したもっとも新しいログ履歴のログ履歴番号の値が10001であることを意味している。
FIG. 8 is a diagram illustrating an example of setting information. FIG. 8 shows an example of setting information held by log recording software stored in an area reserved in a storage device such as the
The
The
The acquired
The example of FIG. 8A shows that automatic export is not performed, automatic backup is executed every day at 1:00, and the value of the acquired
図9は、リストア処理の一例を示すフローチャートである。図9、及び図4、図7、図8を用い、本実施形態におけるリストア処理の一例を説明する。リストア処理は、リストア部305によって実行される処理である。リストア部305は、例えば表示部(CRT)207、229等に表示される画面を介したユーザーの操作に基づいて起動する。なお、リストア対象データは、図5に示すバックアップデータのうちジョブ履歴401と設定値403とであるとして説明する。リストア部305は、印刷装置100が図7(a)に示すログ履歴を保持しているタイミングで取得されたバックアップデータをリストア対象データとして渡されているとする。ログ記録ソフトウェアが保持するログ履歴は、図7(b)に示すログ履歴とする。図7(b)に示すように、ログ記録ソフトウェアのインストール後に実行されたジョブのログは、ログ履歴番号の値が3のログ履歴だけである。ログ履歴番号の値が1、2のログ履歴は、ログ記録ソフトウェアをインストール前に実行されたため、ログ記録ソフトウェアは、ログ履歴番号の値が1、2のログ履歴を取得していない。
S901において、リストア部305は、設定値を反映する。即ち、リストア部305は、ログ記録ソフトウェアが保持する各種設定値を、HD228等にバックアップされているリストア対象データに格納されている設定値で上書きする。図8(b)には、ログ記録ソフトウェアのインストール直後の設定情報を示す。図8(b)に示す設定情報の全ての項目は、デフォルト値になっている。図8(c)には、設定値反映後の例である。図8(c)に示す設定情報の全ての項目は、リストア対象データの値で上書きされている。リストア部305は、S901の処理を完了するとS902の処理へ進む。
FIG. 9 is a flowchart illustrating an example of the restore process. An example of restore processing according to this embodiment will be described with reference to FIGS. 9, 4, 7, and 8. The restore process is a process executed by the restore
In step S901, the restore
S902において、リストア部305は、ログ履歴消失検知部306を呼び出し、図10で後述するログ履歴消失検知処理を指示する。リストア部305は、S902の処理を完了するとS903の処理へ進む。
S903において、リストア部305は、S902でのログ履歴消失検出処理によって履歴消失フラグがONにセットされたか否かを判定する。リストア部305は、履歴消失フラグがONにセットされたと判定した場合、S904の処理へ進み、履歴消失フラグがONにセットされなかったと判定した場合、S909の処理へ進む。履歴消失フラグは、第1のフラグの一例である。フラグがONにセットされることは、フラグの有効化の一例であり、フラグがOFFにセットされることは、フラグの無効化の一例である。
本実施形態において、ログ記録ソフトウェアは、履歴が消失したか否かの情報をフラグとして保持するものとしている。しかし、ログ記録ソフトウェアは、例えば、予め確保されているテーブル等の内部のデータの値を書き換えることで、前記情報を保持するものとしてもよい。また、ログ記録ソフトウェアは、履歴が消失したか否かの情報を保持せずに、履歴が消失したか否かの判定結果に基づく条件分岐処理を行うようにしてもよい。
S904において、リストア部305は、印刷装置100からログ履歴を再取得する。即ち、リストア部305は、印刷装置100に予め供えられたログ履歴取得部を介し、印刷装置100が記録している全ログ履歴を取得し、ROM221、RAM222、HD228等の記憶装置に予め用意されたログ記録ソフトウェアのワーク領域に格納する。図8(e)は、前記全ログ履歴取得後の設定情報の例を示す。図8(e)の設定情報の取得済ログ履歴番号の値は、3になっている。取得済ログ履歴番号の値が3であることは、印刷装置100から取得した最も新しいログ履歴のログ履歴番号が3であることを意味している。リストア部305は、S904の処理を完了するとS905の処理へ進む。
S905において、リストア部305は、ログ履歴連結判定部307を呼び出し、図11で後述するログ履歴連結判定処理を指示する。リストア部305は、S905の処理を完了するとS906の処理へ進む。
S906において、リストア部305は、前記ログ履歴連結判定処理によって連結フラグがONにセットされたか否かを判定する。リストア部305は、連結フラグがONにセットされたと判定した場合、S907の処理へ進み、連結フラグがONにセットされなかったと判定した場合、S908の処理へ進む。
本実施形態において、ログ記録ソフトウェアは、ログ履歴の連結を行うか否かの情報をフラグとして保持するものとしている。しかし、ログ記録ソフトウェアは、例えば、予め確保されているテーブル等の内部のデータの値を書き換えることで、前記情報を保持するものとしてもよい。また、ログ記録ソフトウェアは、ログ履歴の連結を行うか否かの情報を保持せずに、ログ履歴の連結を行うか否かの判定結果に基づく条件分岐処理を行うようにしてもよい。
In step S902, the restore
In S903, the restore
In the present embodiment, the log recording software holds information as to whether or not the history has been lost as a flag. However, the log recording software may hold the information by rewriting the value of internal data such as a table secured in advance. Further, the log recording software may perform conditional branching processing based on the determination result as to whether or not the history is lost without holding the information about whether or not the history is lost.
In step S <b> 904, the restore
In step S905, the restore
In step S <b> 906, the restore
In the present embodiment, the log recording software holds information as to whether or not log histories are linked as a flag. However, the log recording software may hold the information by rewriting the value of internal data such as a table secured in advance. Further, the log recording software may perform conditional branching processing based on a determination result of whether or not to link log histories without holding information about whether or not to link log histories.
S907において、リストア部305は、データを連結する。即ち、リストア部305は、リストア対象データに含まれるジョブ履歴401とS904で再取得したログ履歴を連結する。リストア部305は、連結したデータをログ履歴として前記データ領域に保存する。図7(c)は、連結後のログ履歴を示す。S907の処理の後に前記データ領域に記録されているデータは、図7(c)のようになる。ログ履歴番号の値が10001、10002、10003であるログ履歴は、リストア対象データに含まれるジョブ履歴401からリストア部305により取得されたログ履歴である。ログ履歴番号の値が1、2、3のログ履歴は、S904で再取得されたログ履歴である。
S908において、リストア部305は、S904で再取得したログ履歴で前記データ領域に保存されているログ履歴を上書きする。図7(d)は、上書き後のログ履歴を示す。図7(d)において、前記データ領域に保存されているログ履歴には、ログ履歴番号の値が1、2、3のログ履歴のみ格納されている。
S909において、リストア部305は、リストア対象データに含まれているジョブ履歴401で、HD228等の記憶装置に予め確保した前記データ領域に保存されているログ履歴を上書きする。図7(a)は、上書き後のログ履歴を示す。
In S907, the restore
In step S908, the restore
In step S909, the restore
図10は、ログ履歴消失検知処理の一例を示すフローチャートである。S902のログ履歴消失検知処理を、図10を用いて説明する。
図10のログ履歴消失検知処理では、ログ記録ソフトウェアが取得済のログ履歴と印刷装置100のログ履歴とを比較して、ログ履歴が消失したか否かを判定する。ログ記録ソフトウェアがリストア対象データとして保持している取得済の最新のログ履歴番号のログ履歴を印刷装置から取得するものとして説明する。
S1001において、ログ履歴消失検知部306は、取得済ログ履歴番号805で示されるログ履歴を印刷装置100から取得する。即ち、ログ履歴消失検知部306は、印刷装置100に予め供えられたログ履歴取得部を介し、図8(c)に図示する設定情報の取得済ログ履歴番号805に対応するログ履歴(図8(c)の例では履歴番号10003)を印刷装置100から取得する。そして、ログ履歴消失検知部306は、RAM222等の記憶装置に予め確保されたログ記録ソフトウェアのワーク領域に前記ログ履歴を格納する。ログ履歴消失検知部306は、S1001の処理を完了するとS1002の処理へ進む。
FIG. 10 is a flowchart illustrating an example of the log history loss detection process. The log history disappearance detection process in S902 will be described with reference to FIG.
In the log history loss detection process of FIG. 10, the log history acquired by the log recording software is compared with the log history of the
In step S <b> 1001, the log history
S1002において、ログ履歴消失検知部306は、S1001でログ履歴の取得に成功したか否かを判定する。即ち、ログ履歴消失検知部306は、S1001でログ履歴の取得に成功した場合、取得成功と判定し、S1001でログ履歴の取得に成功しなかった場合、取得成功ではないと判定する。例えば、図8(c)に図示する設定情報の取得済ログ履歴番号805のログ履歴が印刷装置100に存在しない場合、ログ履歴消失検知部306は、ログ履歴の取得に失敗する。即ち、印刷装置100は、記憶装置の交換後に、図8(c)に図示する設定情報の取得済ログ履歴番号805までログ履歴が生成されていないことを意味する。ログ履歴消失検知部306は、取得成功と判定した場合、S1003の処理へ進み、取得成功でないと判定した場合、S1005の処理へ進む。
S1003において、ログ履歴消失検知部306は、S1001で取得し前記ワーク領域に格納したログ履歴と、図7(a)に示すリストア対象データの中の最新のログ履歴と比較し、両者が同一であるか否かを判定する。リストア対象データの中の最新のログ履歴は、図7(a)の例ではログ履歴番号の値が10003のログ履歴である。ログ履歴消失検知部306は、ドキュメント名、完了時刻等全ての項目が一致した場合は、S1001で取得し前記ワーク領域に格納したログ履歴と、図7(a)に示すリストア対象データの中の最新のログ履歴とは同一であると判定する。ログ履歴消失検知部306は、1つでも異なる項目がある場合は、S1001で取得し前記ワーク領域に格納したログ履歴と、図7(a)に示すリストア対象データの中の最新のログ履歴とは同一ではないと判定する。ログ履歴消失検知部306は、S1001で取得し前記ワーク領域に格納したログ履歴と、図7(a)に示すリストア対象データの中の最新のログ履歴とは同一であると判定した場合、S1004の処理へ進む。ログ履歴消失検知部306は、S1001で取得し前記ワーク領域に格納したログ履歴と、図7(a)に示すリストア対象データの中の最新のログ履歴とは同一ではないと判定した場合、S1005の処理へ進む。S1003の処理においてS1001で取得し前記ワーク領域に格納されたログ履歴と、ログ記録ソフトウェアが取得した最新のログ履歴とが同一ではないと判定される場合とは、例えば次のような状況である。印刷装置100が記憶装置の交換等の後、バックアップされているログ履歴のうち最新のログ履歴のログ履歴番号まで新たにログ履歴を取得した状況等が例に挙げられる。
In step S1002, the log history
In step S1003, the log history
S1004において、ログ履歴消失検知部306は、履歴消失フラグをOFFに設定する。即ち、ログ履歴消失検知部306は、前記ワーク領域に確保された履歴消失フラグの領域にOFFを設定し、保存する。
S1005において、ログ履歴消失検知部306は、履歴消失フラグをONにする。即ち、ログ履歴消失検知部306は、前記ワーク領域に確保された履歴消失フラグの領域にONを設定し、保存する。ログ履歴消失検知部306は、S1005の処理を完了するとS1006の処理へ進む。
S1006において、ログ履歴消失検知部306は、ログ記録ソフトウェアが保持する各種設定値の取得済ログ履歴番号805の値を0に設定する。図8(d)は、設定情報の例を示す。
In S1004, the log history
In step S1005, the log history
In step S1006, the log history
図11は、ログ履歴連結判定処理の一例を示すフローチャートである。S905のログ履歴連結判定処理を、図11を用いて説明する。
S1101において、ログ履歴連結判定部307は、バックアップ記録405に格納されているデバイスシリアルNo.と、印刷装置100のデバイスシリアルNo.と、を比較する。ログ履歴連結判定部307は、印刷装置100に予め供えられているデバイスシリアルNo.取得部により印刷装置100のデバイスシリアルNo.を取得する。ログ履歴連結判定部307は、バックアップ記録405に格納されているデバイスシリアルNo.と印刷装置100のデバイスシリアルNo.とが一致した場合は、デバイスシリアルNo.が一致したと判定する。ログ履歴連結判定部307は、バックアップ記録405に格納されているデバイスシリアルNo.と印刷装置100のデバイスシリアルNo.とが一致しない場合は、デバイスシリアルNo.が一致しないと判定する。デバイスシリアルNo.は、印刷装置を一意に決める文字列であり、記憶装置やファームウェアを交換しても変更されないことを保証する。デバイスシリアルNo.が一致するということは、バックアップしたログ履歴を生成した印刷装置と、リストア処理の対象である印刷装置と、が同一であるとことを意味する。デバイスシリアルNo.が一致しないということは、別の印刷装置においてバックアップしたデータで、リストア処理をしようとしていることを意味する。ログ履歴連結判定部307は、デバイスシリアルNo.が一致したと判定した場合、S1102の処理へ進み、デバイスシリアルNo.が一致していないと判定した場合、S1003の処理へ進む。
S1102において、ログ履歴連結判定部307は、連結フラグをONに設定する。即ち、ログ履歴連結判定部307は、前記ワーク領域に確保された連結フラグの領域にONを設定し、保存する。
S1103において、ログ履歴連結判定部307は、連結フラグをOFFに設定する。即ち、ログ履歴連結判定部307は、前記ワーク領域に確保された連結フラグの領域にOFFを設定し、保存する。
FIG. 11 is a flowchart illustrating an example of a log history connection determination process. The log history connection determination process in S905 will be described with reference to FIG.
In step S <b> 1101, the log history
In S1102, the log history
In S1103, the log history
以上、本実施形態の処理により、ログ記録ソフトウェアは、記憶装置の交換等でログ履歴の消失が発生し、リストア処理を行う際、前記記憶装置の交換等の後に印刷装置100において発生した印刷装置100のログ履歴を取得する。即ち、印刷装置100を復旧する際に必要な情報が誤って上書きされることはない。
また、ログ記録ソフトウェアは、リストア処理を行う際、印刷装置100と、バックアップされているログ履歴に対応する装置とが同一である場合、以下の処理を行う。即ち、ログ記録ソフトウェアは、前記記憶装置の交換等の後に印刷装置100において発生した印刷装置100のログ履歴と、バックアップされているログ履歴と、を連結して取得する。よって、ログ記録ソフトウェアは、前記記憶装置の交換等の前のログ履歴と前記記憶装置の交換等の後のログ履歴とを連結した形で記録できる。
また、ログ記録ソフトウェアは、印刷装置100の記憶装置の交換等で印刷装置100のログ履歴が空になったとしても、記憶装置の交換前に取得したログ履歴ソフトウェアのバックアップデータをリストアすることで、ログ履歴の欠落を防ぐことができる。
更に、ログ記録ソフトウェアは、バックアップデータの取得忘れ等のエラーにより、記憶装置を交換した印刷装置とは異なる印刷装置のバックアップデータをリストアする場合、記憶装置を交換した印刷装置には設定値だけを反映することができる。ログ記録ソフトウェアは、誤って、別の印刷装置のログ履歴による上書きや、別の印刷装置のログ履歴との連結等を防ぐことができる。
As described above, according to the processing of this embodiment, the log recording software causes the log history to be lost due to replacement of the storage device and the printing device generated in the
In addition, when performing the restore process, the log recording software performs the following process if the
In addition, even if the log history of the
Furthermore, when the backup data of a printing device that is different from the printing device whose storage device has been replaced is restored due to an error such as forgetting to acquire backup data, the log recording software only sets the setting value to the printing device whose storage device has been replaced. Can be reflected. The log recording software can erroneously prevent overwriting with a log history of another printing apparatus, connection with a log history of another printing apparatus, and the like.
<実施形態2>
印刷装置にインストールされたソフトウェアには、前記印刷装置から取得したログ履歴を定期的に外部サーバーに送付するネットワークシステム構成ソフトウェアがある。外部サーバーは、複数の印刷装置のログ履歴を受信し、そのログ履歴を解析した結果をジョブ実行の分析に用いたり、集計した結果をユーザー毎の課金に用いたり、更に、集計した結果を印刷物等の監査に用いたりする。前記ネットワークシステムにおいて、前記外部サーバーは、集計対象の印刷装置を管理し、対象となる印刷装置のソフトウェアにログ履歴の送付の開始・停止を指示するのが一般的である。前記外部サーバーの管理者は、前記外部サーバーにインストールされた管理ソフトウェアから、集計対象となる印刷装置を選択し、前記印刷装置にログ履歴の送付を指示する。そして、前記印刷装置にインストールされたソフトウェアは、前記外部サーバーにログ履歴の送付を開始する。以下の説明において、印刷装置が外部サーバーによりログ履歴の送付開始の指示がなされた状態のことを「連携」とする。修理のため交換された記憶装置を有する印刷装置に再インストールされたソフトウェアも、外部サーバーにより連携されるまでログ履歴の送付は行わない。外部サーバーは、一般者の出入りが禁止されたサーバールームに設置される場合が多く、印刷装置は、一般者の入出が許された部屋に設置されることが多い。また、インターネットの普及に伴い、外部サーバーは、印刷装置の設置場所に対して遠隔地に設置されることが一般的となっている。記憶装置の交換等の修理を担当するサービスマンとサーバーを管理する管理者とは別人物であることが一般的であり、印刷装置の修理完了後に、再度連携するまでに時間を要する。前記印刷装置のソフトウェアが外部サーバーによる連携の指示を待っている間に、一般ユーザーからの印刷データ等が印刷装置に送信され、前記印刷装置は、印刷ジョブ等の処理を実行してしまうことがある。前記印刷ジョブ等の処理のログ履歴は、前記外部サーバーの管理者による再連携の指示後も、前記ソフトウェアからサーバーに対して送信されないこととなってしまう。また、前記ソフトウェアは、リストア処理によって連携状態の設定がログ記録ソフトウェアに反映されても、リストア処理完了後に連携状態となるため、リストア処理完了後に生成されたログ履歴のみを送付する。よって、リストア処理前に発生したログ履歴は、サーバーに送信されないものとなってしまうという問題がある。
<
The software installed in the printing apparatus includes network system configuration software that periodically sends a log history acquired from the printing apparatus to an external server. The external server receives the log histories of multiple printing devices, uses the results of analyzing the log histories for job execution analysis, uses the tabulated results for billing for each user, and prints the tabulated results. It is used for auditing. In the network system, the external server generally manages the printing device to be counted and instructs the software of the printing device to start / stop sending log history. The administrator of the external server selects a printing device to be counted from management software installed on the external server, and instructs the printing device to send a log history. Then, the software installed in the printing apparatus starts sending log history to the external server. In the following description, a state where the printing apparatus is instructed to start sending log history by an external server is referred to as “cooperation”. Software that has been reinstalled in a printing device having a storage device that has been replaced for repair will not send log history until linked by an external server. In many cases, the external server is installed in a server room where general users are prohibited from entering and exiting, and the printing apparatus is often installed in a room where general users are allowed to enter and exit. In addition, with the spread of the Internet, it is common for an external server to be installed at a location remote from the installation location of the printing apparatus. In general, a service person in charge of repair such as replacement of a storage device and an administrator who manages the server are different persons, and it takes time to cooperate again after completing the repair of the printing apparatus. While the software of the printing apparatus is waiting for an instruction for cooperation from an external server, print data or the like from a general user is transmitted to the printing apparatus, and the printing apparatus may execute processing such as a print job. is there. The log history of the processing such as the print job is not transmitted from the software to the server even after the re-cooperation instruction from the administrator of the external server. Further, even if the linkage state setting is reflected in the log recording software by the restoration process, the software enters the linkage state after the restoration process is completed, and therefore only the log history generated after the restoration process is completed is sent. Therefore, there is a problem that the log history generated before the restoration process is not transmitted to the server.
本実施形態において、前記問題を解決するための改良を説明する。説明の簡便のため、実施形態1と異なる点を説明する。実施形態1とは、ソフトウェアのリストア処理が異なる。また、外部サーバーは、複数の印刷装置からのログ履歴を収集するのが普通であるが、本実施形態の説明では、単数の印刷装置からのログ履歴を取得するサーバーとして説明する。しかし、外部サーバーと連携を行う印刷装置は単数に限られず、複数であってもよい。本実施形態において、ログ記録ソフトウェアは、サーバー120と連携することができる機能を持つものとする。
図1のサーバー120は、前記外部サーバーの一例である。サーバー120は、管理ソフトウェアを有する。前記管理ソフトウェアは、サーバー120の管理者の指示に従い、印刷装置100にインストール済のログ記録ソフトウェアに対しログ履歴送信の開始・停止を指示する。
In the present embodiment, an improvement for solving the above problem will be described. For the sake of simplicity of explanation, differences from the first embodiment will be described. The software restoration process is different from the first embodiment. The external server normally collects log histories from a plurality of printing apparatuses. However, in the description of this embodiment, the external server will be described as a server that acquires log histories from a single printing apparatus. However, the number of printing apparatuses that cooperate with the external server is not limited to one, and may be plural. In the present embodiment, it is assumed that the log recording software has a function capable of cooperating with the
The
図12は、管理サーバーの受信済ログ履歴一覧の一例を示す図である。図12は、サーバー120が受信した受信ログ履歴を示す。サーバー120は、印刷装置100にインストール済のログ記録ソフトウェアから、ネットワーク130を介し、送付されるログ履歴を受信し、記録装置121に予め確保した領域に前記ログ履歴を保存する。受信ログ履歴は、1つのファイルに1つのログ種を格納する。受信ログ履歴のデータ形式は、1行に1ログを記載するカンマ区切りのデータ形式である。受信ログ履歴は、データの先頭から、受信番号、受信日、ログ履歴番号、ジョブの実行者のユーザー名、カラーモード、ドキュメント名、完了時刻を含む。受信番号、受信日以外は、印刷装置100から送信されたログ履歴が持つ各値が記載されている。図12(a)の例では、受信ログ履歴には、受信番号600201から連続して計3件のログ履歴が登録されている。
FIG. 12 is a diagram illustrating an example of a received log history list of the management server. FIG. 12 shows a reception log history received by the
図13は、設定情報の一例を示す図である。図13(a)は、予めRAM222等の記憶装置に確保された領域に格納されているログ記録ソフトウェアが保持する設定情報の例である。設定項目1301〜1305は、実施形態1における図8の設定項目801〜805と同じである。連携1306は、サーバー120と連携済か否かを示す項目である。ログ記録ソフトウェアは、連携1306の項目に、サーバー120によりログ履歴送付開始の指示を受け付けると、「する」を設定する。ログ記録ソフトウェアは、履歴送付開始の指示を受け付けてない場合、又はログ履歴の送付停止の指示を受け付ける場合、「しない」を連携1306の項目に設定する。
サーバー1307の項目は、サーバー120を示す項目である。サーバー1307の項目は、サーバー120のIPアドレスを示す。例えば、サーバー1307には、IPアドレス 192.10.10.10 が格納される。ログ記録ソフトウェアは、サーバー120と連携する場合はサーバー1307の項目のアドレスにログ履歴を送付する。ログ記録ソフトウェアがサーバー120と未連携なら、サーバー1307の項目は、空欄である。
送信済ログ履歴番号1308は、送信済ログ履歴番号を示す項目である。送信済ログ履歴番号1308の項目は、サーバーに送信したログ履歴番号のうち最も新しいログ履歴のログ履歴番号を格納する。送信済ログ履歴番号1308の項目は、ログ記録ソフトウェアがサーバー120と未連携のときは0を格納する。
FIG. 13 is a diagram illustrating an example of setting information. FIG. 13A shows an example of setting information held by log recording software stored in an area secured in advance in a storage device such as the
The item of the
The transmitted
図14は、リストア処理の一例を示すフローチャートである。図14を用いて、本実施形態におけるリストア処理の一例について説明する。S1401〜S1404及び、S1407〜S1411は、それぞれ図9のS901〜S904及び、S905〜S909と同一である。図9の処理と異なる点を説明する。
図13(b)は、S1401の処理後の設定情報の例である。図13(b)は、ログ記録ソフトウェアの取得したログ履歴がログ履歴番号の値が3のログ履歴であり、ログ記録ソフトウェアがサーバー120と連携をしていることを意味している。
S1405において、リストア部305は、ログ記録ソフトウェアがサーバー120と連携済か否かを判定する。即ち、リストア部305は、図13(b)に示す設定情報を読み込み、サーバー120と連携済か否かを示す項目の連携1306の設定値が「する」になっている場合は連携済と判定する。「しない」になっているときは連携済ではないと判定する。リストア部305は、連携済みと判定した場合、S1406の処理へ進み、連携済みではないと判定した場合、S1407の処理へ進む。S1405の処理は、連携判定処理の一例である。
S1406において、リストア部305は、S1404で取得したログ履歴を、予め定めた方法に基づきサーバー120に送付する。
図13(c)は、S1406の処理後の設定情報の例である。図13(c)で、取得済ログ履歴番号1305は、3になっており、サーバーに送付したログ履歴のうち最も新しいログ履歴がログ履歴番号の値が3のログ履歴であることを意味する。図12(b)は、S1406の処理後のサーバー120が受信した受信ログ履歴である。図12(b)は、ログ履歴番号の値が1、2、3のログ履歴を受信したことを示す。即ち、ログ記録ソフトウェアは、S1406の処理で、ログ履歴番号の値が1、2、3のログ履歴をサーバーに送信した。
FIG. 14 is a flowchart illustrating an example of the restore process. An example of the restore process in this embodiment will be described with reference to FIG. S1401 to S1404 and S1407 to S1411 are the same as S901 to S904 and S905 to S909 of FIG. 9, respectively. Differences from the processing of FIG. 9 will be described.
FIG. 13B is an example of setting information after the processing of S1401. FIG. 13B indicates that the log history acquired by the log recording software is a log history having a log history number value of 3, and the log recording software is linked to the
In step S <b> 1405, the restore
In S1406, the restore
FIG. 13C is an example of setting information after the processing in S1406. In FIG. 13C, the acquired
本実施形態の処理によれば、ログ記録ソフトウェアは、印刷装置100の記憶装置の交換等によりサーバー120との連携が切れても、管理者のログ履歴送付開始の指示なしにログ履歴の送信を再開することができる。更に、ログ記録ソフトウェアは、送付するログ履歴の中に印刷装置100の記憶装置の交換後に発生したログ履歴も含めることができる。つまり、ログ記録ソフトウェアは、送付するログ履歴に欠落がないようにすることができる。
According to the processing of the present embodiment, even if the log recording software is disconnected from the
<実施形態3>
ファームウェアの格納領域の故障等の理由による印刷装置の記憶装置を交換する際のデータの復旧方法には、次のものがある。即ち、ソフトウェア格納領域を含むデータ領域を外部記憶装置等にコピーし、前記印刷装置の記憶装置の交換後、前記ファームウェアをインストールした前記印刷装置の記憶装置に、前記外部記憶装置等から前記データ領域のデータを取得しなおす復旧方法である。前記方法には、複数のソフトウェア毎に再インストールやライセンス等の複雑な再設定、及びリストア処理等をしないで済むという利点がある。前記ファームウェアと同じ領域に保存された印刷装置のログ履歴は、前記ファームウェアの更新処理の中でログ履歴数が0になるが、ソフトウェアのデータ領域に保存したログ履歴は故障前のログ履歴数を保持する。ソフトウェアは、ログ履歴の重複取得を防ぐため、前記ソフトウェアが取得済のログ履歴番号より大きなログ履歴番号のログが発生するまで、ログ履歴を取得しないようにするのが一般的である。したがって、前記復旧方法では、印刷装置のソフトウェアが保持するログ履歴数と前記ファームウェアが保持するログ履歴数とが異なるため、前記ソフトウェアは、誤ってログ履歴を取得しないということがある。
上記問題を解決するための改良を説明する。実施形態1と異なる点を説明する。実施形態1とは、初期化の処理が異なる。
<
There are the following data recovery methods when the storage device of the printing apparatus is replaced due to a failure in the storage area of the firmware. That is, a data area including a software storage area is copied to an external storage device or the like, and after the storage device of the printing apparatus is replaced, the data area is transferred from the external storage device or the like to the storage device of the printing apparatus in which the firmware is installed. This is a recovery method to re-acquire data. The method has an advantage that it is not necessary to perform complicated reconfiguration such as re-installation or license for each of a plurality of pieces of software, and restore processing. The log history of the printing device stored in the same area as the firmware becomes 0 in the firmware update process, but the log history stored in the software data area indicates the log history number before the failure. Hold. In order to prevent duplicate acquisition of log history, software generally does not acquire log history until a log having a log history number larger than the log history number acquired by the software is generated. Therefore, in the recovery method, the number of log histories held by the software of the printing apparatus is different from the number of log histories held by the firmware, and therefore the software may not erroneously acquire the log history.
The improvement for solving the said problem is demonstrated. Differences from the first embodiment will be described. The initialization process is different from that of the first embodiment.
図15は、ログ記録システムのソフトウェア構成の一例を示す図である。図15は、本実施形態におけるログ記録ソフトウェア構成を示す。図15の構成要素は、図3の構成要素と同一である。図15は、図3とログ履歴消失検知部の呼び出し元が異なる。図15において、ログ履歴消失検知部1506は、リストア部1505からだけでなく、初期化部1502からも呼び出される。
FIG. 15 is a diagram illustrating an example of a software configuration of the log recording system. FIG. 15 shows a log recording software configuration in the present embodiment. The components in FIG. 15 are the same as the components in FIG. FIG. 15 differs from FIG. 3 in the call source of the log history loss detection unit. In FIG. 15, the log history
図16は、初期化処理の一例を示すフローチャートである。図16を用いて、本実施形態におけるログ記録ソフトウェアの初期化処理を説明する。
初期化処理は、初期化部1502によって実行される処理である。初期化部1502は、ログ記録ソフトウェアの起動の際に、管理部1501から呼び出される。
S1601において、初期化部1502は、ソフトウェア起動における一般的な初期化処理を行う。即ち、初期化部1502は、ログ記録ソフトウェア起動に必要なメモリ領域をRAM222等の記憶装置に対して確保する、設定値の変更を読取り、ログ記録ソフトウェアが保持している設定値を書き換える等の、処理を実行する。初期化部1502は、S1601の処理を完了すると、S1602の処理へ進む。
S1602において、初期化部1502は、ログ履歴消失検知部1506を呼び出す。ログ履歴消失検知部1506は、ログ履歴消失検知処理を実行する。ログ履歴消失検知処理は、図10の処理と同一である。初期化部1502は、S1602の処理を完了すると、S1603の処理へ進む。
FIG. 16 is a flowchart illustrating an example of the initialization process. The log recording software initialization process according to the present embodiment will be described with reference to FIG.
The initialization process is a process executed by the
In step S1601, the
In step S1602, the
S1603において、初期化部1502は、前記ログ履歴消失検出処理によって履歴消失フラグがONにセットされたか否かを判定する。
S1603において、初期化部1502は、履歴消失フラグがONにセットされたと判定した場合、S1604の処理へ進み、履歴消失フラグがONにセットされなかったと判定した場合、図16に示す処理を終了する。
S1604において、初期化部1502は、印刷装置100からログ履歴を再取得する。即ち、初期化部1502は、印刷装置100に予め供えられたログ履歴取得部を介し、印刷装置100が記録している全ログ履歴を取得し、HD228等の記憶装置に予め確保したログ記録ソフトウェアのデータ領域に保存されているログ履歴を上書きする。
本実施形態の処理によれば、以下の効果が得られる。即ち、印刷装置100は、ソフトウェア格納領域を含む前記データ領域のデータを外部記憶装置等にコピーする。そして、印刷装置100は、印刷装置100の記憶装置を交換しファームウェアをインストールした後に、前記外部記憶装置等から前記データ領域のデータを取得しても、ログ履歴の欠落が発生しない。
In step S1603, the
In S1603, if the
In step S <b> 1604, the
According to the processing of this embodiment, the following effects can be obtained. That is, the
<実施形態4>
実施形態1で説明した印刷装置100の記憶装置の交換からソフトウェアの再インストールの間に実行されるジョブは、ファームの更新や印刷装置のネットワーク設定等の再設定が正常に設定されたかを確認するサービスマンによるテスト印刷である可能性が高い。印刷装置100のログ履歴を取得、集計し、集計したデータをユーザー毎の課金に用いるユースケースにおいて、サービスマンのテスト印刷は、ログ履歴に含めたくない要望がある。
上記問題を解決するための改良を説明する。実施形態1と異なる点を説明する。実施形態1とは、ログ履歴消失検知の処理が異なる。
<
The job executed between the replacement of the storage device of the
The improvement for solving the said problem is demonstrated. Differences from the first embodiment will be described. The log history disappearance detection process is different from the first embodiment.
図17、図18を用いて本実施形態の処理を説明する。
図17は、設定画面の一例を示す図である。ログ記録ソフトウェアは、図17の画面を、ログ記録ソフトウェアによって印刷装置100のCRT229等の表示装置に表示する。ユーザーは、前記画面を用い、ログ記録ソフトウェアの設定を変更することができる。例えば、ユーザーの操作に基づき自動エクスポートの設定が「する」に変更されると、実行日時指定画面が前記表示装置に表示され、ユーザーは、日時を指定することができるようになる。ユーザーの操作に基づき「ハードディスク交換時に、ログ履歴を再取得する」チェックボックスがONに変更されると、ログ記録ソフトウェアは、ハードディスク交換を検知すると印刷装置100からログ履歴を再取得する。ユーザーの操作に基づき「ハードディスク交換時に、ログ履歴を再取得する」チェックボックスがOFFに変更されると、ログ記録ソフトウェアは、ハードディスクの交換を検知しても、印刷装置100からログ履歴を再取得しない。ユーザーによって「OK」ボタンを押下されると、ログ記録ソフトウェアは、図17の画面の設定をHD228等の記憶装置に予め確保したログ記録ソフトウェアのデータ領域に保存する。ログ記録ソフトウェアの次回起動の際の初期化処理において、ログ記録ソフトウェアは、前記データ領域に保存した設定を読み込みログ記録ソフトウェアに反映する。ユーザーによって「キャンセル」ボタンを押下されると、図17の画面における設定の変更は、破棄され、ログ記録ソフトウェアの動作は、変更されない。
図17の画面から設定できる各項目は、ログ記録ソフトウェアの初期化部302による初期化処理によって適宜読み込まれ、ログ記録ソフトウェアに適用されているものとする。「ハードディスク交換時に、ログ履歴を再取得する」チェックボックスがONの場合、初期化部302は、RAM222等の記憶装置に予め用意されたワーク領域に確保された再取得フラグをONに設定する。「ハードディスク交換時に、ログ履歴を再取得する」チェックボックスがOFFの場合、初期化部302は、前記ワーク領域に確保された再取得フラグをOFFに設定する。再取得フラグは、再取得指示情報の一例である。
The processing of this embodiment will be described with reference to FIGS.
FIG. 17 is a diagram illustrating an example of the setting screen. The log recording software displays the screen of FIG. 17 on a display device such as the
It is assumed that each item that can be set from the screen of FIG. 17 is appropriately read by the initialization process by the
図18は、ログ履歴消失検知処理の一例を示すフローチャートである。図18を用いて、本実施形態におけるログ履歴消失検知処理の一例について説明する。S1801〜S1804及び、S1806〜S1807の処理は、それぞれ図10におけるS1001〜S1004及び、S1005〜S1006の処理と同一である。図10の処理と異なる点を説明する。
S1805において、ログ履歴消失検知部306は、再取得フラグがONに設定されているか否かを判定する。即ち、ログ履歴消失検知部306は、前記ワーク領域に確保された再取得フラグにONを意味する値が設定されていれば、再取得フラグがONに設定されていると判定する。ログ履歴消失検知部306は、再取得フラグにONを意味する値が設定されていないときは、再取得フラグがONに設定されているとは判定しない。ログ履歴消失検知部306は、再取得フラグがONに設定されていると判定した場合、S1806の処理へ進み、再取得フラグがONに設定されていないと判定した場合、S1804の処理へ進む。ログ履歴消失検知部306は、S1804の処理を実行する場合、未取得のログ履歴が存在するが、S1804で履歴消失フラグがOFFにされるため、S1804以降の後続の処理においてログ履歴を再取得しない。
本実施形態において、ログ記録ソフトウェアは、ログ履歴の再取得を行うか否かの情報をフラグとして保持するものとしている。しかし、ログ記録ソフトウェアは、例えば、予め確保されているテーブル等の内部のデータの値を書き換えることで、前記情報を保持するものとしてもよい。また、ログ記録ソフトウェアは、ログ履歴の再取得を行うか否かの情報を保持せずに、ログ履歴の再取得を行うか否かの判定結果に基づく条件分岐処理を行うようにしてもよい。
FIG. 18 is a flowchart illustrating an example of the log history loss detection process. An example of the log history disappearance detection process in this embodiment will be described with reference to FIG. The processes of S1801 to S1804 and S1806 to S1807 are the same as the processes of S1001 to S1004 and S1005 to S1006 in FIG. Differences from the processing of FIG. 10 will be described.
In step S1805, the log history
In the present embodiment, the log recording software holds information as to whether or not to reacquire log history as a flag. However, the log recording software may hold the information by rewriting the value of internal data such as a table secured in advance. Further, the log recording software may perform conditional branch processing based on the determination result of whether or not to reacquire the log history without holding information about whether or not to reacquire the log history. .
本実施形態の処理によれば、図17の画面の「ハードディスク交換時に、ログ履歴を再取得する」チェックボックスをONに設定しておくことで、ログ記録ソフトウェアは、記憶装置の交換を検知するとログ履歴を再取得する。そのため、ログ履歴には、欠落が発生しない。図17の画面の「ハードディスク交換時に、ログ履歴を再取得する」チェックボックスをOFFに設定しておくと、ログ記録ソフトウェアは、必要のないログ履歴を取得することがない。よって、ユーザーの使用目的にあったログ履歴の取得方法を設定することができる。 According to the processing of this embodiment, the log recording software detects that the storage device has been replaced by setting the “Re-acquire log history when replacing hard disk” check box on the screen of FIG. 17 to ON. Re-acquire log history. Therefore, there is no omission in the log history. If the “Re-acquire log history at hard disk replacement” check box on the screen of FIG. 17 is set to OFF, the log recording software does not acquire unnecessary log history. Therefore, it is possible to set a log history acquisition method suitable for the user's purpose of use.
<その他の実施形態>
本発明は、上述の実施形態の1以上の機能を実現するプログラムを、ネットワーク又は記憶媒体を介してシステム又は装置に供給し、そのシステム又は装置のコンピュータにおける1つ以上のプロセッサがプログラムを読み出し実行する処理でも実現可能である。また、1以上の機能を実現する回路(例えば、ASIC)によっても実現可能である。
<Other embodiments>
The present invention supplies a program that realizes one or more functions of the above-described embodiments to a system or apparatus via a network or a storage medium, and one or more processors in the computer of the system or apparatus read and execute the program This process can be realized. It can also be realized by a circuit (for example, ASIC) that realizes one or more functions.
100 印刷装置、110 管理PC、220 CPU、305 リストア部 100 printing device, 110 management PC, 220 CPU, 305 restore unit
Claims (9)
前記記憶装置にバックアップされているログ情報に対応するログ情報を前記画像処理装置から取得する取得手段と、
前記取得手段によるログ情報の取得が失敗した場合、前記画像処理装置におけるログ情報の消失を検知する検知手段と、
前記検知手段により、前記画像処理装置におけるログ情報の消失が検知された場合、前記ログ情報の消失が起こった後に前記画像処理装置において生成されたログ情報を前記画像処理装置から取得し、前記記録領域に記録する記録手段と、
を有するログ記録装置。 Backup means for backing up the log information of the image processing apparatus recorded in the recording area to a storage device;
Acquisition means for acquiring log information corresponding to log information backed up in the storage device from the image processing device;
When the acquisition of log information by the acquisition unit fails, a detection unit that detects loss of log information in the image processing device;
When the detection means detects the loss of log information in the image processing device, the log information generated in the image processing device after the loss of the log information has occurred is acquired from the image processing device, and the recording Recording means for recording in the area;
A log recording device.
前記記録手段は、前記判定手段により連結すると判定された場合、前記ログ情報の消失が起こった後に前記画像処理装置において生成されたログ情報と前記記憶装置にバックアップされているログ情報とを連結して、連結したログ情報を前記記録領域に記録する請求項1又は2記載のログ記録装置。 When loss of log information in the image processing device is detected by the detection means, log information generated in the image processing device after the loss of log information has occurred and log information backed up in the storage device; And determining means for determining whether to connect
When the determination unit determines that the recording unit is connected, the recording unit connects the log information generated in the image processing apparatus after the loss of the log information and the log information backed up in the storage device. The log recording apparatus according to claim 1, wherein the connected log information is recorded in the recording area.
前記記録手段は、前記設定手段により前記ログ情報の消失が起こった後に前記画像処理装置において生成されたログ情報を前記記録領域に記録すると設定された場合、前記ログ情報を前記記録領域に記録する請求項1乃至4何れか1項記載のログ記録装置。 Further comprising setting means for setting whether or not to record log information generated in the image processing apparatus after the loss of the log information has occurred in the recording area;
The recording unit records the log information in the recording area when the setting unit is set to record the log information generated in the image processing apparatus after the loss of the log information has occurred in the recording area. The log recording device according to any one of claims 1 to 4.
記録領域に記録されている画像処理装置のログ情報を記憶装置にバックアップするバックアップステップと、
前記記憶装置にバックアップされているログ情報に対応するログ情報を前記画像処理装置から取得する取得ステップと、
前記取得ステップによるログ情報の取得が失敗した場合、前記画像処理装置におけるログ情報の消失を検知する検知ステップと、
前記検知ステップにより、前記画像処理装置におけるログ情報の消失が検知された場合、前記ログ情報の消失が起こった後に前記画像処理装置において生成されたログ情報を前記画像処理装置から取得し、前記記録領域に記録する記録ステップと、
を含む制御方法。 A method of controlling a log recording device,
A backup step of backing up the log information of the image processing apparatus recorded in the recording area to a storage device;
Obtaining log information corresponding to log information backed up in the storage device from the image processing device;
When acquisition of log information by the acquisition step fails, a detection step of detecting loss of log information in the image processing device;
When the loss of log information in the image processing apparatus is detected by the detection step, log information generated in the image processing apparatus after the loss of the log information has occurred is acquired from the image processing apparatus, and the recording A recording step for recording in the area;
Control method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2014194275A JP2016066214A (en) | 2014-09-24 | 2014-09-24 | Log recording device, control method, and program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2014194275A JP2016066214A (en) | 2014-09-24 | 2014-09-24 | Log recording device, control method, and program |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2016066214A true JP2016066214A (en) | 2016-04-28 |
Family
ID=55805554
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2014194275A Pending JP2016066214A (en) | 2014-09-24 | 2014-09-24 | Log recording device, control method, and program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2016066214A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2018028739A (en) * | 2016-08-15 | 2018-02-22 | 富士通株式会社 | Information processor, information processing system, information processing method, and program |
CN112596941A (en) * | 2020-12-28 | 2021-04-02 | 凌云光技术股份有限公司 | Tool result judgment method and device of industrial image processing software |
-
2014
- 2014-09-24 JP JP2014194275A patent/JP2016066214A/en active Pending
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2018028739A (en) * | 2016-08-15 | 2018-02-22 | 富士通株式会社 | Information processor, information processing system, information processing method, and program |
CN112596941A (en) * | 2020-12-28 | 2021-04-02 | 凌云光技术股份有限公司 | Tool result judgment method and device of industrial image processing software |
CN112596941B (en) * | 2020-12-28 | 2023-10-03 | 凌云光技术股份有限公司 | Tool result judging method and device of industrial image processing software |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8014007B2 (en) | Information processing apparatus, substitute print job management method, information processing program, and recording medium | |
US10656889B2 (en) | Image processing apparatus, control method, and storage medium for managing transmission job history information | |
US8264728B2 (en) | Log collecting system, computer apparatus and log collecting program | |
US8902458B2 (en) | Information processing apparatus, job processing system, and job processing method | |
JP6257170B2 (en) | Image forming system, image forming apparatus, and control method thereof | |
US8947721B2 (en) | Image forming apparatus, backup and restore processing method | |
US8755074B2 (en) | Updating a job list in a server after shutdown when the server is rebooted | |
US10594879B2 (en) | Information processing apparatus, information processing system, method for controlling information processing system, and storage medium | |
US20070035638A1 (en) | Information processing apparatus and information processing method | |
US20180232263A1 (en) | Information processing apparatus, method, and medium | |
US20200379695A1 (en) | Image forming apparatus, control method of image forming apparatus, and program | |
US8699069B2 (en) | Information processing apparatus, information processing method, and storage medium for processing job data stored in a folder | |
US10908851B2 (en) | Communication system and information processing apparatus that manage log information about an external apparatus, and control method therefor | |
JP5381059B2 (en) | Device, log recording control method, and program | |
JP6349733B2 (en) | Information processing apparatus, recovery support method, recovery support program, recovery support system, and recovery support server | |
JP2016066214A (en) | Log recording device, control method, and program | |
US9924064B2 (en) | Information processing apparatus, method of controlling the same, and storage medium | |
US9423992B2 (en) | Management system and control method | |
US10572182B2 (en) | Image forming apparatus, image forming system, control method, and recording medium | |
JP6743546B2 (en) | Information processing apparatus, information processing system, information processing method, and program | |
US20190387107A1 (en) | Image processing device, self-diagnostic method and non-transitory recording medium | |
JP7309349B2 (en) | Information processing device, its control method, and program | |
JP4773195B2 (en) | Information device and computer-readable recording medium | |
US20190102127A1 (en) | Image forming apparatus, control method, and storage medium | |
JP6950392B2 (en) | Information processing systems, information processing equipment and programs |