lp not allowing more than 40 printers installed using hppi

This is a new Solaris 10 install, my first. I installed hppi (Version E.10.34) and 40 printers, when I got to number 41, it seemed to install ok, but lp does not recognize it. I deleted a printer that had installed ok, then retried the one that had failed. lp accepted it. Then tried to reinstall the earlier accepted one, no dice.

lp -d dan test.txt

UX:lp: ERROR: Destination "dan" is unknown to the LP print service.

lpstat -a

sysadmin3 accepting requests since Wed Mar 28 15:53:28 2007

...

UX:lpstat: ERROR: Destination "dan" does not exist.

TO FIX: Use a printer or class that exists on this system.

[653 byte] By [Fast_Winga] at [2007-11-27 1:49:08]
# 1

I had exactly the same problem (the same version Solaris and hppi).

This seemed to work:

/usr/sbin/accept printer_name

/usr/bin/enable printer_name

Here are two scripts to do it on the grand scale:

#!/bin/bash

lpstat -a | grep not |awk '{print $1}' | while read printer

do

echo "Enabling the queue for printer: " $printer

accept $printer

done

and for the second one

#!/bin/bash

lpstat -p | grep disabled |awk '{print $2}' | while read printer

do

echo "Enabling the queue for printer: " $printer

/usr/bin/enable $printer

done

Hopefully, it helps.

roodnitskyleonida at 2007-7-12 1:14:03 > top of Java-index,General,Maintenance...