LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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
 
LinkBack Search this Thread
Old 10-22-2009, 04:43 AM   #1
xunil321
Member
 
Registered: Mar 2004
Posts: 31

Rep: Reputation: 15
Printer can't be removed under Solaris 10


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
 
Old 10-22-2009, 06:14 AM   #2
xeleema
Member
 
Registered: Aug 2005
Location: D.i.t.h.o, Texas
Distribution: Slackware 13.x, rhel3/5, Solaris 8-10(sparc), HP-UX 11.x (pa-risc)
Posts: 942
Blog Entries: 4

Rep: Reputation: 237Reputation: 237Reputation: 237
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 06:16 AM.
 
Old 10-22-2009, 08:03 AM   #3
xunil321
Member
 
Registered: Mar 2004
Posts: 31

Original Poster
Rep: Reputation: 15
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
 
Old 10-24-2009, 12:59 AM   #4
xeleema
Member
 
Registered: Aug 2005
Location: D.i.t.h.o, Texas
Distribution: Slackware 13.x, rhel3/5, Solaris 8-10(sparc), HP-UX 11.x (pa-risc)
Posts: 942
Blog Entries: 4

Rep: Reputation: 237Reputation: 237Reputation: 237
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 01:19 AM.
 
Old 10-26-2009, 03:28 AM   #5
xunil321
Member
 
Registered: Mar 2004
Posts: 31

Original Poster
Rep: Reputation: 15
@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
 
Old 10-28-2009, 11:09 AM   #6
xeleema
Member
 
Registered: Aug 2005
Location: D.i.t.h.o, Texas
Distribution: Slackware 13.x, rhel3/5, Solaris 8-10(sparc), HP-UX 11.x (pa-risc)
Posts: 942
Blog Entries: 4

Rep: Reputation: 237Reputation: 237Reputation: 237
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 11:10 AM.
 
Old 10-29-2009, 05:10 AM   #7
xunil321
Member
 
Registered: Mar 2004
Posts: 31

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

Rainer
 
Old 11-02-2009, 04:28 AM   #8
xeleema
Member
 
Registered: Aug 2005
Location: D.i.t.h.o, Texas
Distribution: Slackware 13.x, rhel3/5, Solaris 8-10(sparc), HP-UX 11.x (pa-risc)
Posts: 942
Blog Entries: 4

Rep: Reputation: 237Reputation: 237Reputation: 237
*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 04:31 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are 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 04:19 AM
Trying to connect to Solaris 8 printer server minghia Fedora 0 06-25-2004 03:46 AM
Printer sharing with Windows and Solaris puzz_1 Linux - Newbie 3 06-04-2003 07:53 PM
Network Printer on Solaris 8 Pimple Solaris / OpenSolaris 6 02-07-2003 03:07 PM


All times are GMT -5. The time now is 07:16 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
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration