----- Original Message ----- From: "rotaiv" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, April 26, 2001 12:17 PM Subject: Re: PERL on W2K > Does anyone know how to check the status of a networked printer using perl? > > We have several networked printers that stop working for some unknown > reasons and in order to fix them, we have to delete the port on the NT > server, re-add the port then re-connect the printer again. > > I would like to write a script that can monitor the printers and when the > printer status is "unavailable" send an alert to our administrators. > First, don't reply to one thread and change the subject without changing the subject line. Bad manners. Do you want to monitor the status of the printer, the communication interface, or the print queue. If printer, use snmp modules (if HP printers use the webjetadmin program which does all this for you [using snmp]). If the interface, use Net::Ping. If not IP, shoot yourself now. If print queue, well the queue doesn't really have a status, use the win32::Service or Win32::Lanman module to check the status of the spooler service. _______________________________________________ Perl-Win32-Admin mailing list [EMAIL PROTECTED] http://listserv.ActiveState.com/mailman/listinfo/perl-win32-admin
