【0001】
【発明の属する技術分野】
本発明は、スプーラを使用して印刷ジョブを実行し、プリンタに出力するコンピュータシステムに関するものである。
【0002】
【従来の技術】
従来技術として、プリンタの障害(用紙詰りや用紙切れ)に対して障害を検出し利用者に通知することによって復旧させるものや、2系統以上のシステムによって障害の発生していないプリンタに対して自動的に代行印刷させるものがある。
【0003】
【特許文献1】
特開2000−89921号公報(第3−5頁、第5図)
【特許文献2】
特開平11−277854号公報(第2−3頁、第2図)
【0004】
【発明が解決しようとする課題】
しかし従来の機能では、プリンタの障害に対する回復手段が存在するが、スプーラで障害が発生した場合に、それを検出し復旧させるという手段がなく、印刷ジョブが停滞してしまうという問題が発生する。
【0005】
そこで本発明の目的は、印刷ジョブの実行状況を時間監視し、またスプーラの動作状況を監視することで、スプーラの障害を検知し、その場合には同じシステム内に待機させてあるもう一つのスプーラによって印刷を再開させ、印刷ジョブの停滞を防止することにある。
【0006】
【課題を解決するための手段】
上記目的を達成するために、本発明はスプールした印刷ジョブデータをプリンタに送信して印刷を行なうコンピュータシステムにおいて、スプールされた印刷ジョブの実行開始時間および印刷ジョブ実行状況を取得する。
【0007】
印刷ジョブの実行開始時間からスプールされた印刷ジョブの状態を監視し、印刷ジョブが終了せずに停滞している時間を算出する。
【0008】
また、スプーラの状態が異常であると判断する時刻を経過した場合に、印刷制御をスプーラ(正)から待機しているスプーラ(副)へ切り換える。
【0009】
また、スプーラの稼動状態を監視し、機能が停止している場合に、印刷制御をスプーラ(正)から待機しているスプーラ(副)へ切り換える。
【0010】
【発明の実施の形態】
次に本発明の実施の形態について図1を参照して説明する。
図1は本発明に適用される印刷自動回復装置の主要部を示す図である。印刷自動回復装置はコンピュータにおいて、専用ポート1から印刷ジョブデータを保存し、待機するスプーラ2とスプーラ2から渡された印刷ジョブデータをスプールするスプーラ3とスプーラ3からプリンタ4に送信された印刷ジョブデータの実行状況を監視し、またスプーラ3のプロセスが正常に動作しているか否かを監視し、異常が発生しているか否かを判定するジョブ監視手段5と現在どのジョブまでが実行されているかを管理するジョブ管理手段6とによって構成される。
【0011】
図2で印刷自動回復装置の動作について説明する。まず、専用ポート201を介して印刷ジョブデータがスプーラ202に渡される。そこで印刷ジョブデータはスプーラ202に保存される。(203)スプーラ202から送られた印刷ジョブデータは、スプーラ204にスプールされた後、プリンタに送信され、印刷が行われる。(205)
印刷ジョブ実行開始時に印刷ジョブデータの管理情報をジョブ管理手段206が取得し、管理テーブル207に登録する。(208)その後印刷ジョブ終了までジョブ監視手段209で監視を続ける。(210)
監視時間が一定値を超えた場合、またはスプーラ204のプロセスが正常に動作していないことを検出すると、スプーラ204で異常が発生しているものと判定(211)し、印刷制御をスプーラ202に移す。(212)
どのジョブから実行するかは管理テーブル207から判定し、203で保存された印刷ジョブデータを使用して印刷を行う。(213)
図3は、図2で示した管理テーブルの構造を示した図である。
管理テーブルではスプールされた印刷データ毎にジョブID31および、ジョブ名32、を格納する。さらにジョブ登録時間33、ジョブ実行開始時間34、ジョブ実行状況35、さらにタイムアウト値36を格納する。
【0012】
【発明の効果】
本発明を使用することにより、スプーラの障害で印刷が中断されるようなケースにおいてその発生を検出し、手作業による復旧作業なしで自動的に印刷が再開できる。
【図面の簡単な説明】
【図1】は本発明の構成を示した図。
【図2】はジョブ管理手段で使用するテーブル図。
【図3】はタイムアウト発生時のフローチャート図
【符号の説明】
1 専用ポート
2 スプーラ(副)
3 スプーラ(正)
4 プリンタ
5 ジョブ管理手段
6 ジョブ監視手段[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to a computer system that executes a print job using a spooler and outputs the print job to a printer.
[0002]
[Prior art]
As a conventional technique, a printer failure (paper jam or paper exhaustion) is detected and recovered by notifying a user of the failure, and automatic recovery is performed for a printer having no failure by two or more systems. There is an alternative that prints on behalf of another.
[0003]
[Patent Document 1]
JP-A-2000-89921 (page 3-5, FIG. 5)
[Patent Document 2]
JP-A-11-277854 (page 2-3, FIG. 2)
[0004]
[Problems to be solved by the invention]
However, in the conventional function, there is a recovery means for a printer failure. However, when a failure occurs in the spooler, there is no means for detecting and recovering the failure, and a problem occurs in that the print job is stagnated.
[0005]
Therefore, an object of the present invention is to monitor the execution status of a print job over time and also monitor the operation status of a spooler to detect a failure of the spooler, and in that case, another one which is kept waiting in the same system. An object of the present invention is to restart printing by a spooler and prevent a stagnation of a print job.
[0006]
[Means for Solving the Problems]
In order to achieve the above object, the present invention obtains an execution start time and a print job execution status of a spooled print job in a computer system that transmits spooled print job data to a printer and performs printing.
[0007]
The status of the spooled print job is monitored based on the execution start time of the print job, and the time during which the print job is not stopped but stays is calculated.
[0008]
Further, when the time for determining that the state of the spooler is abnormal has elapsed, the print control is switched from the spooler (primary) to the standby spooler (secondary).
[0009]
Further, the operation state of the spooler is monitored, and when the function is stopped, the print control is switched from the spooler (primary) to the standby spooler (secondary).
[0010]
BEST MODE FOR CARRYING OUT THE INVENTION
Next, an embodiment of the present invention will be described with reference to FIG.
FIG. 1 is a diagram showing a main part of an automatic printing recovery apparatus applied to the present invention. The automatic print recovery apparatus stores, in a computer, print job data from a dedicated port 1, a spooler 2 which stands by, a spooler 3 which spools print job data passed from the spooler 2, and a print job transmitted from the spooler 3 to the printer 4. The job monitoring unit 5 monitors the data execution status, monitors whether the process of the spooler 3 is operating normally, and determines whether an error has occurred. Job management means 6 which manages the
[0011]
The operation of the automatic print recovery apparatus will be described with reference to FIG. First, print job data is passed to the spooler 202 via the dedicated port 201. Then, the print job data is stored in the spooler 202. (203) The print job data sent from the spooler 202 is spooled by the spooler 204, and then sent to the printer for printing. (205)
At the start of execution of the print job, the management information of the print job data is acquired by the job management unit 206 and registered in the management table 207. (208) Thereafter, monitoring is continued by the job monitoring unit 209 until the print job is completed. (210)
If the monitoring time exceeds a certain value, or if it is detected that the process of the spooler 204 is not operating normally, it is determined that an abnormality has occurred in the spooler 204 (211), and print control is sent to the spooler 202. Move. (212)
The job to be executed is determined from the management table 207, and printing is performed using the print job data stored in 203. (213)
FIG. 3 is a diagram showing the structure of the management table shown in FIG.
The management table stores a job ID 31 and a job name 32 for each spooled print data. Further, a job registration time 33, a job execution start time 34, a job execution status 35, and a timeout value 36 are stored.
[0012]
【The invention's effect】
By using the present invention, in a case where printing is interrupted due to a failure of the spooler, the occurrence can be detected, and printing can be automatically resumed without manual recovery work.
[Brief description of the drawings]
FIG. 1 is a diagram showing a configuration of the present invention.
FIG. 2 is a table diagram used by a job management unit.
FIG. 3 is a flowchart when a timeout occurs.
1 Dedicated port 2 Spooler (secondary)
3 Spooler (positive)
4 Printer 5 Job management means 6 Job monitoring means