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

