System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

Printer queues on unix disabled and reported as enabled.

psalm139
Occasional Contributor

Printer queues on unix disabled and reported as enabled.

Hi , this is the issue that i have:

 

if i run the command:

 lpstat -p | grep printer | grep -v enabled, i will get the printer queue is disabled..

 

i ran this command in June 28 2011,, for printer MYPRINTER1 i got:SERVER1

$ lpstat -p | grep MYPRINTER
printer MYPRINTER1 is idle.  enabled since Feb 15 16:55
printer MYPRINTER3 is idle.  enabled since Feb 15 16:55
printer MYPRINTER4 is idle.  enabled since Feb 15 18:15
printer MYPRINTER5 is idle.  enabled since Feb 15 16:55
printer MYPRINTER6 is idle.  enabled since Feb 15 16:55
printer MYPRINTER7 is idle.  enabled since Feb 15 16:55
SERVER1 $

 

 

There is a script running this command each 30 minutes since June 28, suddenly the scrpt reported today a queue was enabled:

SERVER1 $ more STAT.log
HOSTNAME  CURRENT DATE     QUEUE       DISABLED SINCE      ENABLED SINCE
server1   07/21/11_18:15   MYPRINTER4   Jul  4 17:45 -     Jul 21 18:15

 

if i run the lpstat command as before:

 SERVER1 $ lpstat -p | grep MYPRINTER
printer MYPRINTER1 is idle.  enabled since Feb 15 16:55
printer MYPRINTER3 is idle.  enabled since Feb 15 16:55
printer MYPRINTER4 is idle.  enabled since Jul 21 18:15
printer MYPRINTER5 is idle.  enabled since Feb 15 16:55
printer MYPRINTER6 is idle.  enabled since Feb 15 16:55
printer MYPRINTER7 is idle.  enabled since Feb 15 16:55
SERVER1 $

 

Why the queue of the printer MYPRINTER1 was enabled until today and not July 4 if the script is running from June 28 ?

I have had other cases where the queue is disaabled and immeditetly the queue is enabled through the script :

enabled queue_name_reported

 

 

Do you have any idea?  Thanks in advance.

 

1 REPLY
Dennis Handly
Acclaimed Contributor

Re: Printer queues on unix disabled and reported as enabled.

>Do you have any idea?

 

Not too many since we don't have your script nor know what happened at Jul 21 18:15.

Do you have automation to enable printers?

 

Does your script log changes?  Or do you have a back up of STAT.log that shows that it was disabled after July 4 or enabled before July 21?