ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> perl-win32-admin
perl-win32-admin
Re: how to check the status of a networked printer (Was - Re: PERL on W2K)
by Paul Popour other posts by this author
Apr 27 2001 12:49AM messages near this date
view in the new Beta List Site
Re: how to check the status of a networked printer | Re: how to check the status of a networked printer
----- Original Message -----
From: "rotaiv" <rotaiv@[...].com> 
To: <perl-win32-admin@[...].com> 
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
Perl-Win32-Admin@[...].com
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-admin
Thread:
rotaiv
Paul Popour
Paul Popour
rotaiv

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved