- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- remove a printer - won't go away
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
Forums
Discussions
Discussions
Discussions
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
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
05-06-2003 07:11 AM
05-06-2003 07:11 AM
Went through to remove a printer from an HPUX 11.00 system
lpshut;lpadmin -x
The first time the response was the printer was removed. Now I am trying to add a remote printer with the same name. In doing so the system responds that a printer with this name already exists. Did a search for the printer name and found 3 instances:
/var/sam/lp/member/
/var/sam/lp/interface/
/var/sam/lp/interface/model.orig/
I removed these files, lpshut, lpsched, no instance of the printer on the system - in lpstat or a search.
Tried to add the remote printer again and the system is telling me it still exists.
What is going on?
Many thanks!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2003 07:20 AM
05-06-2003 07:20 AM
Re: remove a printer - won't go away
Try
# lpadmin -x printername
Robert-Jan.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2003 11:51 AM
05-06-2003 11:51 AM
Re: remove a printer - won't go away
Here is a thought. Maybe your old printer is still in one of the lp status files in /var/spool/lp [outputq, pstatus, qstatus]. Take a look in there and see if you see it. If so, you might try putting back the files you removed and then try removing it again. Maybe there was a permissions or ownership problem on one of those files?
JP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2003 11:59 AM
05-06-2003 11:59 AM
Re: remove a printer - won't go away
Just a thought.
-USA..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2003 12:11 PM
05-06-2003 12:11 PM
Re: remove a printer - won't go away
Check /var/spool/lp/, /var/adm/lp, /etc/lp/member
and remove any entry of that printer. most probable it will go away.
Sachin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2003 12:13 PM
05-06-2003 12:13 PM
Re: remove a printer - won't go away
At the very least, you can run from the root dir:
find / -name "*printername* -print |xargs -i rm []
and then see what sam lets you do.
HTH
mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2003 12:23 PM
05-06-2003 12:23 PM
Re: remove a printer - won't go away
Try thisn one
# sam
Printers & Plotters
LP Spooler
Save Spooler Configuration
Restore Spooler Configuration
sam will try to restore any faults,
after this remove the printer with lpadmin -x
Hope it helps,
Robert-Jan.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2003 12:41 PM
05-06-2003 12:41 PM
Solutionthen have a look at the following doc..
http://www1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000066028328
-USA..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2003 12:46 PM
05-06-2003 12:46 PM
Re: remove a printer - won't go away
There is no DNS in play, I have searched the entire system for the printer - nothing shows up, SAM invokes the jetadmin app, jetadmin removal does not find it.
I will keep hacking away. Many thanks for the feedback and keep those ideas coming!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2003 01:06 PM
05-06-2003 01:06 PM
Re: remove a printer - won't go away
This is similar to a response I did today.
I. SAM -> Printers and Plotters -> LP Spooler -> Save / Restore Spooler Configuration -> Actions -> Save Spooler Configuration
2. Exit SAM
C. cd /var/sam/lp
edit the file, lpinfo, and make any changes to the remote printer lines that you like and save the file.
IV. SAM -> Printers and Plotters -> LP Spooler -> Save / Restore Spooler Configuration -> Actions -> Restore Spooler Configuration
----------------------------
The actual lp data is stored in /var/spool/lp/pstatus but it's a binary file so that editing would require C or Perl.
============================
I suspect that your problem is pstatus. I would look for your entry in the lpinfo file above and also look through all the directories under /var/sam/lp for any references to your printer and delete them before restoring the configuration.
I don't know if this will work but you might also try nulling the pstatus file in /var/sam/lp.
As a test, do a strings /var/spool/lp/pstatus | grep "yourprinter" to see any references there.
May the force be with you, Clay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2003 01:39 PM
05-06-2003 01:39 PM
Re: remove a printer - won't go away
Congratulations - you are the lucky winner of 10 (count em) points!
The you directed me to has the info I needed. I was able to add the remote printer with no problems.
I modified the lpmgr file as directed. Worked like a champ!
Many thanks to all!