Moving /etc/printers.conf | Unix Linux Forums | Solaris

  Go Back    


Solaris The Solaris Operating System, usually known simply as Solaris, is a Unix-based operating system introduced by Sun Microsystems. The Solaris OS is now owned by Oracle.

Moving /etc/printers.conf

Solaris


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 10-09-2012
davinccy davinccy is offline
Registered User
 
Join Date: Oct 2012
Last Activity: 9 October 2012, 5:21 AM EDT
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Moving /etc/printers.conf

Hi all,

I am requested to move printer definitions/configurations to new box (Solaris 10). The old box (Solaris 8) only has /etc/printers.conf configured. There are no /etc/lp/interface or /etc/lp/printer files.

What I did was, I just moved /etc/printers.conf file to the new box and restarting the print service.

The new box is able to detect and register all the print servers. But they are unable to accept any requests.

Quote:
OLD BOX

Code:
bash-3.2# cat printers.conf
#
#       If you hand edit this file, comments and structure may change.
#       The preferred method of modifying this file is through the use of
#       lpset(1M)
#
laser6l:\
        :bsdaddr=192.200.9.38,laser6l,Solaris:
escp2:\
        :bsdaddr=192.200.9.23,escp2,Solaris:
FINKT:\
        :bsdaddr=192.200.110.74,FINKT,Solaris:
AMTBP:\
        :bsdaddr=192.200.140.159,AMTBP,Solaris:
FINKLG1:\
        :bsdaddr=192.200.150.31,FINKLG1,Solaris:
FINMSG:\
        :bsdaddr=192.200.120.32,FINMSG,Solaris:
FINMUAR:\
        :bsdaddr=192.200.130.32,FINMUAR,Solaris:
FINMUAR2:\
        :bsdaddr=192.200.130.14,FINMUAR2,Solaris:
FINPTN:\
        :bsdaddr=192.200.100.32,FINPTN,Solaris:
FINSGT:\
        :bsdaddr=192.200.160.132,FINSGT,Solaris:
epsonjb:\
        :bsdaddr=192.200.9.68,epsonjb,Solaris:
_default:\
        :use=FINSGT:
FIN1BP:\
        :bsdaddr=192.200.140.29,FIN1BP,Solaris:
p130157:\
        :bsdaddr=192.200.130.157,p130157,Solaris:
P-salwani:\
        :bsdaddr=192.200.9.31,P-salwani,Solaris:
secondary1:\
        :bsdaddr=192.200.9.16,secondary1,Solaris:
zaidijet2200:\
        :bsdaddr=192.200.9.135,zaidijet2200,Solaris:
idah_printer:\
        :bsdaddr=192.200.10.69,idah_printer,Solaris:
hp:\
        :bsdaddr=192.200.10.190,hp,Solaris:
LIZA_IT:\
        :bsdaddr=192.200.9.54,LIZA_IT,Solaris:
K_tinggi:\
        :bsdaddr=192.200.110.103,K_tinggi,Solaris:
AUDIT:\
        :bsdaddr=192.200.10.168,AUDIT,Solaris:
laserjet:\
        :bsdaddr=192.200.9.219,laserjet,Solaris:
LASERJET:\
        :bsdaddr=192.200.9.219,LASERJET,Solaris:
LASERJET1:\
        :bsdaddr=192.200.10.189,LASERJET1,Solaris:
HPLaserJ:\
        :bsdaddr=192.200.22.81,HPLaserJ,Solaris:
laserHR:\
        :bsdaddr=192.200.21.49,laserHR,Solaris:
stor3:\
        :bsdaddr=192.200.23.34,stor3,Solaris:
cpu3:\
        :bsdaddr=192.200.23.42,cpu3,Solaris:
OSHA:\
        :bsdaddr=192.200.22.67,OSHA,Solaris:
Rozita:\
        :bsdaddr=192.200.21.49,Rozita,Solaris:
Azhar:\
        :bsdaddr=192.200.22.42,Azhar,Solaris:
