- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Unable to remove print queue
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-26-2010 09:02 PM
тАО09-26-2010 09:02 PM
I am doing a cleanup of all the print queue in my system and while I was able to use "removequeue -q" to remove them, there's this one particular one that won't be removed.
I also tried using SAM to remove but still it won't go.
I tried also to use "lpadmin -x" but it's still there.
How do I remove it?
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-26-2010 10:15 PM
тАО09-26-2010 10:15 PM
Re: Unable to remove print queue
have you tried with below command,
# cancel -e
please check the below link for your reference which may be useful to resolve your problem,
http://forums13.itrc.hp.com/service/forums/questionanswer.do?admit=109447627+1285567872843+28353475&threadId=1218672
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-26-2010 11:37 PM
тАО09-26-2010 11:37 PM
Re: Unable to remove print queue
cancel [id ...] [printer ...] [-a] [-e] [-i] [-uuser]
try manpage of cancel, lp ;
# man cancel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-27-2010 04:38 PM
тАО09-27-2010 04:38 PM
SolutionFolks, I think he is attempting to remove the queue itself and not the message in the queue.
Is that correct?
Did you try to use the -f switch with the removequeue command? The -f switch should force the removal.
Are you getting any error messages? If so can you please post?
thanks,
kev
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-28-2010 01:52 AM
тАО09-28-2010 01:52 AM
Re: Unable to remove print queue
You are right. I am trying to remove the entire queue.
Here's the error :
# lpstat -pPRT6455
lpstat: printer "PRT6455" non-existent
# removequeue -q PRT6455 -f
Could not cancel jobs for PRT6455
# lpadmin -xPRT6455
lpadmin: destination "PRT6455" non-existent
I would like to remove this and recreate (or add) again.
Thanks & regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-28-2010 08:43 AM
тАО09-28-2010 08:43 AM
Re: Unable to remove print queue
Is the printer queue you are trying to delete on the server that contains the spool?
Please post the results of the following:
cd /etc/lp
find . -name PRT6455
cd /var/spool/lp
find . -name PRT6455
kev
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-28-2010 04:51 PM
тАО09-28-2010 04:51 PM
Re: Unable to remove print queue
Result as follows :
root [/etc/lp]
# find . -name PRT6455
./interface/PRT6455
./interface/model.orig/PRT6455
./member/PRT6455
root [/var/spool/lp]
# find . -name PRT6455
root [/var/spool/lp]
#
It can be found in "/etc/lp" but not "/var/spool/lp".
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-28-2010 06:07 PM
тАО09-28-2010 06:07 PM
Re: Unable to remove print queue
cd /var/spool/lp/request
mkdir PRT6455
chown lp:lp PRT6455
chmod 755 PRT6455
/sbin/init.d/lp stop
/sbin/init.d/lp start
You may want to look in /var/adm/syslog/syslog.log for any messages that may come up about the spooler. If no errors then proceed.
Then start SAM. Double-click "Printers and Plotters", then "LP Spooler", then "Printers and Plotters".
Select the line with PR6455 from the list of spoolers.
Click on "Actions" and then click on "Remove".
If that fails to work then you may try the brute force method of removing the files by hand.
Try this if the first method above doesn't help:
/sbin/init.d/lp stop
cd /var/spool/lp/request
rm -r PR6455
cd /etc/lp
rm interface/model.orig/PR6544
rm interface/PR6544
rm member/PR6544
cd /var/sam/lp
rm member/it_laser
rm interface/it_laser
rm interface/model.orig/it_laser
/sbin/init.d/lp start
Let us know how it goes.
kev
PS
Keep in mind that stopping and starting the printer spooler may interrupt someones print job! So, be careful. ;o)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-29-2010 06:23 PM
тАО09-29-2010 06:23 PM
Re: Unable to remove print queue
Thanks for your patience and detailed reply.
I have tried the first part (SAM -> Actions -> Remove) and the error is :
"Lp destination "PRT6455" does not exist on
By brute force, I have removed all files named "PRT6455" in the following directories :
- /var/spool/lp/request/
- /etc/lp/interface/model.orig/
- /etc/lp/interface/
- /etc/lp/member/
- /var/sam/lp/interface/model.orig/
- /var/sam/lp/interface/
- /var/sam/lp/member/
- /var/sam/lp/cinterface/
- /var/sam/lp/sinterface/
Just to confirm that all traces of "PRT6455" has been removed, I do a "find . -name PRT6455 -print", there are no more files found.
But when I go to "SAM->Printers and Plotters->LP Spooler->Printers and Plotters", I can still see "PRT6455".
This printer is stubborn.... :(
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-29-2010 06:37 PM
тАО09-29-2010 06:37 PM
Re: Unable to remove print queue
/var/sam/lp/lpinfo
If so, remove it!
Let me know. ;o)
kev
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-02-2010 01:18 AM
тАО10-02-2010 01:18 AM
Re: Unable to remove print queue
It's in "/var/sam/lp/lpinfo" and I have removed it.
When I go to SAM, it's still there. And using SAM -> Actions -> Remove, the error is still there :
"Lp destination "PRT6455" does not exist on
This printer sure doesn't want to be removed.
Thanks for working with me through this.
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-04-2010 11:02 AM
тАО10-04-2010 11:02 AM
Re: Unable to remove print queue
Have you stopped and restarted the lp daemon since since removing it from the lpinfo file?
kev
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-04-2010 06:46 PM
тАО10-04-2010 06:46 PM
Re: Unable to remove print queue
No luck !
I have stopped the lp daemon, go to SAM -> Actions -> Remove, and the error is still there :
"Lp destination "PRT6455" does not exist on
I have also removed the IP address in /etc/hosts when I did the above.
SAM somehow still remembers this entry even though we have removed all traces of it.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-04-2010 08:41 PM
тАО10-04-2010 08:41 PM
Re: Unable to remove print queue
I suppose you could use tusc to track down what SAM is doing and what files it is reading.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-05-2010 12:30 AM
тАО10-05-2010 12:30 AM
Re: Unable to remove print queue
kev
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-29-2010 01:47 AM
тАО10-29-2010 01:47 AM
Re: Unable to remove print queue
Thanks for the reply.
With my limited UX knowledge, I didn't dare to
attempt using "tusc". =)
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-29-2010 01:47 AM
тАО10-29-2010 01:47 AM
Re: Unable to remove print queue
Sorry for the late reply.
I have managed to remove that printer queue. I didn't try "tusc" as I think it's beyond my expertise.
Anyway, all the printer profiles and related files were "manually created" (by copying from a valid printer and renaming it) in all the locations and then using "remove queue" to remove it - and it worked.
Thanks for all your patience and help. =)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-29-2010 04:53 PM
тАО10-29-2010 04:53 PM
Re: Unable to remove print queue
tusc isn't hard to use but you may have trouble limiting or interpreting the info.
tusc -fp -o tusc.out -ea sam ...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-29-2010 04:58 PM
тАО10-29-2010 04:58 PM
Re: Unable to remove print queue
kev