Maybe writing out a status record to a sequential file on the mainframe
everytime you poll the printer. Keep printer-id, date, time, return code ,
etc in that record. Then make a ISPF appl to access those records and make
it viewable.

On Tue, Nov 24, 2009 at 12:09 PM, Gilbert Cardenas <
[email protected]> wrote:

> I have the need to monitor the status of an lpr printer running on a
> windows server from the mainframe.
>
> We use VPS to route print from the mainframe to the windows server
> and when the server goes down for maintenance etc, the vps printer
> goes into an error status cause it can't communicate with the printer.
> I can't rely on the network folks to communicate what they are doing to
> me so I really need this to be automated.
>
> I have developed a jcl that uses IKJEFT01 to issue an LPQ command
> against the printer and some REXX code to extract the status.  I can
> schedule the job to run in 15 minute intervals and return a code of zero
> if all is well or one if the printer is inaccessible.
>
> I'm stuck with how to keep track of the status of the printer.  Is there
> some global variable I could set somewhere that would maintain the
> value of the status of the printer(s) such as up or down.
>
> Is there a better way to do this?  Without purchasing new software of
> course.  Can the HEALTH CHECKER be used for this application?
>
> Any Ideas?
>
> ----------------------------------------------------------------------
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to [email protected] with the message: GET IBM-MAIN INFO
> Search the archives at http://bama.ua.edu/archives/ibm-main.html
>



-- 
"I am as you, in you, for you. One as you in all, as all, forever. My call
is your call."

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to