Operating System - HP-UX
1756584 Members
3012 Online
108848 Solutions
New Discussion юеВ

Re: delete printers after the printers have been physically removed

 
Thomas Greig
Regular Advisor

delete printers after the printers have been physically removed

I have a problem with my hp-ux 11i system where 4-5 printers no longer exist on the system, but they are still in the "Printers and Plotters" list.

This is printers used on different locations but is not in use any more.

Unfortunately some of them also have been removed from various catalogues under /etc/lp/ during an attempt to remove the printers from the system.

could someone please try to help me removing the properly?

I have tried to recreate the que/printer with
/opt/hpnpl/bin/addqueue -i 9998 -hlp1 -q lp1
# Could not create the queue

also tried the

# touch /etc/lp/member/lp1
# chown lp:lp /etc/lp/member/lp1
# lpadmin -xlp1

result: lpadmin: destination "lp1" non-existent
2 REPLIES 2
Cheryl Griffin
Honored Contributor

Re: delete printers after the printers have been physically removed

Place these directory and files there as well.
mkdir /var/spool/lp/request/lp1
touch /etc/lp/interface/lp1
chmod 755 all the lp1 files
chown lp:lp all the lp1 files
Try lpadmin -x lp1 again

"Downtime is a Crime."
Josiah Henline
Valued Contributor

Re: delete printers after the printers have been physically removed

You can check the lp log file.

tail -30 /var/adm/lp/log

It should give more detail about what may be missing.
If at first you don't succeed, read the man page.