CCPRINTER:\
        :bsdaddr=192.200.21.56,CCPRINTER,Solaris:
ADMPRINTER:\
        :bsdaddr=192.200.21.32,ADMPRINTER,Solaris:
MAIMUNAH_IT:\
        :bsdaddr=192.200.9.71,MAIMUNAH_IT,Solaris:
CSPRINTER:\
        :bsdaddr=192.200.25.36,CSPRINTER,Solaris:
AMTCEK:\
        :bsdaddr=192.200.9.38,AMTCEK,Solaris:

Quote:
root@Hino # lpstat -t
scheduler is running
system default destination: FINSGT
system for laser6l: 192.200.9.38
system for escp2: 192.200.9.23
system for FINKT: 192.200.110.74
system for AMTBP: 192.200.140.159
system for FINKLG1: 192.200.150.31
system for FINMSG: 192.200.120.32
system for FINMUAR: 192.200.130.32
system for FINMUAR2: 192.200.130.14
system for FINPTN: 192.200.100.32
system for FINSGT: 192.200.160.132
system for epsonjb: 192.200.9.68
system for _default: 192.200.160.132 (as printer FINSGT)
system for FIN1BP: 192.200.140.29
system for p130157: 192.200.130.157
system for P-salwani: 192.200.9.31
system for secondary1: 192.200.9.16
system for zaidijet2200: 192.200.9.135
system for idah_printer: 192.200.10.69
system for hp: 192.200.10.190
system for LIZA_IT: 192.200.9.54
system for K_tinggi: 192.200.110.103
system for AUDIT: 192.200.10.168
system for laserjet: 192.200.9.219
system for LASERJET: 192.200.9.219
system for LASERJET1: 192.200.10.189
system for HPLaserJ: 192.200.22.81
system for laserHR: 192.200.21.49
system for stor3: 192.200.23.34
system for cpu3: 192.200.23.42
system for OSHA: 192.200.22.67
system for Rozita: 192.200.21.49
system for Azhar: 192.200.22.42
system for CCPRINTER: 192.200.21.56
system for ADMPRINTER: 192.200.21.32
system for MAIMUNAH_IT: 192.200.9.71
system for CSPRINTER: 192.200.25.36
system for AMTCEK: 192.200.9.38
laser6l accepting requests since Oct 09 14:20 2012
escp2 accepting requests since Oct 09 14:20 2012
FINKT accepting requests since Oct 09 14:20 2012
AMTBP accepting requests since Oct 09 14:20 2012
FINKLG1 accepting requests since Oct 09 14:20 2012
FINMSG accepting requests since Oct 09 14:20 2012
FINMUAR accepting requests since Oct 09 14:20 2012
FINMUAR2 accepting requests since Oct 09 14:20 2012
FINPTN accepting requests since Oct 09 14:20 2012
FINSGT accepting requests since Oct 09 14:20 2012
epsonjb accepting requests since Oct 09 14:20 2012
_default accepting requests since Oct 09 14:20 2012
FIN1BP accepting requests since Oct 09 14:20 2012
p130157 accepting requests since Oct 09 14:20 2012
P-salwani accepting requests since Oct 09 14:20 2012
secondary1 accepting requests since Oct 09 14:20 2012
zaidijet2200 accepting requests since Oct 09 14:20 2012
idah_printer accepting requests since Oct 09 14:20 2012
hp accepting requests since Oct 09 14:20 2012
LIZA_IT accepting requests since Oct 09 14:20 2012
K_tinggi accepting requests since Oct 09 14:20 2012
AUDIT accepting requests since Oct 09 14:20 2012
laserjet accepting requests since Oct 09 14:20 2012
LASERJET accepting requests since Oct 09 14:20 2012
LASERJET1 accepting requests since Oct 09 14:20 2012
HPLaserJ accepting requests since Oct 09 14:20 2012
laserHR accepting requests since Oct 09 14:20 2012
stor3 accepting requests since Oct 09 14:20 2012
cpu3 accepting requests since Oct 09 14:20 2012
OSHA accepting requests since Oct 09 14:20 2012
Rozita accepting requests since Oct 09 14:20 2012
Azhar accepting requests since Oct 09 14:20 2012
CCPRINTER accepting requests since Oct 09 14:20 2012
ADMPRINTER accepting requests since Oct 09 14:20 2012
MAIMUNAH_IT accepting requests since Oct 09 14:20 2012
CSPRINTER accepting requests since Oct 09 14:20 2012
AMTCEK accepting requests since Oct 09 14:20 2012
Quote:
NEW BOX

