We use IBM SA and I have trapped several of the VPS error msgs in the system automation table and perform automatic resets in VPS and other products when the errors occur. I am not sure how to do this with regular Netview without SA, but with SA you can issue modify commands to VPS and obtain the response, so that you know the status of the printer; although if you fix the errors as they occur you Would not need to know the status every time.
We also use DRS/TCPIP for LPR printers and error msgs from that product are trapped as well. -----Original Message----- From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf Of Gilbert Cardenas Sent: Tuesday, November 24, 2009 11:09 AM To: [email protected] Subject: Monitor lpr printer on Windows from Mainframe 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 ---------------------------------------------------------------------- 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

