Operating System - HP-UX
1833771 Members
2218 Online
110063 Solutions
New Discussion

error when printer remove

 
Jose_129
Regular Advisor

error when printer remove

I need remove printer,but present a error:
"Lp destination "qlasemis2" does not exist on rp2405"

Any news please

Regards

Jose
Change password in way single user, beginning in multiuser way console
8 REPLIES 8
T G Manikandan
Honored Contributor

Re: error when printer remove

what is the output of lpstat -t
Jose_129
Regular Advisor

Re: error when printer remove

#lpstat -t

printer qmatemis1 is idle. enabled since Dec 9 17:43
fence priority : 0
printer qmatsini1 is idle. enabled since Dec 9 17:44
fence priority : 0
printer sismat is idle. enabled since Dec 9 19:13
fence priority : 0
printer qlasemis2 is idle. enabled since Jan 18 01:24
fence priority : 0

Change password in way single user, beginning in multiuser way console
Jose_129
Regular Advisor

Re: error when printer remove

Any news?
Change password in way single user, beginning in multiuser way console
Geoff Wild
Honored Contributor

Re: error when printer remove

Are you doing the following:

lpshut
lpadmin -Xqlasemis2
lpsched -v

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
doug mielke
Respected Contributor

Re: error when printer remove

I've had this before, and for me is was a missing spool file, might have been in the /var/spool/lp/reqest?

What I think I did to remove the printer was

remove the file /var/spool/lp/interface/printername

I was then allowed to recreate the same printername, which then created, or overwrote the necessary files.

then removed as usual with
lpadmin -xprintername

I hope this helps.
Bill Hassell
Honored Contributor

Re: error when printer remove

Someone has removed a file or files from the spooler subsystem...not a good idea. The pstatus file contains the printer names and connections (in binary format) and many other files and directories are created and loosely to this status file. If lpadmin -xqlasemis2 still fails, make a paper list of all the printers using lpstat -t then stop the spooler (lpshut), check that all lp processes are terminated (ps -f -u lp) and kill any that are still running.

Now remove all the printers using lpadmin -x and look at /var/spool/lp/pstatus. It should be zero length. If not, use the command:

cat /dev/null > /var/spool/lp/pstatus

And make sure that qstatus and outputq are also zero length. Now you can add the printers back and all should be well.


Bill Hassell, sysadmin
doug mielke
Respected Contributor

Re: error when printer remove

Bill,
For my future reference, since I have close to 600 printers on my system, could I make use of Sam's save spooler config to solve something like this?
Geoff Wild
Honored Contributor

Re: error when printer remove

Doug,

You can also back up the spooler from the command line:

echo Backing up the spooler configuration to /var/sam/lp/lp.new....please wait...; /usr/sam/lbin/lpmgr -S -v -xsavedir=/var/sam/lp/ ; cp -r -p /var/sam/lp/lp.new/* /var/sam/lp/


Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.