Code:
# lpstat -t
scheduler is running
system default printer: FINSGT
system for laser6l: 192.200.9.38 (as lpd://192.200.9.38/printers/laser6l#Solaris)
system for escp2: 192.200.9.23 (as lpd://192.200.9.23/printers/escp2#Solaris)
system for FINKT: 192.200.110.74 (as lpd://192.200.110.74/printers/FINKT#Solaris)
system for AMTBP: 192.200.140.159 (as lpd://192.200.140.159/printers/AMTBP#Solaris)
system for FINKLG1: 192.200.150.31 (as lpd://192.200.150.31/printers/FINKLG1#Solaris)
system for FINMSG: 192.200.120.32 (as lpd://192.200.120.32/printers/FINMSG#Solaris)
system for FINMUAR: 192.200.130.32 (as lpd://192.200.130.32/printers/FINMUAR#Solaris)
system for FINMUAR2: 192.200.130.14 (as lpd://192.200.130.14/printers/FINMUAR2#Solaris)
system for FINPTN: 192.200.100.32 (as lpd://192.200.100.32/printers/FINPTN#Solaris)
system for FINSGT: 192.200.160.132 (as lpd://192.200.160.132/printers/FINSGT#Solaris)
system for epsonjb: 192.200.9.68 (as lpd://192.200.9.68/printers/epsonjb#Solaris)
system for FIN1BP: 192.200.140.29 (as lpd://192.200.140.29/printers/FIN1BP#Solaris)
system for p130157: 192.200.130.157 (as lpd://192.200.130.157/printers/p130157#Solaris)
system for P-salwani: 192.200.9.31 (as lpd://192.200.9.31/printers/P-salwani#Solaris)
system for secondary1: 192.200.9.16 (as lpd://192.200.9.16/printers/secondary1#Solaris)
system for zaidijet2200: 192.200.9.135 (as lpd://192.200.9.135/printers/zaidijet2200#Solaris)
system for idah_printer: 192.200.10.69 (as lpd://192.200.10.69/printers/idah_printer#Solaris)
system for hp: 192.200.10.190 (as lpd://192.200.10.190/printers/hp#Solaris)
system for LIZA_IT: 192.200.9.54 (as lpd://192.200.9.54/printers/LIZA_IT#Solaris)
system for K_tinggi: 192.200.110.103 (as lpd://192.200.110.103/printers/K_tinggi#Solaris)
system for AUDIT: 192.200.10.168 (as lpd://192.200.10.168/printers/AUDIT#Solaris)
system for laserjet: 192.200.9.219 (as lpd://192.200.9.219/printers/laserjet#Solaris)
system for LASERJET: 192.200.9.219 (as lpd://192.200.9.219/printers/LASERJET#Solaris)
system for LASERJET1: 192.200.10.189 (as lpd://192.200.10.189/printers/LASERJET1#Solaris)
system for HPLaserJ: 192.200.22.81 (as lpd://192.200.22.81/printers/HPLaserJ#Solaris)
system for laserHR: 192.200.21.49 (as lpd://192.200.21.49/printers/laserHR#Solaris)
system for stor3: 192.200.23.34 (as lpd://192.200.23.34/printers/stor3#Solaris)
system for cpu3: 192.200.23.42 (as lpd://192.200.23.42/printers/cpu3#Solaris)
system for OSHA: 192.200.22.67 (as lpd://192.200.22.67/printers/OSHA#Solaris)
system for Rozita: 192.200.21.49 (as lpd://192.200.21.49/printers/Rozita#Solaris)
system for Azhar: 192.200.22.42 (as lpd://192.200.22.42/printers/Azhar#Solaris)
system for CCPRINTER: 192.200.21.56 (as lpd://192.200.21.56/printers/CCPRINTER#Solaris)
system for ADMPRINTER: 192.200.21.32 (as lpd://192.200.21.32/printers/ADMPRINTER#Solaris)
system for MAIMUNAH_IT: 192.200.9.71 (as lpd://192.200.9.71/printers/MAIMUNAH_IT#Solaris)
system for CSPRINTER: 192.200.25.36 (as lpd://192.200.25.36/printers/CSPRINTER#Solaris)
system for AMTCEK: 192.200.9.38 (as lpd://192.200.9.38/printers/AMTCEK#Solaris)
laser6l accepting requests since Wed Oct 10 13:28:27 2012
escp2 accepting requests since Wed Oct 10 13:28:27 2012
FINKT accepting requests since Wed Oct 10 13:28:27 2012
AMTBP accepting requests since Wed Oct 10 13:28:27 2012
FINKLG1 accepting requests since Wed Oct 10 13:28:27 2012
FINMSG accepting requests since Wed Oct 10 13:28:27 2012
FINMUAR accepting requests since Wed Oct 10 13:28:27 2012
FINMUAR2 accepting requests since Wed Oct 10 13:28:27 2012
FINPTN accepting requests since Wed Oct 10 13:28:27 2012
FINSGT accepting requests since Wed Oct 10 13:28:27 2012
epsonjb accepting requests since Wed Oct 10 13:28:27 2012
FIN1BP accepting requests since Wed Oct 10 13:28:27 2012
p130157 accepting requests since Wed Oct 10 13:28:27 2012
P-salwani accepting requests since Wed Oct 10 13:28:27 2012
secondary1 accepting requests since Wed Oct 10 13:28:27 2012
zaidijet2200 accepting requests since Wed Oct 10 13:28:27 2012
idah_printer accepting requests since Wed Oct 10 13:28:27 2012
hp accepting requests since Wed Oct 10 13:28:27 2012
LIZA_IT accepting requests since Wed Oct 10 13:28:27 2012
K_tinggi accepting requests since Wed Oct 10 13:28:27 2012
AUDIT accepting requests since Wed Oct 10 13:28:27 2012
laserjet accepting requests since Wed Oct 10 13:28:27 2012
LASERJET accepting requests since Wed Oct 10 13:28:27 2012
LASERJET1 accepting requests since Wed Oct 10 13:28:27 2012
HPLaserJ accepting requests since Wed Oct 10 13:28:27 2012
laserHR accepting requests since Wed Oct 10 13:28:27 2012
stor3 accepting requests since Wed Oct 10 13:28:27 2012
cpu3 accepting requests since Wed Oct 10 13:28:27 2012
OSHA accepting requests since Wed Oct 10 13:28:27 2012
Rozita accepting requests since Wed Oct 10 13:28:27 2012
Azhar accepting requests since Wed Oct 10 13:28:27 2012
CCPRINTER accepting requests since Wed Oct 10 13:28:27 2012
ADMPRINTER accepting requests since Wed Oct 10 13:28:27 2012
MAIMUNAH_IT accepting requests since Wed Oct 10 13:28:27 2012
CSPRINTER accepting requests since Wed Oct 10 13:28:27 2012
AMTCEK accepting requests since Wed Oct 10 13:28:27 2012

I am not very familiar with print services and all. I wanna ask whether this lpd protocol thingy affects anything? My new box can detect the servers, just that they are shown as disabled and not accepting requests.

# lpstat -p laser6l
printer laser6l disabled since Wed Oct 10 13:30:00 2012. available.
Invalid printer
# lp test.txt
_default: not-accepting
# lp test.txt -d laser6l
_default: aborting request, -d: No such file or directory

I'm really stumped on this one. You guys happen to know anything I left out?

Thanks.

---------- Post updated at 04:02 PM ---------- Previous update was at 01:32 PM ----------

I discovered something. In the old box, there is a /etc/lp/Systems file.


Code:
#
#ident  "@(#)Systems    1.8     97/06/09 SMI"   /* SVr4.0 1.2   */
# This file previously contained an LP private interface.  It's
# contents are no longer used by the printing system and therefore
# obsolete.  Expect the file to be removed in a subsequent release
# of Solaris, along with the lpsystem(1M) command.
+:x:-:bsd:-:n:10:-:-:Allow all connections
192.200.9.23:x:-:bsd:-:n:10:-:-:Cheque_Room
192.200.110.74:x:-:bsd:-:n:10:-:-:KT_FINKT
192.200.150.31:x:-:bsd:-:n:10:-:-:KL_FINKLG1
192.200.120.32:x:-:bsd:-:n:10:-:-:MG_FINMSG
192.200.130.32:x:-:bsd:-:n:10:-:-:MR_FINMUAR
192.200.130.14:x:-:bsd:-:n:10:-:-:Stor_FINMUAR2
192.200.100.32:x:-:bsd:-:n:10:-:-:PTN_FINPTN
192.200.9.68:x:-:bsd:-:n:10:-:-:Peng_epsonjb
192.200.160.36:x:-:bsd:-:n:10:-:-:Zuraini_SGT
192.200.140.159:x:-:bsd:-:n:10:-:-:
192.200.140.29:x:-:bsd:-:n:10:-:-:
192.200.130.157:x:-:bsd:-:n:10:-:-:
192.200.9.31:x:-:bsd:-:n:10:-:-:
192.200.160.132:x:-:bsd:-:n:10:-:-:
192.200.9.16:x:-:bsd:-:n:10:-:-:
192.200.9.135:x:-:bsd:-:n:10:-:-:
192.200.10.69:x:-:bsd:-:n:10:-:-:
192.200.9.45:x:-:bsd:-:n:10:-:-:Kontrak_CPU3
192.200.10.190:x:-:bsd:-:n:10:-:-:
192.200.9.54:x:-:bsd:-:n:10:-:-:
192.200.110.103:x:-:bsd:-:n:10:-:-:
192.200.10.168:x:-:bsd:-:n:10:-:-:
-:x:-:bsd:-:n:10:-:-:
t:x:-:bsd:-:n:10:-:-:
bsd:x:-:bsd:-:n:10:-:-:
192.200.9.219:x:-:bsd:-:n:10:-:-:
192.200.10.189:x:-:bsd:-:n:10:-:-:
192.200.22.81:x:-:bsd:-:n:10:-:-:
192.200.23.34:x:-:bsd:-:n:10:-:-:
192.200.23.42:x:-:bsd:-:n:10:-:-:
192.200.22.67:x:-:bsd:-:n:10:-:-:
192.200.21.49:x:-:bsd:-:n:10:-:-:
192.200.22.42:x:-:bsd:-:n:10:-:-:
192.200.21.56:x:-:bsd:-:n:10:-:-:
192.200.21.32:x:-:bsd:-:n:10:-:-:
192.200.9.71:x:-:bsd:-:n:10:-:-:
192.200.25.36:x:-:bsd:-:n:10:-:-:
192.200.9.38:x:-:bsd:-:n:10:-:-:

That file has been obosleted.

I typed "lpsystems -l" in the old box. And it shows me this


Code:
root@Hino # lpsystem -l
System:                     +
Type:                       bsd
Connection timeout:         never
Retry failed connections:   after 10 minutes
Comment:                    Allow all connections
System:                     192.200.9.23
Type:                       bsd
Connection timeout:         never
Retry failed connections:   after 10 minutes
Comment:                    Cheque_Room
System:                     192.200.110.74
Type:                       bsd
Connection timeout:         never
Retry failed connections:   after 10 minutes
Comment:                    KT_FINKT
System:                     192.200.150.31
Type:                       bsd
Connection timeout:         never
Retry failed connections:   after 10 minutes
Comment:                    KL_FINKLG1
System:                     192.200.120.32
Type:                       bsd
Connection timeout:         never
Retry failed connections:   after 10 minutes
Comment:                    MG_FINMSG
System:                     192.200.130.32
.
.
.

In the NEW BOX, it shows nothing. I suspect that is causing the issue. Anyone know of the new alternative for "/etc/lp/Systems" in Solaris 10?
Sponsored Links
    #2  
Old 10-10-2012
bakunin bakunin is online now Forum Staff  
Bughunter Extraordinaire
 
Join Date: May 2005
Last Activity: 17 April 2014, 8:50 AM EDT
Location: In the leftmost byte of /dev/kmem
Posts: 3,918
Thanks: 39
Thanked 671 Times in 533 Posts
Quote:
Originally Posted by davinccy View Post
I am not very familiar with print services and all. I wanna ask whether this lpd protocol thingy affects anything?
LOL!

Yes, it does and this is probably one of the reasons your new server doesn't print anything.

"lpd" is short for "line printer daemon" and the name is pretty intuitive.

Consider a network communication via telnet: there is a specific protocol and a designated port for it to operate (have a look in "/etc/services"). The protocol is like a common language. You also need a client and a server both speaking this protocol. The client is called "telnet" too and issuing "telnet foo" on the system "bar" will call this client and have it try to initiate a communication with the system "foo". To be successful on system "foo" there has to run a "daemon" listening on the designated port for clients requesting its services. The daemon is called "telnetd" and steered by a super-daemon called "inetd" (I[nter]net-daemon).

The communication between printers and systems offering print queues ("print servers") is similar, just the protocol is different: lpdp instead of telnet. It operates on port 515 (again: have a look in "/etc/services").

You put a print job into a queue with the "lpr" (line printer remote) utility. The printing system puts it into the queue until the necessary server becomes available for it (spooling). In fact this step just means to maintain a directory with waiting print jobs - simply files waiting to be dumped into a printer. You can find these files somewhere under "/var", probably "/var/spool/lp" or something such (i am not too knowledgeable in Solaris, but somewhere in this vicinity you will find the jobs).

Once a printer says it is ready to accept files this job file is being sent to it using the client and server part of the lpd. The print server maintaining the queue acts as a lient, the printer hardware as the server: commonly a printer just prints, a network printer has a network card built in with a lpd running on top of its hardware. This lpd is the "server" for the job.

You can test this (at least with the common HP printers using JetDirect cards) by issuing "telnet <printer-ip> 515" on the command line. You will get a banner saying "HP Jetdirect" and some diagnostic information before it says "connection closed" - of course. "telnet" speaks another protocol and can't really answer the requests of a lpd server, but it is enough to get this banner information sent before the processes recognize they don't share a common language.

Once the job is sent to the printer (more correctly: to its network card) and the lpd running there acknowledges the job being processed (this doesn't necessarily have to mean the file is completely or even in parts printed - it just says the server doesn't have to feel responsible for it any more) the print server clears the job from the queue. That is all.

PS: literature pointers
see RFC 1179 for the exact definition of the standard.
search for "Berkeley Printing System" (that's the name of the whole system) for manuals, documents, etc..

I hope this helps.

bakunin

Last edited by bakunin; 10-10-2012 at 07:20 AM..
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Remove a line from printers.conf file nlsfn Shell Programming and Scripting 2 03-28-2011 02:08 PM
basic question on sd.conf and lpc.conf file mokkan Solaris 4 08-14-2009 02:29 PM
SD.conf and LPFC.conf soupbone38 Red Hat 1 07-08-2009 03:47 PM
Configuring snmpd.conf and snmptrapd.conf jagdish.machhi@ UNIX for Advanced & Expert Users 2 04-17-2008 03:01 PM
Usb printers proyesa UNIX for Dummies Questions & Answers 1 05-18-2006 08:52 AM



All times are GMT -4. The time now is 08:57 AM.