LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris and OpenSolaris.
General Sun, SunOS and Sparc related questions also go here.

Notices

Reply
 
Thread Tools
Old 10-22-2009, 05:43 AM   #1
xunil321
LQ Newbie
 
Registered: Mar 2004
Posts: 29
Thanked: 0
Printer can't be removed under Solaris 10


[Log in to get rid of this advertisement]
Dear all,
we are running a Solaris 10 8/08 Sparc system called 'test-s' where
#lpstat -t shows such a line:
system for mps2_p: printer-s (as lpd://printer-s/printers/mps2_p#Solaris)
How can we get rid of this entry because #lpstat -x mps2_p says
'unknown printer'.
THX for any help!
Rainer
solaris xunil321 is offline     Reply With Quote
Old 10-22-2009, 07:14 AM   #2
xeleema
Member
 
Registered: Aug 2005
Location: Deep in the Heart of Texas
Distribution: Slackware 13, RHEL5, Solaris (10 on SPARC), HP-UX (11.11 on PA-RISC)
Posts: 121
Thanked: 27
Greetingz!

I'm not in front of a Solaris 10 box, but if memory serves me correctly, it's "lpadmin -x printqueuename".
So in your case, it should be "lpadmin -x mps2_p".

However, you may want to check the man page to be sure. Also, if that doesn't work, the hostname of the system may have changed since the print queue was added. In which case you'll have to check /etc/printers.conf, too.

P.S: Click the blue thumb if this helps!

Last edited by xeleema; 10-22-2009 at 07:16 AM..
windows_xp_2003 xeleema is offline     Reply With Quote
Old 10-22-2009, 09:03 AM   #3
xunil321
LQ Newbie
 
Registered: Mar 2004
Posts: 29
Thanked: 0

Original Poster
Oh, sorry it is a typo I mean of course #lpadmin -x.
Nevertheless this doesn't work, also /etc/printers.conf
has no 'mps2_p' entry!

Rainer
solaris xunil321 is offline     Reply With Quote
Old 10-24-2009, 01:59 AM   #4
xeleema
Member
 
Registered: Aug 2005
Location: Deep in the Heart of Texas
Distribution: Slackware 13, RHEL5, Solaris (10 on SPARC), HP-UX (11.11 on PA-RISC)
Posts: 121
Thanked: 27
Basic Troubleshooting Info Needed

Okay,

Let's go over some basic Solaris-based printer queue troubleshooting;

What does "lpstat -a" show you about the printer?

Do you have a "mps2_p" file in /etc/lp/interfaces?

Have you tried "/usr/bin/disable -c mps2_p"?

Check your syslog configuration (/etc/syslog.conf) and find out where you're print logs are going. Take a look at them and find some errors

Are your printing services running?
sysop$ svcs | egrep -i "lp|print"
online May_19 svc:/application/print/ppd-cache-update:default
online May_19 svc:/application/print/server:default
online May_19 svc:/application/print/ipp-listener:default
online May_19 svc:/application/print/rfc1179:default
Anything in the print queues?
lpstat -o

How was the "mps2_p" printer configured?
lpstat -lp mps2_p

Have you tried stopping, then starting the print services?
sysop$ for x in $(svcs | egrep -i "lp|print"|awk '{print $3}')
do
svcadm disable $x
sleep 30
svcadm enable $x
done


"Meatier" posts will net you faster answers. And if this one helps, feel free to click that little blue thumb in the bottom right-hand corner.

Last edited by xeleema; 10-24-2009 at 02:19 AM..
windows_xp_2003 xeleema is offline     Reply With Quote
Old 10-26-2009, 04:28 AM   #5
xunil321
LQ Newbie
 
Registered: Mar 2004
Posts: 29
Thanked: 0

Original Poster
@xeleema
1. lpstat -a
mps2_p accepting requests since Mon Oct 26 09:16:10 2009
2. there is no mps2_p file in /etc/lp/interfaces
3. /usr/bin/disable -c mps2_p: operation-not-supported
4. printer services are all running
5. lpstat -o: empty
6. lpstat -lp mps2_p
printer mps2_p idle. enabled since Mon Oct 26
09:25:52 2009. available.
Remote Name: mps2_p
Remote Server: printer-s
7. restarting print services didn't change anything

Rainer
solaris xunil321 is offline     Reply With Quote
Old 10-28-2009, 12:09 PM   #6
xeleema
Member
 
Registered: Aug 2005
Location: Deep in the Heart of Texas
Distribution: Slackware 13, RHEL5, Solaris (10 on SPARC), HP-UX (11.11 on PA-RISC)
Posts: 121
Thanked: 27
That's incredibly strange;

You show the print queue from another server as being available, but it isn't even listed in your /etc/printers.conf?
Does the remote server "printer-s" still exist?

Also, try stopping the printer services and *then* "disable -c mps2_p".

P.S: You are root when you attempt any of these changes, right?

Last edited by xeleema; 10-28-2009 at 12:10 PM..
windows_xp_2003 xeleema is offline     Reply With Quote
Old 10-29-2009, 06:10 AM   #7
xunil321
LQ Newbie
 
Registered: Mar 2004
Posts: 29
Thanked: 0

Original Poster
1. Server 'printer-s' exists up and running
2. disable -c mps2_p:
operation-not-supported
3. I'm 'root'

Rainer
solaris xunil321 is offline     Reply With Quote
Old 11-02-2009, 05:28 AM   #8
xeleema
Member
 
Registered: Aug 2005
Location: Deep in the Heart of Texas
Distribution: Slackware 13, RHEL5, Solaris (10 on SPARC), HP-UX (11.11 on PA-RISC)
Posts: 121
Thanked: 27
*BUMP*
By chance are you still having trouble?

If so, then the best that I can offer is to tweak and restart your syslog daemon.

1. Ensure a "lpr.debug" and "daemon.debug" lines exist in your /etc/syslog.conf.
Example:
lpr.debug /var/adm/print.log
daemon.debug /var/adm/messages

NOTE: I would suggest a 'tab' instead of a space between those fields.

2. Restart your syslog daemon
svcadm restart svc:/system/system-log:default

Once that's done, start a "tail -f /var/adm/print.log" in one xterm/dtterm/whatever session, and a "tail -f /var/adm/print.log" in another session, then start throwing "disable" commands at the printer.

Maybe that'll show something useful, because I know we're missing something here....

Good Luck!

P.S: You might want to comment-out those syslog.conf entries and restart the syslog service once you've found something useful. Things can get quite chatty, and huge log files are a pest.

Last edited by xeleema; 11-02-2009 at 05:31 AM..
windows_xp_2003 xeleema is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Removed accidently removed panel at Suse 11.1? alte_mann Suse/Novell 6 01-29-2009 05:19 AM
Trying to connect to Solaris 8 printer server minghia Fedora 0 06-25-2004 04:46 AM
Printer sharing with Windows and Solaris puzz_1 Linux - Newbie 3 06-04-2003 08:53 PM
Network Printer on Solaris 8 Pimple Solaris / OpenSolaris 6 02-07-2003 04:07 PM


All times are GMT -5. The time now is 03:28 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration