RE: LPRng: short request line
Does OS X print in PostScript? Is the LJ1100 PostScript-Aware? Jim -Original Message- From: Jim McCloskey [mailto:[EMAIL PROTECTED] Sent: Friday, July 16, 2004 12:51 PM To: [EMAIL PROTECTED] Subject: LPRng: short request line Hello. I have a Debian linux box which runs LPRng version 3.8.27 as its printer spooler. It functions as a firewall/router for a home network. I set up /etc/hosts.lpd and /etc/lprng/lpd.perms so that this box will handle print-requests from the laptops that are also part of the home network (the printer is an HP LJ1100 connected to the parallel port of the Debian box). This all works great from my own laptop, which also runs Debian (and has the same version of LPRng). But there is also an OS X laptop in the house, and print requests from that machine are refused. The resulting message in /var/log/lpr.log is: Service_connection: short request line '^B', from '192.168.1.101 port 836' I haven't had much luck so far in tracking down what this error message means or what lies behind it, though I assume that whatever lies behind it is what is causing print-requests from the OS X machine to be refused. Does anyone know how this problem might be solved? I'd be very grateful indeed for any help or pointers. Thanks very much for your time, Jim McCloskey -- --- YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRng MAILING LIST The address you post from or your Reply-To address MUST be your subscription address If you need help, send email to [EMAIL PROTECTED] (or lprng-requests or lprng-digest-requests) with the word 'help' in the body. To subscribe to a list with name LIST, send mail to [EMAIL PROTECTED] with: | example: subscribe LIST mailaddr | subscribe lprng-digest [EMAIL PROTECTED] unsubscribe LIST mailaddr | unsubscribe lprng [EMAIL PROTECTED] If you have major problems, call Patrick Powell or one of the friendly staff at Astart Technologies for help. Astart also does support for LPRng. Also, check the Web Page at: http://www.lprng.com for any announcements. Astart Technologies (LPRng - Print Spooler http://www.lprng.com) 6741 Convoy Court San Diego, CA 92111 858-874-6543 FAX 858-751-2435 -- --- - YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRng MAILING LIST The address you post from or your Reply-To address MUST be your subscription address If you need help, send email to [EMAIL PROTECTED] (or lprng-requests or lprng-digest-requests) with the word 'help' in the body. To subscribe to a list with name LIST, send mail to [EMAIL PROTECTED] with: | example: subscribe LIST mailaddr | subscribe lprng-digest [EMAIL PROTECTED] unsubscribe LIST mailaddr | unsubscribe lprng [EMAIL PROTECTED] If you have major problems, call Patrick Powell or one of the friendly staff at Astart Technologies for help. Astart also does support for LPRng. Also, check the Web Page at: http://www.lprng.com for any announcements. Astart Technologies (LPRng - Print Spooler http://www.lprng.com) 6741 Convoy Court San Diego, CA 92111 858-874-6543 FAX 858-751-2435 -
LPRng: RE: SLOW spooling of Word file containing 225 pgs of scanned docs - SOLVED
Mumbles to self...RTFM...and Michael Lucas' Absolute OpenBSD... and MS KB816627..and the LPRng list responses... Eventually it will all sink in, and the answer will reveal itself: #sysctl -w net.inet.tcp.ackonpush=1 Extracted from KB816627: SYMPTOMS Printing to a TCP/IP printer port may be slow if you are using the LPR Byte Counting feature or if the advanced TCP/IP options are disabled on the printer. A network trace may show that for every three packets that are sent, there is a Delayed Ack before the print device sends an acknowledgement. If the Delayed Ack value is set to 0.2 seconds, a 10-MB print job may take approximately 10 minutes. CAUSE The buffer size for reading spooled files is only 4 KB for the Windows print processor and for TCP/IP Port Monitor. This causes 2 packets with 1,460 KB of data, followed by another packet with 1,176 KB of data with the TCP Push bit flag enabled. If the print device ignores the TCP Push bit flag, a Delayed Ack is typically generated while waiting for another packet. The Delayed Ack value frequently uses a value of 0.2 seconds. A Delayed Ack should not occur if the packet TCP Push bit flag is enabled. My OpenBSD 3.2 3.4 servers had the ackonpush off by default. Enabling it apparently eliminates the Delayed Ack being generated. Thanks to Rick Cochran, Patrick, Michael W. Lucas, Microsoft, and the OpenBSD folks for supplying all of the pieces of the puzzle. I put this problem on the back burner a while back, for lack of a solution. The book, especially the section on sysctl provided the final pointer. It's dead simple now that I know it-but if you Google ackonpush you get nothing of value... As for Microsoft; there are big, screaming clues in the KB article, and they made no sense until just this morning. Now they make perfect sense. Jim - YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST The address you post from MUST be your subscription address If you need help, send email to [EMAIL PROTECTED] (or lprng-requests or lprng-digest-requests) with the word 'help' in the body. For the impatient, to subscribe to a list with name LIST, send mail to [EMAIL PROTECTED] with: | example: subscribe LIST mailaddr | subscribe lprng-digest [EMAIL PROTECTED] unsubscribe LIST mailaddr | unsubscribe lprng [EMAIL PROTECTED] If you have major problems, send email to [EMAIL PROTECTED] with the word LPRNGLIST in the SUBJECT line. -
LPRng: RE: SLOW spooling of Word file containing 225 pgs of scanned docs ...longish post
-Original Message- From: John Perkins [mailto:[EMAIL PROTECTED] Sent: Thursday, March 18, 2004 2:05 PM To: [EMAIL PROTECTED] Subject: Re: LPRng: SLOW spooling of Word file containing 225 pgs of scann ed docs On Tue, 16 Mar 2004 13:36:17 -0500 Van Sickler, Jim [EMAIL PROTECTED] wrote: The Lanier is a Ricoh Aficio 3800CMF Actually, its an AP3800CMF...same thing? rebranded. It's internal print firmware is fragile and poorly implemented. Printing PS3 directly to any of the various embedded print servers corrupts the queue listing, and eventually the printer won't accept any new jobs. Warm booting the printer 3-4 times a day gets to be annoying real fast. I've had to reformat the internal hard drive a couple of times in order to clean out all of the gremlins. Actually, I'm pretty happy with it-once I figured out which drivers setup to use and which drivers setup to avoid, it's been very stable and productive. From a maintenance standpoint, it's fast/easy to swap out the fuser oil units, toner, photoconductors, etc. I only call out the vendor service when it's a major job, or the you break it, you pay for it variety. This gives me a sort of sinking feeling... we just went and replaced a number of Xerox Phaser 5400 printers with Lanier LD045/LD060 copiers and Lanier 2145 printers (rebranded Ricoh Aficio 1045/1060 and AP4510 products). From what I've seen, the paper-handling mechanism is pretty solid in these units. The network interface didn't seem to be any worse than other printers we've dealt with so far. I wouldn't be too concerned just yet. If the clients are Windows PCs, just install the RPCS drivers as the primary (only?) driver. Avoid printing from the clients directly to the printer, which sounds like what you're planning anyway. (Large Word files containing 225 pgs of scanned docs should be sent using the RPCS driver and raw/9100 port on the printer. Trust me...) My problems all went away when I went to this setup. The only time I use the PS3 drivers are to print to file, then use GhostScript/GSView to convert to .pdf. Works great! My nightmare days were the early ones, when I was testing drivers, and printing from the clients directly to the printer. The PS3 v1.0 drivers did something that corrupted the queue information, and shortly after that the printer would stop accepting jobs. If you use the Smart Monitor, and watch the Job History, you'll see patterns to the driver/port combinations. When info for previously printed jobs disappear, leaving only the date/time, the printer is on it's way to la-la land, and needs to be reset. In the Properties, Print Preferences, Printer Configuration you'll find the User ID: entry. Use it-many entries in the Job History seem to have this and the date/time as the only info. The raw/9100 jobs are this way... I use the following setup, which works fine for all but the big jobs: Win2k/XP: RPCS v 2.67 (2.24, 2.58 were ok) Local TCP/IP Port, Custom, LPR w/ByteCount enabled (LPRng%9100 doesn't work, 9100 not forwarded via pf) LPRng 2.2x on OpenBSD 3.x Printing to LPRng; [EMAIL PROTECTED] or lanier%9100 works okay, but: User Name and Document Name info is missing in the Job History entry for jobs printed by LPRng via lanier%9100. Everything is present using [EMAIL PROTECTED] It appears the slow printing is a TCP problem, not with the printer. See previous msgs in this thread for Rick Cochran's comments. Printing via samba isn't an avenue I'm willing to go down anymore, unless someone can tell me how to get something other than Remote Downlevel Document as the document name. I've tried a couple of the filters in smb.conf, but the spool file name is what ends up being displayed (smbprn.yadayada). IMHO, simpler is better; if I'm using LPRng only, and samba crashes, printing continues, and I can sort out samba without being rushed. Anyway, it didn't seem to speed up the Word doc when I tested printing via samba... Jim P.S. I apologize for the subject gaining/losing random spaces. Our Corp IS are running Antigen, and it seems to be the culprit. We also just installed a Lanier LP 020c color printer...no such delays with. Everything we print goes to a RedHat 9/LPRng print server, which processes jobs and sends them out to the appropriate printer using port 9100/appsocket. (Our Tektronix Phaser 850DP met an early demise when some well-meaning users tried to unjam the printer and proceeded to break one of the paper-path sensors.) Damn Users! I have one well meaning user that tore up the Tray 3 on the Lanier, then proceeded to jam it back into the slot...took me 45 minutes to get it out, and another 20 to fix it. Another one...we could go on all day! We do all our printer status and pagecounts via SNMP. I've all but given up on doing it any other way. Jobs go off to the printers, they print, then we do
RE: LPRng: SLOW spooling of Word file containing 225 pgs of scann ed docs
-Original Message- From: Van Sickler, Jim Sent: Tuesday, March 16, 2004 11:36 AM To: '[EMAIL PROTECTED]' Subject: RE: LPRng: SLOW spooling of Word file containing 225 pgs of scann ed docs -Original Message- From: Patrick Powell [mailto:[EMAIL PROTECTED] Sent: Monday, March 15, 2004 6:41 PM To: [EMAIL PROTECTED] Subject: RE: LPRng: SLOW spooling of Word file containing 225 pgs of scann ed docs From [EMAIL PROTECTED] Mon Mar 15 16:11:39 2004 Date: Mon, 15 Mar 2004 18:30:33 -0500 From: Van Sickler, Jim [EMAIL PROTECTED] Subject: RE: LPRng: SLOW spooling of Word file containing 225 pgs of scanned docs To: '[EMAIL PROTECTED]' [EMAIL PROTECTED] ... The Lanier is a Ricoh Aficio 3800CMF rebranded. It's internal print firmware is fragile and poorly implemented. Printing PS3 directly to any of the various embedded print servers corrupts the queue listing, and eventually the printer won't accept any new jobs. Warm booting the printer 3-4 times a day gets to be annoying real fast. I've had to reformat the internal hard drive a couple of times in order to clean out all of the gremlins. AFAIK, I'm running the most recent firmware... Jim Ummm... given the large number of Good/Nice/Solid printers, have you considered donating this to an enemy? Patrick (An enemy is a friend that has to use this printer) Powell [%-) Actually, I'm pretty happy with it-once I figured out which drivers setup to use and which drivers setup to avoid, it's been very stable and productive. From a maintenance standpoint, it's fast/easy to swap out the fuser oil units, toner, photoconductors, etc. I only call out the vendor service when it's a major job, or the you break it, you pay for it variety. I call it The Chipper...feed trees in at one end, and print jobs spit out the other. I just thought of something- is this print path defective, as far as sending to port 9100 on the Lanier? samba1==LPRng server Win2k: Standard TCP/IP Port, custom: lpr, prints to [EMAIL PROTECTED] samba1: [EMAIL PROTECTED] works fine lanier%9100 doesn't I'll try using raw/port 9100 on the Win2k client and lanier%9100 in the printcap and let you know how it goes... It didn't...a Win2k printer test page won't print via raw/port 9100. It times out. If I change the port config to [EMAIL PROTECTED], it prints right away. It will print if I point the raw/port 9100 to the lanier's IP, vice the lpd on samba1. I'm not worried about using %9100; I'm concerned about the long time it takes to spool the large jobs. I've read Rick Cochran's msg, but can't seem to find where I'd change the timeout on my OpenBSD box. Rick, if you see this, could you point me in the right direction? If it's on the Win2k clients (all SP4), let me know where the reg setting is. Jim - YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST The address you post from MUST be your subscription address If you need help, send email to [EMAIL PROTECTED] (or lprng-requests or lprng-digest-requests) with the word 'help' in the body. For the impatient, to subscribe to a list with name LIST, send mail to [EMAIL PROTECTED] with: | example: subscribe LIST mailaddr | subscribe lprng-digest [EMAIL PROTECTED] unsubscribe LIST mailaddr | unsubscribe lprng [EMAIL PROTECTED] If you have major problems, send email to [EMAIL PROTECTED] with the word LPRNGLIST in the SUBJECT line. -
RE: LPRng: SLOW spooling of Word file containing 225 pgs of scann ed docs
-Original Message- From: Patrick Powell [mailto:[EMAIL PROTECTED] Sent: Friday, March 12, 2004 3:45 PM To: [EMAIL PROTECTED] Subject: RE: LPRng: SLOW spooling of Word file containing 225 pgs of scann ed docs No filtering is being done, and the Print Processor is set to raw on the Win2k box. If these hints do not help we need to find out whether the problem is related to transfering the print job from the PC to the server or to sending from server to printer. It's from the Win2k PC to the server; it never finished spooling, so it never went to the printer. Are you trying to say that the problem is transferring from the Win2K system to the LPRng server? Patrick It seems that way. Maybe there's a background conversation going on between the server and the lpr daemon on the Lanier that is slowing things down? Or maybe one isn't taking place, but should be? lanier==xxx.xxx.xx.xx from prev msgs... The good flow, as I see it: Current setup, working fine. SLOW on the big job of scanned pages. Win2k client--LPRng server LPRng server--:[EMAIL PROTECTED] (works fine for most jobs) The SmartNet Monitor reports full job status; file name, user, date/time, status, user id. The bad flow: Win2k client--LPRng server :lp=lanier%9100 or :lp:lp=lanier%9100 (per your previous msg) If I use lanier%9100, the jobs seem to print, but all of the info (file name, user, machine) that shows up with [EMAIL PROTECTED] is missing. spooling takes a lot longer, too. Don't know about the big job, as it's not ready to be printed again. The Lanier is a Ricoh Aficio 3800CMF rebranded. It's internal print firmware is fragile and poorly implemented. Printing PS3 directly to any of the various embedded print servers corrupts the queue listing, and eventually the printer won't accept any new jobs. Warm booting the printer 3-4 times a day gets to be annoying real fast. I've had to reformat the internal hard drive a couple of times in order to clean out all of the gremlins. AFAIK, I'm running the most recent firmware... Jim - YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST The address you post from MUST be your subscription address If you need help, send email to [EMAIL PROTECTED] (or lprng-requests or lprng-digest-requests) with the word 'help' in the body. For the impatient, to subscribe to a list with name LIST, send mail to [EMAIL PROTECTED] with: | example: subscribe LIST mailaddr | subscribe lprng-digest [EMAIL PROTECTED] unsubscribe LIST mailaddr | unsubscribe lprng [EMAIL PROTECTED] If you have major problems, send email to [EMAIL PROTECTED] with the word LPRNGLIST in the SUBJECT line. -
RE: LPRng: SLOW spooling of Word file containing 225 pgs of scann ed docs
-Original Message- From: Dirk Krause [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 09, 2004 2:26 AM To: [EMAIL PROTECTED] Subject: Re: LPRng: SLOW spooling of Word file containing 225 pgs of scanned docs I ran into something on Friday that I can't sort out. I have the following setup: Lanier 2138 RPCS Color Laser (same as Ricoh 3800CMF) Win2k SP4 RPCS driver v 2.67 (most current) Print via Standard TCP/IP Port OpenBSD 3.2/LPRng 3.8.21 OpenBSD 3.4/LPRng 3.8.26 Printcap entries (tried Friday) for the 2138, which seem to work fine for all other print jobs: :[EMAIL PROTECTED]:lpd_bounce :rm=xxx.xxx.xx.xx:rp=lp :lp=xxx.xxx.xx.xx%9100 :lp=xxx.xxx.xx.xx%9100:lpd_bounce=true If I use the above settings, printing the Word 2000 file through either OpenBSD box takes FOREVER to spool the temp file; I can ls the /var/spool/lpd/2138 directory and watch the file dribble in. I tried a 40-page chunk, which resulted in a 56MB job, with NO improvement in speed. It never got to the point where the job actually started to print. It was taking so long, I knew something was amiss and killed the job. I ended up setting up a Standard TCP/IP port directly to the Lanier, to see if it behaved similarly. NOT!!! The job started spitting out as soon as I clicked on the Ok button in the Word print dialogue. It finished printing the 40 pages almost before I got to the printer. My lpd.conf is all defaults on both OpenBSD boxes. All other print jobs seem to print at full speed. What gives? Hi, When creating large/complicated print jobs (i.e. including bitmap graphics) there may be long time intervalls between data packets sent from PC to the server, timeouts can happen. To avoid these timeouts create the entire print job first before connecting to the print server. In the printer properties go into the spool settings and turn Start spooling after last page is finished on. The exact text may vary, I have a german Windows on my PC. I tried that, and Print directly to the Printer with the same results. Make sure the format for the queue is literal (binary) so the print server does not run filters on the print job. No filtering is being done, and the Print Processor is set to raw on the Win2k box. If these hints do not help we need to find out whether the problem is related to transfering the print job from the PC to the server or to sending from server to printer. It's from the Win2k PC to the server; it never finished spooling, so it never went to the printer. Sending it directly to the printer's own lpd, with the PC set to the default of Start Printing Immediately did exactly that. The only changes in settings were using raw protocol instead of lpr, and printing to port 9100 instead of the queue. The 2138 has a hard drive, and printed at full speed-no dribbling of the job. Why not just print directly to the printer? Because...the Ricoh/Lanier print server has an annoying tendency to go off into la-la land if multiple users/drivers are talking to it. I can crash it just by sending a PS job to it; within 4 print jobs, the queue is corrupt and the printer has to be reset. Sometimes I had to reformat the hard drive just to force a rebuild of the queue structure. I finally troubleshot it down to a decent solution; use ONLY the RPCS drivers, and use LPRng to feed it the jobs. Now it prints all day, every day. I can use holdall while changing out fuser oil rollers, etc, and noone knows the printer's been down. I call the 2138 The Chipper; feed trees in at one end, and stuff comes out the other... Print the print job to a file, transfer the file to the print server and try to print using lpr. Hope this helps, Dirk Jim - YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST The address you post from MUST be your subscription address If you need help, send email to [EMAIL PROTECTED] (or lprng-requests or lprng-digest-requests) with the word 'help' in the body. For the impatient, to subscribe to a list with name LIST, send mail to [EMAIL PROTECTED] with: | example: subscribe LIST mailaddr | subscribe lprng-digest [EMAIL PROTECTED] unsubscribe LIST mailaddr | unsubscribe lprng [EMAIL PROTECTED] If you have major problems, send email to [EMAIL PROTECTED] with the word LPRNGLIST in the SUBJECT line. -
LPRng: SLOW spooling of Word file containing 225 pgs of scanned docs
I ran into something on Friday that I can't sort out. I have the following setup: Lanier 2138 RPCS Color Laser (same as Ricoh 3800CMF) Win2k SP4 RPCS driver v 2.67 (most current) Print via Standard TCP/IP Port OpenBSD 3.2/LPRng 3.8.21 OpenBSD 3.4/LPRng 3.8.26 Printcap entries (tried Friday) for the 2138, which seem to work fine for all other print jobs: :[EMAIL PROTECTED]:lpd_bounce :rm=xxx.xxx.xx.xx:rp=lp :lp=xxx.xxx.xx.xx%9100 :lp=xxx.xxx.xx.xx%9100:lpd_bounce=true If I use the above settings, printing the Word 2000 file through either OpenBSD box takes FOREVER to spool the temp file; I can ls the /var/spool/lpd/2138 directory and watch the file dribble in. I tried a 40-page chunk, which resulted in a 56MB job, with NO improvement in speed. It never got to the point where the job actually started to print. It was taking so long, I knew something was amiss and killed the job. I ended up setting up a Standard TCP/IP port directly to the Lanier, to see if it behaved similarly. NOT!!! The job started spitting out as soon as I clicked on the Ok button in the Word print dialogue. It finished printing the 40 pages almost before I got to the printer. My lpd.conf is all defaults on both OpenBSD boxes. All other print jobs seem to print at full speed. What gives? Jim - YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST The address you post from MUST be your subscription address If you need help, send email to [EMAIL PROTECTED] (or lprng-requests or lprng-digest-requests) with the word 'help' in the body. For the impatient, to subscribe to a list with name LIST, send mail to [EMAIL PROTECTED] with: | example: subscribe LIST mailaddr | subscribe lprng-digest [EMAIL PROTECTED] unsubscribe LIST mailaddr | unsubscribe lprng [EMAIL PROTECTED] If you have major problems, send email to [EMAIL PROTECTED] with the word LPRNGLIST in the SUBJECT line. -
RE: LPRng: After upgrade still Stalling remote printers
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 03, 2004 11:23 PM To: [EMAIL PROTECTED] Subject: RE: LPRng: After upgrade still Stalling remote printers -Original Message- From: Shawn Clark [mailto:[EMAIL PROTECTED] Sent: Monday, March 01, 2004 10:00 AM To: [EMAIL PROTECTED] Subject: LPRng: After upgrade still Stalling remote printers Hello, We have several printers attached to Linksys Print Servers. When multiple jobs are spooled through LPRng the print queues seem to hang up and go into stalled state. Removing the printjobs from the queue seems to be the only way to get these print queues working properly again. While the LPRng print queue is stalled, MS Windows is able to print directly to the Linksys devices. Any help would be greatly appreciated. We are running Debian/Sid - LPRng-3.8.25. Here is my printcap entry and lpq output for this printer while it is stalled: .common: :sd=/var/spool/lpd/%P :lf=/var/spool/lpd/%P/log :af=/var/spool/lpd/%P/acct :sh:mx=0:mc=0 sea-ps-24-p1|lp1 :cm=(Back Office)Okidata ML391 Plus @ SEA-PS-24 on Port 1:\ :tc=.common :[EMAIL PROTECTED] # lpq -P sea-ps-24-p1 Printer: [EMAIL PROTECTED] '(Back Office)Okidata ML391 Plus @ SEA-PS-24 on Port 1' (dest [EMAIL PROTECTED]) Queue: 8 printable jobs Server: pid 7168 active Unspooler: pid 7322 active Status: waiting for subserver to exit at 13:10:09.756 Rank Owner/ID Class Job Files Size Time stalled(1757sec) [EMAIL PROTECTED] A 792 smbprn.001697.L2b079 19804 12:22:46 2 [EMAIL PROTECTED] A 815 smbprn.001698.rSE4Xe 19804 12:23:14 3 [EMAIL PROTECTED] A 836 smbprn.001699.IMePPy 19804 12:24:47 4 [EMAIL PROTECTED] A12 smbprn.001700.FtF9lg 19804 12:34:00 5 [EMAIL PROTECTED] A38 smbprn.001701.izWmGI 19804 12:36:21 6 [EMAIL PROTECTED] A57 smbprn.001703.gyxopI 19804 12:36:54 7 [EMAIL PROTECTED] A72 smbprn.001705.0U21rL 19804 12:38:21 8 [EMAIL PROTECTED] A 733 smbprn.001710.lE0LvC 10024 13:07:29 (LPD Server): (P1)STATE: Idle TYPE: Parallel PRINTER STATUS: On-Line Shawn, Should [EMAIL PROTECTED] instead of [EMAIL PROTECTED] (P1)STATE: Idle Makes me think that... I have a USB printer on a Linksys printserver, and the printer is listed as \\PRINTSERVER\P1. It has 3 logical ports available, but I don't know what they'd be labeled. Jim Hi Jim, Thanks for reading my post. I was beginning to wonder if my question was covered somewhere obvious that I must have overlooked a dozen times trying to figure this one out. I didn't test useing P1 instead of L1(logical port 1) for the print queue name, but Im pretty sure that is not the problem. I believe the problem is that the Linksys print servers are complete pieces of SH*T! I put an Intel NetExpressPro print server in one of the Linksys' place and it works with no problems. In fact where, with the Linksys, when I spool 6 small jobs(printcap file with 8 entries) one right after the other, they stack up in LPRng's spool and then hang that print queue...with the Intel the jobs don't hang around in the queue long enough to be detected by lpc or lpqthey get fired off to the Intel unit and print out with no problems. It would be interesting to know how this Linksys device could cause the LPRng queue to stall.anyone? Cheers, shawn If the printer is attached to P1 (the physical printer port, and you're trying to send the print jobs to a different port (L1), LPRng is going to hang the jobs-you're never going to see them print. The Windows PCs are sending the jobs to the correct port; that's why they can print while LPRng isn't. What model Linksys Print Server is it? Jim - YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST The address you post from MUST be your subscription address If you need help, send email to [EMAIL PROTECTED] (or lprng-requests or lprng-digest-requests) with the word 'help' in the body. For the impatient, to subscribe to a list with name LIST, send mail to [EMAIL PROTECTED] with: | example: subscribe LIST mailaddr | subscribe lprng-digest [EMAIL PROTECTED] unsubscribe LIST mailaddr | unsubscribe lprng [EMAIL PROTECTED] If you have major problems, send email to [EMAIL PROTECTED] with the word LPRNGLIST in the SUBJECT line. -
RE: LPRng: After upgrade still Stalling remote printers
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 03, 2004 11:23 PM To: [EMAIL PROTECTED] Subject: RE: LPRng: After upgrade still Stalling remote printers -Original Message- From: Shawn Clark [mailto:[EMAIL PROTECTED] Sent: Monday, March 01, 2004 10:00 AM To: [EMAIL PROTECTED] Subject: LPRng: After upgrade still Stalling remote printers Hello, We have several printers attached to Linksys Print Servers. When multiple jobs are spooled through LPRng the print queues seem to hang up and go into stalled state. Removing the printjobs from the queue seems to be the only way to get these print queues working properly again. While the LPRng print queue is stalled, MS Windows is able to print directly to the Linksys devices. Any help would be greatly appreciated. We are running Debian/Sid - LPRng-3.8.25. Here is my printcap entry and lpq output for this printer while it is stalled: .common: :sd=/var/spool/lpd/%P :lf=/var/spool/lpd/%P/log :af=/var/spool/lpd/%P/acct :sh:mx=0:mc=0 sea-ps-24-p1|lp1 :cm=(Back Office)Okidata ML391 Plus @ SEA-PS-24 on Port 1:\ :tc=.common :[EMAIL PROTECTED] # lpq -P sea-ps-24-p1 Printer: [EMAIL PROTECTED] '(Back Office)Okidata ML391 Plus @ SEA-PS-24 on Port 1' (dest [EMAIL PROTECTED]) Queue: 8 printable jobs Server: pid 7168 active Unspooler: pid 7322 active Status: waiting for subserver to exit at 13:10:09.756 Rank Owner/ID Class Job Files Size Time stalled(1757sec) [EMAIL PROTECTED] A 792 smbprn.001697.L2b079 19804 12:22:46 2 [EMAIL PROTECTED] A 815 smbprn.001698.rSE4Xe 19804 12:23:14 3 [EMAIL PROTECTED] A 836 smbprn.001699.IMePPy 19804 12:24:47 4 [EMAIL PROTECTED] A12 smbprn.001700.FtF9lg 19804 12:34:00 5 [EMAIL PROTECTED] A38 smbprn.001701.izWmGI 19804 12:36:21 6 [EMAIL PROTECTED] A57 smbprn.001703.gyxopI 19804 12:36:54 7 [EMAIL PROTECTED] A72 smbprn.001705.0U21rL 19804 12:38:21 8 [EMAIL PROTECTED] A 733 smbprn.001710.lE0LvC 10024 13:07:29 (LPD Server): (P1)STATE: Idle TYPE: Parallel PRINTER STATUS: On-Line Shawn, Should [EMAIL PROTECTED] instead of [EMAIL PROTECTED] (P1)STATE: Idle Makes me think that... I have a USB printer on a Linksys printserver, and the printer is listed as \\PRINTSERVER\P1. It has 3 logical ports available, by I don't know what they'd be labeled. Jim Hi Jim, Thanks for reading my post. I was beginning to wonder if my question was covered somewhere obvious that I must have overlooked a dozen times trying to figure this one out. I didn't test useing P1 instead of L1(logical port 1) for the print queue name, but Im pretty sure that is not the problem. I believe the problem is that the Linksys print servers are complete pieces of SH*T! I put an Intel NetExpressPro print server in one of the Linksys' place and it works with no problems. In fact where, with the Linksys, when I spool 6 small jobs(printcap file with 8 entries) one right after the other, they stack up in LPRng's spool and then hang that print queue...with the Intel the jobs don't hang around in the queue long enough to be detected by lpc or lpqthey get fired off to the Intel unit and print out with no problems. It would be interesting to know how this Linksys device could cause the LPRng queue to stall.anyone? Cheers, shawn Shawn, I'm not sure if this info was included with your printserver; it's from http://www.linksys.com/support/support.asp?spid=18 and applies to the EPSX3 mainly, with comments re: the PPSX1 included. You're right to use L1, not P1. Sorry 'bout that! Try modifying your printcap entry to this and see what happens: :rm=SEA-PS-24 :rp=L1 Maybe with the socket support? :rm=SEA-PS-24 :rp=4010 or :lp=SEA-PS-24%4010 -- TCP/IP Setup for Linux Unix -- Note that the examples below should not be used verbatim, as your system's configuration will certainly be different from ours. Your IP address may be different, and you can substitute another name for printserver in the examples below. These instructions are provided for your convenience only. Linksys does not provide Technical Support by telephone for Unix or Linux at this time. If you have difficulties getting the installation to work, try using the Linksys listserver by sending e-mail to: [EMAIL PROTECTED] and include the words SUBSCRIBE SUPPORT-HELP in the body of the e-mail. The 10/100 1-Port and 3-Port PrintServer is supported under all flavors of Linux and Unix
RE: LPRng: After upgrade still Stalling remote printers
Shawn, Should [EMAIL PROTECTED] instead of [EMAIL PROTECTED] (P1)STATE: Idle Makes me think that... I have a USB printer on a Linksys printserver, and the printer is listed as \\PRINTSERVER\P1. It has 3 logical ports available, by I don't know what they'd be labeled. Jim -Original Message- From: Shawn Clark [mailto:[EMAIL PROTECTED] Sent: Monday, March 01, 2004 10:00 AM To: [EMAIL PROTECTED] Subject: LPRng: After upgrade still Stalling remote printers Hello, We have several printers attached to Linksys Print Servers. When multiple jobs are spooled through LPRng the print queues seem to hang up and go into stalled state. Removing the printjobs from the queue seems to be the only way to get these print queues working properly again. While the LPRng print queue is stalled, MS Windows is able to print directly to the Linksys devices. Any help would be greatly appreciated. We are running Debian/Sid - LPRng-3.8.25. Here is my printcap entry and lpq output for this printer while it is stalled: .common: :sd=/var/spool/lpd/%P :lf=/var/spool/lpd/%P/log :af=/var/spool/lpd/%P/acct :sh:mx=0:mc=0 sea-ps-24-p1|lp1 :cm=(Back Office)Okidata ML391 Plus @ SEA-PS-24 on Port 1:\ :tc=.common :[EMAIL PROTECTED] # lpq -P sea-ps-24-p1 Printer: [EMAIL PROTECTED] '(Back Office)Okidata ML391 Plus @ SEA-PS-24 on Port 1' (dest [EMAIL PROTECTED]) Queue: 8 printable jobs Server: pid 7168 active Unspooler: pid 7322 active Status: waiting for subserver to exit at 13:10:09.756 Rank Owner/ID Class Job Files Size Time stalled(1757sec) [EMAIL PROTECTED] A 792 smbprn.001697.L2b079 19804 12:22:46 2 [EMAIL PROTECTED] A 815 smbprn.001698.rSE4Xe 19804 12:23:14 3 [EMAIL PROTECTED] A 836 smbprn.001699.IMePPy 19804 12:24:47 4 [EMAIL PROTECTED] A12 smbprn.001700.FtF9lg 19804 12:34:00 5 [EMAIL PROTECTED] A38 smbprn.001701.izWmGI 19804 12:36:21 6 [EMAIL PROTECTED] A57 smbprn.001703.gyxopI 19804 12:36:54 7 [EMAIL PROTECTED] A72 smbprn.001705.0U21rL 19804 12:38:21 8 [EMAIL PROTECTED] A 733 smbprn.001710.lE0LvC 10024 13:07:29 (LPD Server): (P1)STATE: Idle TYPE: Parallel PRINTER STATUS: On-Line -- --- YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST The address you post from MUST be your subscription address If you need help, send email to [EMAIL PROTECTED] (or lprng-requests or lprng-digest-requests) with the word 'help' in the body. For the impatient, to subscribe to a list with name LIST, send mail to [EMAIL PROTECTED] with: | example: subscribe LIST mailaddr | subscribe lprng-digest [EMAIL PROTECTED] unsubscribe LIST mailaddr | unsubscribe lprng [EMAIL PROTECTED] If you have major problems, send email to [EMAIL PROTECTED] with the word LPRNGLIST in the SUBJECT line. -- --- - YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST The address you post from MUST be your subscription address If you need help, send email to [EMAIL PROTECTED] (or lprng-requests or lprng-digest-requests) with the word 'help' in the body. For the impatient, to subscribe to a list with name LIST, send mail to [EMAIL PROTECTED] with: | example: subscribe LIST mailaddr | subscribe lprng-digest [EMAIL PROTECTED] unsubscribe LIST mailaddr | unsubscribe lprng [EMAIL PROTECTED] If you have major problems, send email to [EMAIL PROTECTED] with the word LPRNGLIST in the SUBJECT line. -
RE: LPRng: Xerox Phaser 3450 DN
Sam, Try changing the printcap entry to: Dispatch:sh:sd=/var/spool/lpd/csdisp:rm=csdisp:rp=AUTO NOTE: AUTO is case sensitive. (From the office.support.xerox.com link for Sun Solaris 2.5.x LPD setup) There are four valid remote printer names for a printer that supports internal TCP/IP: PS, HPGL, PCL, and AUTO. There are three valid remote printer names for the Tektronix 4511A Network Interface: PS, HPGL, and TEXT. (From the office.support.xerox.com link for Win2k LPR port setup) In the field labeled Name or address of server providing LPD, enter the printer's TCP/IP address. If DNS is configured, type in the DNS host name. In the field labeled Name of printer or print queue on that server, one of the following needs to be entered. Queue names: AUTO - Use when a variety of jobs will be sent to the printer (including both PCL and PostScript). PS - Use if the printer will only be sent PostScript jobs. PCL - Use if the printer will only be sent PCL jobs. RAW - Use if printing text files from UNIX workstations. Note: These are recommended names to use. Some printers are less particular about the queue names, or will default to AUTO if the name is invalid. The Mac OS/10.x LPR setup shows AUTO as the queue name Hope this helps, Jim -Original Message- From: Sam Warren [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 18, 2004 7:40 AM To: [EMAIL PROTECTED] Subject: RE: LPRng: Xerox Phaser 3450 DN Here is my printcap entry for this printer: csdisp|Xerox 3450 D/N in CS, Here is another entery in my Printcap file that works great: mhpnest|Xerox 2125 in MHP, nesting printer:sh:sd=/var/spool/lpd/mhpnest:lp=mhpnest%9100: As you can see, they are identical. One works and the other doesn't. And with csdisp, the print job sits in my local print queue. It doesn't even get into the print server's queue. For some reason this queue will not accept the job. It will if I do an lpr command on the server or if I print through Samba. But not using standard TCP/IP port. I tried the queue another way. This was an alternate queue I set up for this printer: csdisp1|Phaser 3450 DN in Customer Service, Dispatch:rm=csdisp:sh:sd=/var/spool/lpd/csdisp1:rp=lpd: That one should print to the printer's LPD port rather than port 9100. That one fails as well. Sam -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Van Sickler, Jim Sent: Monday, February 16, 2004 5:18 PM Subject: RE: LPRng: Xerox Phaser 3450 DN Could you post the printcap section for the 3450? Jim -Original Message- From: Sam Warren [mailto:[EMAIL PROTECTED] Sent: Friday, February 13, 2004 1:25 PM Subject: RE: LPRng: Xerox Phaser 3450 DN No, I have plenty of printers working. They are set up just as you say. I use the same configuration as you show in Windows to connect to this printer and it doesn't work. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Sent: Thursday, February 12, 2004 6:19 PM Subject: RE: LPRng: Xerox Phaser 3450 DN Sam, My Lexmark Optra S 1250 is set up as follows: Standard TCP/IP Port: Port Name: LPRng's printcap entry name (e.g. optra) Printer Name or IP Address: LPRng servers' host name Protocol: LPR Queue Name: Same as Port Name LPR Byte Counting Enabled: yes SNMP Status Enabled:no Hope this helps, Jim -Original Message- From: Sam Warren [mailto:[EMAIL PROTECTED] Sent: Thursday, February 12, 2004 2:39 PM Subject: LPRng: Xerox Phaser 3450 DN I have a Xerox Phaser 3450 DN I just added to the network. It has a duplex unit (D). I am having a strange problem that has stumped me. Maybe someone has an idea. I can print to it from the server using the lpr command. I can print to it from clients using Samba. However, I cannot print to it using TCP/IP port configured to send lpr from Windows 2000 or XP. The print job shows up as error. I am using the postscript drivers from Xerox. I have LPRng 3.8.22-2. I have tried setting the printcap to print to the printers LPD port and port 9100. Neither works. I have nearly 150 queues on this server and they all work except this one. Does anyone have any ideas on this? Thanks! Sam Warren, Jr. -- --- YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST The address you post from MUST be your subscription address If you need help, send email to [EMAIL PROTECTED] (or lprng-requests or lprng-digest-requests) with the word 'help' in the body. For the impatient, to subscribe to a list with name LIST, send mail to [EMAIL PROTECTED] with: | example: subscribe LIST mailaddr | subscribe lprng-digest [EMAIL PROTECTED] unsubscribe
RE: LPRng: Xerox Phaser 3450 DN
Could you post the printcap section for the 3450? Jim -Original Message- From: Sam Warren [mailto:[EMAIL PROTECTED] Sent: Friday, February 13, 2004 1:25 PM To: [EMAIL PROTECTED] Subject: RE: LPRng: Xerox Phaser 3450 DN No, I have plenty of printers working. They are set up just as you say. I use the same configuration as you show in Windows to connect to this printer and it doesn't work. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Van Sickler, Jim Sent: Thursday, February 12, 2004 6:19 PM To: '[EMAIL PROTECTED]' Subject: RE: LPRng: Xerox Phaser 3450 DN Sam, My Lexmark Optra S 1250 is set up as follows: Standard TCP/IP Port: Port Name: LPRng's printcap entry name (e.g. optra) Printer Name or IP Address: LPRng servers' host name Protocol: LPR Queue Name: Same as Port Name LPR Byte Counting Enabled:yes SNMP Status Enabled: no Hope this helps, Jim -Original Message- From: Sam Warren [mailto:[EMAIL PROTECTED] Sent: Thursday, February 12, 2004 2:39 PM To: LPRng Subject: LPRng: Xerox Phaser 3450 DN I have a Xerox Phaser 3450 DN I just added to the network. It has a duplex unit (D). I am having a strange problem that has stumped me. Maybe someone has an idea. I can print to it from the server using the lpr command. I can print to it from clients using Samba. However, I cannot print to it using TCP/IP port configured to send lpr from Windows 2000 or XP. The print job shows up as error. I am using the postscript drivers from Xerox. I have LPRng 3.8.22-2. I have tried setting the printcap to print to the printers LPD port and port 9100. Neither works. I have nearly 150 queues on this server and they all work except this one. Does anyone have any ideas on this? Thanks! Sam Warren, Jr. Computer Technician Winnebago Industries 641-585-3535 ext. 7785 -- --- YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST The address you post from MUST be your subscription address If you need help, send email to [EMAIL PROTECTED] (or lprng-requests or lprng-digest-requests) with the word 'help' in the body. For the impatient, to subscribe to a list with name LIST, send mail to [EMAIL PROTECTED] with: | example: subscribe LIST mailaddr | subscribe lprng-digest [EMAIL PROTECTED] unsubscribe LIST mailaddr | unsubscribe lprng [EMAIL PROTECTED] If you have major problems, send email to [EMAIL PROTECTED] with the word LPRNGLIST in the SUBJECT line. -- --- -- -- - YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST The address you post from MUST be your subscription address If you need help, send email to [EMAIL PROTECTED] (or lprng-requests or lprng-digest-requests) with the word 'help' in the body. For the impatient, to subscribe to a list with name LIST, send mail to [EMAIL PROTECTED] with: | example: subscribe LIST mailaddr | subscribe lprng-digest [EMAIL PROTECTED] unsubscribe LIST mailaddr | unsubscribe lprng [EMAIL PROTECTED] If you have major problems, send email to [EMAIL PROTECTED] with the word LPRNGLIST in the SUBJECT line. -- -- - -- --- YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST The address you post from MUST be your subscription address If you need help, send email to [EMAIL PROTECTED] (or lprng-requests or lprng-digest-requests) with the word 'help' in the body. For the impatient, to subscribe to a list with name LIST, send mail to [EMAIL PROTECTED] with: | example: subscribe LIST mailaddr | subscribe lprng-digest [EMAIL PROTECTED] unsubscribe LIST mailaddr | unsubscribe lprng [EMAIL PROTECTED] If you have major problems, send email to [EMAIL PROTECTED] with the word LPRNGLIST in the SUBJECT line. -- --- - YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST The address you post from MUST be your subscription address If you need help, send email to [EMAIL PROTECTED] (or lprng-requests or lprng-digest-requests) with the word 'help' in the body. For the impatient, to subscribe to a list with name LIST, send mail to [EMAIL PROTECTED] with: | example: subscribe LIST mailaddr
RE: LPRng: Xerox Phaser 3450 DN
Sam, My Lexmark Optra S 1250 is set up as follows: Standard TCP/IP Port: Port Name: LPRng's printcap entry name (e.g. optra) Printer Name or IP Address: LPRng servers' host name Protocol: LPR Queue Name: Same as Port Name LPR Byte Counting Enabled: yes SNMP Status Enabled:no Hope this helps, Jim -Original Message- From: Sam Warren [mailto:[EMAIL PROTECTED] Sent: Thursday, February 12, 2004 2:39 PM To: LPRng Subject: LPRng: Xerox Phaser 3450 DN I have a Xerox Phaser 3450 DN I just added to the network. It has a duplex unit (D). I am having a strange problem that has stumped me. Maybe someone has an idea. I can print to it from the server using the lpr command. I can print to it from clients using Samba. However, I cannot print to it using TCP/IP port configured to send lpr from Windows 2000 or XP. The print job shows up as error. I am using the postscript drivers from Xerox. I have LPRng 3.8.22-2. I have tried setting the printcap to print to the printers LPD port and port 9100. Neither works. I have nearly 150 queues on this server and they all work except this one. Does anyone have any ideas on this? Thanks! Sam Warren, Jr. Computer Technician Winnebago Industries 641-585-3535 ext. 7785 -- --- YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST The address you post from MUST be your subscription address If you need help, send email to [EMAIL PROTECTED] (or lprng-requests or lprng-digest-requests) with the word 'help' in the body. For the impatient, to subscribe to a list with name LIST, send mail to [EMAIL PROTECTED] with: | example: subscribe LIST mailaddr | subscribe lprng-digest [EMAIL PROTECTED] unsubscribe LIST mailaddr | unsubscribe lprng [EMAIL PROTECTED] If you have major problems, send email to [EMAIL PROTECTED] with the word LPRNGLIST in the SUBJECT line. -- --- - YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST The address you post from MUST be your subscription address If you need help, send email to [EMAIL PROTECTED] (or lprng-requests or lprng-digest-requests) with the word 'help' in the body. For the impatient, to subscribe to a list with name LIST, send mail to [EMAIL PROTECTED] with: | example: subscribe LIST mailaddr | subscribe lprng-digest [EMAIL PROTECTED] unsubscribe LIST mailaddr | unsubscribe lprng [EMAIL PROTECTED] If you have major problems, send email to [EMAIL PROTECTED] with the word LPRNGLIST in the SUBJECT line. -
RE: LPRng: Emergency!
Did you upgrade the server OS or LPRng? If you upgraded the OS, the LPRng executables were probably overwritten by the upgrade. Rename the stock lp executables and re-create the symbolic links to the LPRng files, and you're back in business. On my OpenBSD 3.x boxen, I've created a file, lppostup to do just that: - cd /usr/bin mv lp lp.org mv lpq lpq.org mv lpr lpr.org mv lprm lprm.org mv lpstat lpstat.org cd /usr/sbin mv lpc lpc.org mv lpd lpd.org mv lpracct lpracct.org ln -s /usr/local/bin/lp /usr/bin/lp ln -s /usr/local/bin/lpq /usr/bin/lpq ln -s /usr/local/bin/lpr /usr/bin/lpr ln -s /usr/local/bin/lprm /usr/bin/lprm ln -s /usr/local/bin/lpstat /usr/bin/lpstat ln -s /usr/local/sbin/lpc /usr/sbin/lpc ln -s /usr/local/sbin/lpd /usr/sbin/lpd ln -s /usr/local/sbin/lpraccnt /usr/sbin/lpraccnt Kill the running lpd. Validate the source/destination dirs on your servers; change the entries in lppostup to the correct ones; set lppostup to executable, and run ./lppostup. Run lpd, then lpc --help to see if LPRng is running. Hope this helps. Jim -Original Message- From: Sam Warren [mailto:[EMAIL PROTECTED] Sent: Monday, January 12, 2004 12:50 PM To: LPRng Subject: LPRng: Emergency! I am in a real bind! I upgraded my server yesterday and now my lpd server isn't working. I need to copy the files out to a different print server. The files are in the que folders. How can I ftp them or otherwise move them to a different lprng print server que? lpc move does not work. Thanks! Sam Warren, Jr. Computer Technician Winnebago Industries 641-585-3535 ext. 7785 - YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST The address you post from MUST be your subscription address If you need help, send email to [EMAIL PROTECTED] (or lprng-requests or lprng-digest-requests) with the word 'help' in the body. For the impatient, to subscribe to a list with name LIST, send mail to [EMAIL PROTECTED] with: | example: subscribe LIST mailaddr | subscribe lprng-digest [EMAIL PROTECTED] unsubscribe LIST mailaddr | unsubscribe lprng [EMAIL PROTECTED] If you have major problems, send email to [EMAIL PROTECTED] with the word LPRNGLIST in the SUBJECT line. -
RE: LPRng: a bit off topic, but just a bit
David, Look at the pf docs; port redirection is easily configurable. You could also use ssh tunneling. tproxy/transproxy is another possibility. Jim -Original Message- From: David Bear [mailto:[EMAIL PROTECTED] Sent: Monday, December 15, 2003 2:32 PM To: [EMAIL PROTECTED] Subject: LPRng: a bit off topic, but just a bit I would like to put my printers on a private lan -- ie non-routed ip addresses. Then using lprng running on bsd spool jobs to them. While getting lprng to work doesn't present a challenge, I would like to be able to use the web management interfaces on these printers. So, I was thinking of some kind of proxy web server that I could also run along with lprng. The idea would be to rewrite incoming requests to lpserver.asu.edu/hp8100 to 192.168.10.10:80 and proxy them thru. I admit, this sound rather strange... but since we cannot really control our network here, I thought I would at least control the network in our rooms where our servers are. any comments form experience would be appreciated.. thanks. -- David Bear phone: 480-965-8257 fax:480-965-9189 College of Public Programs/ASU Wilson Hall 232 Tempe, AZ 85287-0803 Beware the IP portfolio, everyone will be suspect of trespassing - YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST The address you post from MUST be your subscription address If you need help, send email to [EMAIL PROTECTED] (or lprng-requests or lprng-digest-requests) with the word 'help' in the body. For the impatient, to subscribe to a list with name LIST, send mail to [EMAIL PROTECTED] with: | example: subscribe LIST mailaddr | subscribe lprng-digest [EMAIL PROTECTED] unsubscribe LIST mailaddr | unsubscribe lprng [EMAIL PROTECTED] If you have major problems, send email to [EMAIL PROTECTED] with the word LPRNGLIST in the SUBJECT line. - - YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST The address you post from MUST be your subscription address If you need help, send email to [EMAIL PROTECTED] (or lprng-requests or lprng-digest-requests) with the word 'help' in the body. For the impatient, to subscribe to a list with name LIST, send mail to [EMAIL PROTECTED] with: | example: subscribe LIST mailaddr | subscribe lprng-digest [EMAIL PROTECTED] unsubscribe LIST mailaddr | unsubscribe lprng [EMAIL PROTECTED] If you have major problems, send email to [EMAIL PROTECTED] with the word LPRNGLIST in the SUBJECT line. -
RE: LPRng: RE: How do I get the @#$$% job name to show instead ofsmbprn.yad a.yada?
-Original Message- From: Joel Hammer [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 16, 2003 6:05 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: LPRng: RE: How do I get the @#$$% job name to show instead of smbprn.yad a.yada? Question: I am not sure what you mean by the Lanier displaying anything. Is there a display on the printer? Is this a network printer that talks to the server? This may be an idiosyncracy of the lanier. Using the SmartnetMonitor's History diplay; alternatively there's a web browser interface that also displays the History . Suggestion: Is there a way to modify the print command in smb.conf so that it mv's the job from samba.xxx to ProperJobName, and then print the job with lpr and forget about the %J parameter? For example, without trying this, I could certainly see putting into the smb.conf print command something like this: mv %s %J lpr %J That sounds like it might work. Other questions: Are you getting the right name when viewed from the windows clients? If lpq is working properly on the server, do you have the correct lpq command in your smb.conf? eg. lpq command = /usr/bin/lpq -PWin4LinZ53 I believe so...oddly, on the Lanier driver, all jobs shown in the Windows status box have 12/31/1969 as the date. The Lanier's History shows the correct info. Does the user printing have permissions to use lpq? I think so-otherwise no info would be displayed? Print jobs can be cancelled (lprm) and the printers paused. Have you specifed which printing system (lprng) you are using in your smb.conf file? BSD is the default, or, at least it was. yes Another suggestion: You might use tcpdump to monitor what is sent back and forth between the server and the clients. I would THINK the server would be sending back the jobname for display, but, I haven't tried this. Joel I had a flash at about 5:30 this morning. The -J/-U in lpr's command line affects the Banner info...which may be different from what's being parsed/sent as the job info? If so, why does the Banner option for the user (-U) change info in the Lanier's History, but the jobname (-J) doesn't? It happens whether I'm sending jobs through Samba or from the command line. Jim On Thu, Jan 16, 2003 at 06:43:20PM -0500, Van Sickler, Jim wrote: -Original Message- From: Joel Hammer [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 15, 2003 6:57 PM To: Van Sickler, Jim; [EMAIL PROTECTED] Subject: Re: [Samba] How do I get the @#$$% job name to show instead of smbprn.yada.ya da? If the file name is right in /tmp/J, then it looks like samba is working ok. I guess the question would be, does your version of lpr support the -J option? lpr -H shows all the options. What happens if you just print a file on your linux server (with the printer turned off) with: lpr -JThis is my banner FileToPrint lpq should show something like this: Rank Owner/ID Class Job Files Size Time active jlh@hammer2+227 A 227 This is my banner 24 20:43:27 Joel On Wed, Jan 15, 2003 at 07:35:25PM -0500, Van Sickler, Jim wrote: I'm tinkering with this mod to my smb.conf, and can't get the actual filename to be displayed in the printed job history. It's adapted from one Joel put out on the list last year. My impression is that it works for everyone in the world but me All that ever shows up is smbprn.yada.yada... in the printer's history of printed jobs. print command = echo %J %p %s/tmp/junkJ;\ a=`echo '%J' | sed s/^.*- //` ;\ echo This is truncated $a /tmp/junkJ;\ /usr/local/bin/lpr -P%p -J$a -U%m %s;\ rm %s Looking in /tmp/junkJ, the $a is the filename, as it's supposed to be. I'm running OpenBSD 3.2, LPRng 3.8.19. Clients are all Win2k/SP2. The printer(s) are a mix of HP4s, and a new Lanier 2138 (Ricoh 3800c in sheeps clothing). I think something isn't being parsed/passed correctly between Samba and LPRng. Using the standard LPRng Print Command produces the same results (lpr -P%p -r %s), so it almost seems as though the -J%J job info parameter is being ignored (when I add it to the Print Command) Any help would be appreciated. Jim -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba --- From Samba 2.2.7pre1's print_generic.c: pstrcpy(print_directory, pjob-filename); p = strrchr(print_directory,'/'); if (!p) return 0; *p++ = 0; if (chdir(print_directory) != 0) return 0; pstrcpy(jobname, pjob-jobname); pstring_sub(jobname
RE: LPRng: RE: How do I get the @#$$% job name to show instead ofsmbprn.yad a.yada?
Good point. I'm not all that happy with the Lanier job processing (aside from the 2138's intermittent trips into la-la land). The only time the Document Name ever shows up is when I send jobs to it via the Samba/LPRng route. The following drivers/ports are in use, but NEVER result in the Document Name being displayed in the History: RPCS (Ricoh's native driver) via LanMan or SmartNet ports PS2/PS3 via LanMan or AdobePS ports -- I just created a printer on the Win2k box using the PS3 driver, through a Standard TCP/IP port; the correct Document Name (Test Page) info shows up... xxx.xxx.xxx.24 port name is lp. Device Type is Ricoh Generic Network Printer But...the PS3 driver (always) screws up the timestamp in the process. The History shows 00/00/00, and the console/web log shows --- instead of YY/MM/DD. This occurs no matter which port I use-LanMan, SmartNet, TCP/IP. It looks to me like the Ricoh/Lanier folks have cobbled the drivers together well enough to ship, but there's still a lot of features to be worked out. I haven't tried the PCL drivers yet...I can hardly wait to see what features will divulge themselves when I do... -Original Message- From: Paul Tykodi [mailto:[EMAIL PROTECTED]] Sent: Friday, January 17, 2003 8:31 AM To: [EMAIL PROTECTED] Subject: RE: LPRng: RE: How do I get the @#$$% job name to show instead of smbprn.yad a.yada? Hello Joel and Jim, One question to ask the Lanier folks would be where the print controller of the copier/printer collects the job name from when it processes a job. Your discussion to date has assumed that it is getting the data from the LPD daemon running on the print controller parsing the control file generated by LPRng when the job is transferred through Samba to the printer. It is also possible the accounting function of the copier/printer is reading header information (PostScript or PJL) in each actual received job to find the user instead of the LPRng control file. If this turned out to be true, it would explain why the changes you were testing didn't have any effect at the copier/printer. Just a thought... Best Regards, /Paul -- Paul Tykodi National Product Manager Print 4Sight Inc. p: 603-431-0606 x115 f: 603-436-6432 E-mail: [EMAIL PROTECTED] Special Note: On November 30th, 2002, Print 4Sight Inc. acquired the business assets and business activity of Intermate US Inc. Print 4Sight Inc. as an official North American distributor will continue to sell and support Intermate and Praim Printing products from current offices in Portsmouth, NH, USA. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Joel Hammer Sent: Thursday, January 16, 2003 8:05 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: LPRng: RE: How do I get the @#$$% job name to show instead of smbprn.yad a.yada? Question: I am not sure what you mean by the Lanier displaying anything. Is there a display on the printer? Is this a network printer that talks to the server? This may be an idiosyncracy of the lanier. Suggestion: Is there a way to modify the print command in smb.conf so that it mv's the job from samba.xxx to ProperJobName, and then print the job with lpr and forget about the %J parameter? For example, without trying this, I could certainly see putting into the smb.conf print command something like this: mv %s %J lpr %J Other questions: Are you getting the right name when viewed from the windows clients? If lpq is working properly on the server, do you have the correct lpq command in your smb.conf? eg. lpq command = /usr/bin/lpq -PWin4LinZ53 Does the user printing have permissions to use lpq? Have you specifed which printing system (lprng) you are using in your smb.conf file? BSD is the default, or, at least it was. Another suggestion: You might use tcpdump to monitor what is sent back and forth between the server and the clients. I would THINK the server would be sending back the jobname for display, but, I haven't tried this. Joel On Thu, Jan 16, 2003 at 06:43:20PM -0500, Van Sickler, Jim wrote: -Original Message- From: Joel Hammer [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 15, 2003 6:57 PM To: Van Sickler, Jim; [EMAIL PROTECTED] Subject: Re: [Samba] How do I get the @#$$% job name to show instead of smbprn.yada.ya da? If the file name is right in /tmp/J, then it looks like samba is working ok. I guess the question would be, does your version of lpr support the -J option? lpr -H shows all the options. What happens if you just print a file on your linux server (with the printer turned off) with: lpr -JThis is my banner FileToPrint lpq should show something like this: Rank Owner/ID Class Job Files Size Time
LPRng: How do I get the @#$$% job name to show instead of smbprn.yada.y ada?
I'm tinkering with this mod to my smb.conf, and can't get the actual filename to be displayed in the printed job history. It's adapted from one Joel put out on the list last year. My impression is that it works for everyone in the world but me All that ever shows up is smbprn.yada.yada... in the printer's history of printed jobs. print command = echo %J %p %s/tmp/junkJ;\ a=`echo '%J' | sed s/^.*- //` ;\ echo This is truncated $a /tmp/junkJ;\ /usr/local/bin/lpr -P%p -J$a -U%m %s;\ rm %s Looking in /tmp/junkJ, the $a is the filename, as it's supposed to be. I'm running OpenBSD 3.2, LPRng 3.8.19. Clients are all Win2k/SP2. The printer(s) are a mix of HP4s, and a new Lanier 2138 (Ricoh 3800c in sheeps clothing). I think something isn't being parsed/passed correctly between Samba and LPRng. Using the standard LPRng Print Command produces the same results (lpr -P%p -r %s), so it almost seems as though the -J%J job info parameter is being ignored (when I add it to the Print Command) Any help would be appreciated. Jim - YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST The address you post from MUST be your subscription address If you need help, send email to [EMAIL PROTECTED] (or lprng-requests or lprng-digest-requests) with the word 'help' in the body. For the impatient, to subscribe to a list with name LIST, send mail to [EMAIL PROTECTED] with: | example: subscribe LIST mailaddr | subscribe lprng-digest [EMAIL PROTECTED] unsubscribe LIST mailaddr | unsubscribe lprng [EMAIL PROTECTED] If you have major problems, send email to [EMAIL PROTECTED] with the word LPRNGLIST in the SUBJECT line. -
LPRng: RE: How do I get the @#$$% job name to show instead of smbprn.yada.yada?
-Original Message- From: Joel Hammer [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 15, 2003 6:57 PM To: Van Sickler, Jim; [EMAIL PROTECTED] Subject: Re: [Samba] How do I get the @#$$% job name to show instead of smbprn.yada.ya da? If the file name is right in /tmp/J, then it looks like samba is working ok. I guess the question would be, does your version of lpr support the -J option? lpr -H shows all the options. What happens if you just print a file on your linux server (with the printer turned off) with: lpr -JThis is my banner FileToPrint lpq should show something like this: Rank Owner/ID Class Job Files Size Time active jlh@hammer2+227 A 227 This is my banner 24 20:43:27 Joel On Wed, Jan 15, 2003 at 07:35:25PM -0500, Van Sickler, Jim wrote: I'm tinkering with this mod to my smb.conf, and can't get the actual filename to be displayed in the printed job history. It's adapted from one Joel put out on the list last year. My impression is that it works for everyone in the world but me All that ever shows up is smbprn.yada.yada... in the printer's history of printed jobs. print command = echo %J %p %s/tmp/junkJ;\ a=`echo '%J' | sed s/^.*- //` ;\ echo This is truncated $a /tmp/junkJ;\ /usr/local/bin/lpr -P%p -J$a -U%m %s;\ rm %s Looking in /tmp/junkJ, the $a is the filename, as it's supposed to be. I'm running OpenBSD 3.2, LPRng 3.8.19. Clients are all Win2k/SP2. The printer(s) are a mix of HP4s, and a new Lanier 2138 (Ricoh 3800c in sheeps clothing). I think something isn't being parsed/passed correctly between Samba and LPRng. Using the standard LPRng Print Command produces the same results (lpr -P%p -r %s), so it almost seems as though the -J%J job info parameter is being ignored (when I add it to the Print Command) Any help would be appreciated. Jim -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba --- From Samba 2.2.7pre1's print_generic.c: pstrcpy(print_directory, pjob-filename); p = strrchr(print_directory,'/'); if (!p) return 0; *p++ = 0; if (chdir(print_directory) != 0) return 0; pstrcpy(jobname, pjob-jobname); pstring_sub(jobname, ', _); slprintf(job_page_count, sizeof(job_page_count)-1, %d, pjob-page_count); slprintf(job_size, sizeof(job_size)-1, %d, pjob-size); /* send it to the system spooler */ ret = print_run_command(snum, lp_printcommand(snum), NULL, %s, p, %J, jobname, %f, p, %z, job_size, %c, job_page_count, NULL); --- I'm confused about what %J holds. From the above, it holds the smbprn.yada.yada filename from the samba spool directory; not the Win2k-supplied file name. When I look at the LPRng control file for the job in the /var/spool/lpd/2138 subdir, Jwinfilename is in there... but the Lanier History is displaying the smbprn.yada.yada as the filename. Any of these produce the same result; user=machine name (as it should) Document Name=smbprn.yada.yada Normal Print Command: /usr/local/bin/lpr -U%m -P%p -r %s /usr/local/bin/lpr -U%m -J%J -P%p -r %s From scripted section Print Command: /usr/local/bin/lpr -P%p -J$a -U%m %s;\ /usr/local/bin/lpr -P%p -JTest by Jim -U%m %s;\ /usr/local/bin/lpr -P%p -J$a -U%m %s;\ /usr/local/bin/lpr -P%p -J%J -U%m %s;\ /usr/local/bin/lpr -P%p -J%J -U%m %s;\ But according to /tmp/junkJ, $a is the windows file name, not the spool file name. So does the control file in the spool directory. If I send a file to the Lanier from the command line, the file name is always listed as the Document Name. e.g. /usr/local/bin/lpr -P2138 -Jlmhosts /etc/samba/lmhosts /usr/local/bin/lpr -P2138 -Jlmhosts /etc/samba/lmhosts /usr/local/bin/lpr -P2138 -JThis is lmhosts /etc/samba/lmhosts lpq shows the file name as either lmhosts or This is lmhosts, but the Lanier shows it as /etc/samba/lmhosts Maybe I'm off the mark here...and the Lanier is the bozo. I don't think so yet, because it's only displaying what the samba server/LPRng are passing on to it. Or is it? How does it get the smbprn.yada.yada as the filename? LPRng is sending the right info, as far as lpq shows; but it isn't sending the right info to the Lanier, as far as the Doc Name of smbprn.yada.yada shows. What part Samba is playing, I'm not sure yet. It all seems to be working as it should, but I'm not satisfied. Jim
LPRng: heads-up: checkpc vs OpenBSD 3.2 Install mini-FAQ - solution
A heads-up to those thinking of installing/upgrading to OpenBSD 3.2, and possible issues for other *nixes. lpd/lpr permissions changed to use the group daemon instead of the user daemon... -Original Message- From: Van Sickler, Jim [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 08, 2003 12:27 PM To: '[EMAIL PROTECTED]' Subject: checkpc vs 3.2 mini-FAQ If I use this snippet from the 3.2 upgrade mini-FAQ, checkpc -f complains about the rights on /var/spool/lpd as being 770 instead of 700, and changes the rights back to 700... ## 3.1.5: New permissions for lp* The spool directories used by lpd must now be writable by group daemon in order for lpr to be able to spool files. Additionally, the files within the spool directories must be owned by user and group daemon. This can be accomplished as follows: # find /var/spool/output /var/spool/lpd -type d \ -execdir chgrp daemon {} \; -execdir chmod g+rwx {} \; # find /var/spool/output /var/spool/lpd -type f \ -execdir chown daemon:daemon {} \; # So which/what needs to be fixed? changing spool_dir_perms=000700 in /usr/local/etc/lpd.conf to spool_dir_perms=000770 fixes it... Jim - YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST The address you post from MUST be your subscription address If you need help, send email to [EMAIL PROTECTED] (or lprng-requests or lprng-digest-requests) with the word 'help' in the body. For the impatient, to subscribe to a list with name LIST, send mail to [EMAIL PROTECTED] with: | example: subscribe LIST mailaddr | subscribe lprng-digest [EMAIL PROTECTED] unsubscribe LIST mailaddr | unsubscribe lprng [EMAIL PROTECTED] If you have major problems, send email to [EMAIL PROTECTED] with the word LPRNGLIST in the SUBJECT line. -
RE: LPRng: printcap format error?
I'd change .defaults to .common default and/or defaults may be reserved words. Jim -Original Message- From: Martin Stolle [mailto:[EMAIL PROTECTED]] Sent: Saturday, December 21, 2002 1:28 PM To: [EMAIL PROTECTED] Subject: Re: LPRng: printcap format error? The same thing happens. :tc= is for including other entries. On Sat, Dec 21, 2002 at 10:54:44AM -0500, Joel Hammer wrote: I have never used this parameter. What happens if you put .defaults above ctfozone? Joel On Sat, Dec 21, 2002 at 09:46:43AM -0500, Martin Stolle wrote: Hi, I have the following printcap: ctfozone|* :tc=.defaults .defaults :lp=%Q@printserv :client :force_localhost@ Which should be fine. However, when I run checkpc, I get the error: 2002-12-21-09:44:38.498 tacos ctfozone: Find_pc_info: tc entry '.defaults' not found What am I doing wrong? Or is this a bug? I do know that I don't really need the .defaults in this case, since I only have one printer. However, I would like to keep a .defaults section separate, in case I add other printers with slightly different options. I am using lprng v3.8.10. Martin -- --- YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST The address you post from MUST be your subscription address If you need help, send email to [EMAIL PROTECTED] (or lprng-requests or lprng-digest-requests) with the word 'help' in the body. For the impatient, to subscribe to a list with name LIST, send mail to [EMAIL PROTECTED] with: | example: subscribe LIST mailaddr | subscribe lprng-digest [EMAIL PROTECTED] unsubscribe LIST mailaddr | unsubscribe lprng [EMAIL PROTECTED] If you have major problems, send email to [EMAIL PROTECTED] with the word LPRNGLIST in the SUBJECT line. -- --- -- --- YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST The address you post from MUST be your subscription address If you need help, send email to [EMAIL PROTECTED] (or lprng-requests or lprng-digest-requests) with the word 'help' in the body. For the impatient, to subscribe to a list with name LIST, send mail to [EMAIL PROTECTED] with: | example: subscribe LIST mailaddr | subscribe lprng-digest [EMAIL PROTECTED] unsubscribe LIST mailaddr | unsubscribe lprng [EMAIL PROTECTED] If you have major problems, send email to [EMAIL PROTECTED] with the word LPRNGLIST in the SUBJECT line. -- --- -- --- YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST The address you post from MUST be your subscription address If you need help, send email to [EMAIL PROTECTED] (or lprng-requests or lprng-digest-requests) with the word 'help' in the body. For the impatient, to subscribe to a list with name LIST, send mail to [EMAIL PROTECTED] with: | example: subscribe LIST mailaddr | subscribe lprng-digest [EMAIL PROTECTED] unsubscribe LIST mailaddr | unsubscribe lprng [EMAIL PROTECTED] If you have major problems, send email to [EMAIL PROTECTED] with the word LPRNGLIST in the SUBJECT line. -- --- - YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST The address you post from MUST be your subscription address If you need help, send email to [EMAIL PROTECTED] (or lprng-requests or lprng-digest-requests) with the word 'help' in the body. For the impatient, to subscribe to a list with name LIST, send mail to [EMAIL PROTECTED] with: | example: subscribe LIST mailaddr | subscribe lprng-digest [EMAIL PROTECTED] unsubscribe LIST mailaddr | unsubscribe lprng [EMAIL PROTECTED] If you have major problems, send email to [EMAIL PROTECTED] with the word LPRNGLIST in the SUBJECT line. -
RE: LPRng: NT4.0 Printer Share + LPRNG..NT_STATUS_ACCESS_DENIED
An additional thought: What is the RestrictAnonymous registry setting on the NT box? I think 0 or 1 may be ok; 2 won't show the browse list to anonymous conn's. Jim - YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST The address you post from MUST be your subscription address If you need help, send email to [EMAIL PROTECTED] (or lprng-requests or lprng-digest-requests) with the word 'help' in the body. For the impatient, to subscribe to a list with name LIST, send mail to [EMAIL PROTECTED] with: | example: subscribe LIST mailaddr | subscribe lprng-digest [EMAIL PROTECTED] unsubscribe LIST mailaddr | unsubscribe lprng [EMAIL PROTECTED] If you have major problems, send email to [EMAIL PROTECTED] with the word LPRNGLIST in the SUBJECT line. -
RE: LPRng: first job data staying in spool
Search for done_jobs=0 in the archives for the last 60 days or so. I believe it can go in one of the following: /etc/printcap /etc/lpd.conf /usr/local/etc/printcap /usr/local/etc/lpd.conf Mine is in the .common section of my /usr/local/etc/printcap. Jim -Original Message-From: BRENDAN LUNA [mailto:[EMAIL PROTECTED]]Sent: Tuesday, September 24, 2002 9:32 AMTo: [EMAIL PROTECTED]Subject: LPRng: first job data staying in spool I have recently upgraded to lprng 3.5.12 and I have noticed that the df and cf of the first job printed stays in the spool directory. Even when other jobs print after it keeps it. If I delete these then the next job printed stays in there. Is this some feature of lprng that can be turned off? Here is the printcap for one such printer: fm62f2pbms:\ :rp=fm62f2pbms:rm=fm62f2pbms:\ :sd=/apps/spool/fm62f2pbms:\ :ifhp=model=hp5si:\ :af=\ :filter=/apps/ifhp/libexec/filters/ifhp -Tletter Thanks, Brendan Do you Yahoo!?New DSL Internet Access from SBC Yahoo!
RE: LPRng: lprng, lpr not found on make install
I'll bet you've done what I've done in the past- run the install using the defaults. If you do, then you probably need to remove/rename the original lpr, lpd, lpq, lprm, (in usr/bin usr/sbin) and either copy the lprng equivalents to those dir's or create symbolic links to them. That's my preference, as you won't end up with multiple copies of executables to bite you later on... Here's the contents of my postup file, which I run after upgrading my OpenBSD distro. Upgrades overwrite the lprng links in /usr/bin and /usr/sbin. This restores them. cd /usr/bin mv lp lp.org mv lpq lpq.org mv lpr lpr.org mv lprm lprm.org mv lpstat lpstat.org cd /usr/sbin mv lp lp.org mv lp lp.org mv lp lp.orgrm lpc rm lpd rm lpracct ln -s /usr/local/bin/lp /usr/bin/lp ln -s /usr/local/bin/lpq /usr/bin/lpq ln -s /usr/local/bin/lpr /usr/bin/lpr ln -s /usr/local/bin/lprm /usr/bin/lprm ln -s /usr/local/bin/lpstat /usr/bin/lpstat ln -s /usr/local/sbin/lpc /usr/sbin/lpc ln -s /usr/local/sbin/lpd /usr/sbin/lpd ln -s /usr/local/sbin/lpraccnt /usr/sbin/lpraccnt ; Copy the section above to a file called postup' in a directory that allows execution. Then cd to that directory, type in ./postup to run it. NOTES: Be sure postup actually points to the dir's where the lp/lprng executables are. Correct the lines before you run it, or it won't work...I'm not sure where the defaults for Mandrake's lp installation are. Verify before you change it. Be sure you stop all lp-related daemons before running ./postup Jim -Original Message- From: Paul Tremblay [mailto:[EMAIL PROTECTED]] Sent: Saturday, August 17, 2002 2:12 PM To: [EMAIL PROTECTED] Subject: LPRng: lprng, lpr not found on make install I downloaded the newest version of Lprng. I ran ./install, and then make with no problems. However, when I ran make insall, I got this error message: error reading information on service lpr: No such file or directory error reading information on service lpr: No such file or directory error reading information on service lpr: No such file or directory error reading information on service lpr: No such file or directory error reading information on service lprng: No such file or directory error reading information on service lprng: No such file or directory error reading information on service lprng: No such file or directory error reading information on service lprng: No such file or directory error reading information on service lprng: No such file or directory If I issue the command lpr, I get his error message: Status Information: sending job 'root@localhost+986' to printer@localhost connecting to 'localhost', attempt 1 connected to 'localhost' requesting printer printer@localhost job 'root@localhost+986' transfer to printer@localhost failed error 'NONZERO RFC1179 ERROR CODE FROM SERVER' with ack 'ACK_FAIL' sending str '^Bprinter' to printer@localhost error msg: 'spool queue for 'printer' does not exist on server localhost.localdomain' error msg: ' non-existent printer or you need to run 'checkpc -f'' If I run checkpc -f, I get no error messages, and if I check in /var/, then I find the folder for my printer. I am running Mandrake 8.1. My printer is an HP6mp, and it works if I send a file directly to the device. If I type cat tiger.ps /dev/lp0, then I get a picture of a tiger. I have read the INSTALL directions several times, but could not find anything to help me. I have tried turning off lpd and then installing, but I still get the same error message. Thank you -- *Paul Tremblay * *[EMAIL PROTECTED]* -- --- YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST The address you post from MUST be your subscription address If you need help, send email to [EMAIL PROTECTED] (or lprng-requests or lprng-digest-requests) with the word 'help' in the body. For the impatient, to subscribe to a list with name LIST, send mail to [EMAIL PROTECTED] with: | example: subscribe LIST mailaddr | subscribe lprng-digest [EMAIL PROTECTED] unsubscribe LIST mailaddr | unsubscribe lprng [EMAIL PROTECTED] If you have major problems, send email to [EMAIL PROTECTED] with the word LPRNGLIST in the SUBJECT line. -- --- - YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST The address you post from MUST be your subscription address If you need help, send email to [EMAIL PROTECTED] (or lprng-requests or lprng-digest-requests) with the word 'help' in the body. For the impatient, to subscribe to a list with name LIST, send mail to [EMAIL PROTECTED] with:
RE: LPRng: lprng, lpr not found on make install
(Ignore previous version of this post.. *%*^ Outlook :-( ) I'll bet you've done what I've done in the past- run the install using the defaults. If you do, then you probably need to remove/rename the original lpr, lpd, lpq, lprm, (in usr/bin usr/sbin) and either copy the lprng equivalents to those dir's or create symbolic links to them. That's my preference, as you won't end up with multiple copies of executables to bite you later on... Here's the contents of my postup file, which I run after upgrading my OpenBSD distro. Upgrades overwrite the lprng links in /usr/bin and /usr/sbin. This restores them. cd /usr/bin mv lp lp.org mv lpq lpq.org mv lpr lpr.org mv lprm lprm.org mv lpstat lpstat.org cd /usr/sbin mv lpc lpc.org mv lpd lpd.org mv lpracct lpracct.org ln -s /usr/local/bin/lp /usr/bin/lp ln -s /usr/local/bin/lpq /usr/bin/lpq ln -s /usr/local/bin/lpr /usr/bin/lpr ln -s /usr/local/bin/lprm /usr/bin/lprm ln -s /usr/local/bin/lpstat /usr/bin/lpstat ln -s /usr/local/sbin/lpc /usr/sbin/lpc ln -s /usr/local/sbin/lpd /usr/sbin/lpd ln -s /usr/local/sbin/lpraccnt /usr/sbin/lpraccnt ; Copy the section above to a file called postup' in a directory that allows execution. Then cd to that directory, type in ./postup to run it. NOTES: Be sure postup actually points to the dir's where the lp/lprng executables are. Correct the lines before you run it, or it won't work...I'm not sure where the defaults for Mandrake's lp installation are. Verify before you change it. Be sure you stop all lp-related daemons before running ./postup Jim -Original Message- From: Paul Tremblay [mailto:[EMAIL PROTECTED]] Sent: Saturday, August 17, 2002 2:12 PM To: [EMAIL PROTECTED] Subject: LPRng: lprng, lpr not found on make install I downloaded the newest version of Lprng. I ran ./install, and then make with no problems. However, when I ran make insall, I got this error message: error reading information on service lpr: No such file or directory error reading information on service lpr: No such file or directory error reading information on service lpr: No such file or directory error reading information on service lpr: No such file or directory error reading information on service lprng: No such file or directory error reading information on service lprng: No such file or directory error reading information on service lprng: No such file or directory error reading information on service lprng: No such file or directory error reading information on service lprng: No such file or directory If I issue the command lpr, I get his error message: Status Information: sending job 'root@localhost+986' to printer@localhost connecting to 'localhost', attempt 1 connected to 'localhost' requesting printer printer@localhost job 'root@localhost+986' transfer to printer@localhost failed error 'NONZERO RFC1179 ERROR CODE FROM SERVER' with ack 'ACK_FAIL' sending str '^Bprinter' to printer@localhost error msg: 'spool queue for 'printer' does not exist on server localhost.localdomain' error msg: ' non-existent printer or you need to run 'checkpc -f'' If I run checkpc -f, I get no error messages, and if I check in /var/, then I find the folder for my printer. I am running Mandrake 8.1. My printer is an HP6mp, and it works if I send a file directly to the device. If I type cat tiger.ps /dev/lp0, then I get a picture of a tiger. I have read the INSTALL directions several times, but could not find anything to help me. I have tried turning off lpd and then installing, but I still get the same error message. Thank you -- *Paul Tremblay * *[EMAIL PROTECTED]* -- --- YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST The address you post from MUST be your subscription address If you need help, send email to [EMAIL PROTECTED] (or lprng-requests or lprng-digest-requests) with the word 'help' in the body. For the impatient, to subscribe to a list with name LIST, send mail to [EMAIL PROTECTED] with: | example: subscribe LIST mailaddr | subscribe lprng-digest [EMAIL PROTECTED] unsubscribe LIST mailaddr | unsubscribe lprng [EMAIL PROTECTED] If you have major problems, send email to [EMAIL PROTECTED] with the word LPRNGLIST in the SUBJECT line. -- --- - YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST The address you post from MUST be your subscription address If you need help, send email to [EMAIL PROTECTED] (or lprng-requests or lprng-digest-requests) with the word 'help' in the body. For the impatient, to
RE: LPRng: lprng, lpr not found on make install
Me my fat fingers... mv lpracct...should read lpraccnt I dropped the n Sorry 'bout that. LPRng adds the lpraccnt; the default install of lp doesn't contain one. If no /usr/sbin/lpraccnt exists, it can't be copied; that's a reason you'll get the error with the mv lpraccnt line. Once you've installed lprng and added the symlink, /usr/sbin/lpraccnt will exist (as a symlink to /usr/local/sbin/lpraccnt) I think the error can be ignored, but the typo in the script should be corrected to prevent future problems. If the files exist, ls -la should produce soething like this: samba1# ls -la /usr/sbin/lp* lrwxr-xr-x 1 root wheel19 May 12 23:41 /usr/sbin/lpc - /usr/local/sbin/lpc lrwxr-xr-x 1 root wheel19 May 12 23:42 /usr/sbin/lpd - /usr/local/sbin/lpd lrwxr-xr-x 1 root wheel24 Feb 13 2001 /usr/sbin/lpraccnt - /usr/local/sbin/lpraccnt -r-xr-xr-x 1 root bin8192 May 9 22:52 /usr/sbin/lptest If they look like the lptest entry, then it isn't a symbolic link. something in the script failed to create them. I don't know why else you'd get the error; try find / -name lpr to see where the other files may have been installed to. /usr/local/bin /usr/local/sbin may not be it. run ps ax|grep lp to see what lp-related daemons are running; the directory may point somewhere else. Good Luck, Jim -Original Message- From: Paul Tremblay [mailto:[EMAIL PROTECTED]] Sent: Monday, August 19, 2002 2:16 PM To: LPRng-l (E-mail) Subject: Re: LPRng: lprng, lpr not found on make install On Mon, Aug 19, 2002 at 12:55:39PM -0400, Van Sickler, Jim wrote: Here's the contents of my postup file, which I run after upgrading my OpenBSD distro. Upgrades overwrite the lprng links in /usr/bin and /usr/sbin. This restores them. I checked in /usr/bin, and the files in your script were in fact there. Likewise, the files in /usr/sbin were also present. I ran your script, and I got this error message: mv:cannot stat 'lpraccnt': No such file or dirctory. ln: '/usr/sbin/lpraccnt':File exists So I went into the /usr/sbin file and removed the /usr/sbin/lpraccnt link. (There was already a previous one called lpraccnt.org from the first few times I ran the script.) I ran your script again, and I got only the first error message, that the script couldn't find the lpraccnt. Then I ran /etc/init.d/lpd start This started successfully. Then I typed lpr /home/paul/tiger.ps And I got the same exact error message I have been getting. (The error messages in below in this email from my last posting.) If I type lpr -V, I see that I am using Patrick Powell's version of lpr. Doesn't this mean that the executables are in the right place? I also tried make install again, but I believe that this just puts the executables in the wrong places anyway. By the way, I am version 3.8.14 of LPRng. Thanks Paul cd /usr/bin mv lp lp.org mv lpq lpq.org mv lpr lpr.org mv lprm lprm.org mv lpstat lpstat.org cd /usr/sbin mv lpc lpc.org mv lpd lpd.org mv lpracct lpracct.org ln -s /usr/local/bin/lp /usr/bin/lp ln -s /usr/local/bin/lpq /usr/bin/lpq ln -s /usr/local/bin/lpr /usr/bin/lpr ln -s /usr/local/bin/lprm /usr/bin/lprm ln -s /usr/local/bin/lpstat /usr/bin/lpstat ln -s /usr/local/sbin/lpc /usr/sbin/lpc ln -s /usr/local/sbin/lpd /usr/sbin/lpd ln -s /usr/local/sbin/lpraccnt /usr/sbin/lpraccnt ; Copy the section above to a file called postup' in a directory that allows execution. Then cd to that directory, type in ./postup to run it. NOTES: Be sure postup actually points to the dir's where the lp/lprng executables are. Correct the lines before you run it, or it won't work...I'm not sure where the defaults for Mandrake's lp installation are. Verify before you change it. Be sure you stop all lp-related daemons before running ./postup Jim -Original Message- From: Paul Tremblay [mailto:[EMAIL PROTECTED]] Sent: Saturday, August 17, 2002 2:12 PM To: [EMAIL PROTECTED] Subject: LPRng: lprng, lpr not found on make install I downloaded the newest version of Lprng. I ran ./install, and then make with no problems. However, when I ran make insall, I got this error message: error reading information on service lpr: No such file or directory error reading information on service lpr: No such file or directory error reading information on service lpr: No such file or directory error reading information on service lpr: No such file or directory error reading information on service lprng: No such file or directory error reading information on service lprng: No such file or directory error reading information on service lprng: No such file or directory error reading information on service lprng: No such file or directory error reading
RE: LPRng: queuepause/resume oddities, correction to LPRng HOW-TO
Yes, expected by lpc; but if you use the (incorrect) syntax in the HOW-TO, lpc ignores the input. The printer queue doesn't pause/resume. Jim -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 31, 2002 11:23 PM To: 'LPRng-l (E-mail)' Subject: Re: LPRng: queuepause/resume oddities, correction to LPRng HOW-TO Hi Van, seems likt you discovered the expected behaviour: [printsrv2] ~ $ lpc --h --X option form illegal usage: lpc [-a][-Ddebuglevel][-Pprinter][-Shost][-Uusername][-V] [command] with no command, reads from STDIN -a - alias for -Pall -Ddebuglevel - debug level -Pprinter- printer -Pprinter@host - printer on lpd server on host -Shost - connect to lpd server on host -Uuser - identify command as coming from user -V - increase information verbosity commands: active(printer[@host])- check for active server abort (printer[@host] | all) - stop server class printer[@host] (class | off) - show/set class printing disable (printer[@host] | all) - disable queueing debug (printer[@host] | all) debugparms - set debug level for printer down (printer[@host] | all) - disable printing and queueing enable(printer[@host] | all) - enable queueing flush (printer[@host] | all) - flush cached status hold (printer[@host] | all) (name[@host] | job | all)* - hold job holdall (printer[@host] | all) - hold all jobs on kill (printer[@host] | all) - stop and restart server lpd (printer[@host])- get LPD PID lpq (printer[@host] | all) (name[@host] | job | all)* - invoke LPQ lprm (printer[@host] | all) (name[@host]|host|job| all)* - invoke LPRM msg printer message text - set status message move printer (user|jobid)* target - move jobs to new queue noholdall (printer[@host] | all) - hold all jobs off printcap (printer[@host] | all) - report printcap values quit - exit LPC redirect (printer[@host] | all) (printer@host | off )* - redirect jobs redo (printer[@host] | all) (name[@host] | job | all)* - reprint jobs release (printer[@host] | all) (name[@host] | job | all)* - release jobs reread- LPD reread database information start (printer[@host] | all) - start printing status(printer[@host] | all) - status of printers stop (printer[@host] | all) - stop printing topq (printer[@host] | all) (name[@host] | job | all)* - reorder jobs up(printer[@host] | all) - enable printing and queueing diagnostic: defaultq - show default queue for LPD server defaults - show default configuration values lang - show current i18n (iNTERNATIONALIZATIONn) support client (printer | all) - client config and printcap information server (printer | all) - server config and printcap best regards ~christoph -- /* Christoph Beyer | Office: Building 2b / 23 *\ * DESY|Phone: 040-8998-2317* * - IT - | Fax: 040-8998-4060* \* 22603 Hamburg | http://www.desy.de */ On Wed, 31 Jul 2002, Van Sickler, Jim wrote: I discovered today the following commands don't work the same when typed in from the command line: (%p=hp4plus, in this case) These work: lpc -P%p stop lpc stop %p This doesn't: lpc stop -P%p I also discovered today that the default command syntax in the HOW-TO doesn't work from my Win2k wkstn: queuepause command = /usr/sbin/lpc -P%p stop queueresume command = /usr/sbin/lpc -P%p start this syntax won't work either: queuepause command = /usr/sbin/lpc %p stop queueresume command = /usr/sbin/lpc %p start The following syntax WILL pause/resume the printer: queuepause command = /usr/local/sbin/lpc stop %p queueresume command = /usr/local/sbin/lpc start %p So lpc stop %p / lpc start %p work in both situations... Would someone please change the syntax in the HOW-TO so that Section 2.12. reads: queuepause command =/usr/sbin/lpc stop %p queueresume command = /usr/sbin/lpc start %p This will bring the commands in line with the correct (functional) syntax. (After independent testing confirmation, of course!) Thanks, Jim -- --- YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST The address you post from MUST be your subscription address If you need help, send email to [EMAIL PROTECTED] (or lprng-requests or lprng-digest-requests) with the word 'help' in the body. For the impatient
RE: LPRng: queuepause/resume oddities, correction to LPRng HOW-TO
Ryan, It works from the command line, but when I select Pause Printing on the (Win2k) menu, nothing happens. What Win2k sends as a result of clicking on/off Pause Printing I have no idea. I just know that when I change smb.conf to read lpc stop %p / lpc start %p my Win2k clients can now stop/start the queue, and it works from the command line on the server. Jim -Original Message- From: Ryan Novosielski [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 01, 2002 9:49 AM To: '[EMAIL PROTECTED]' Subject: RE: LPRng: queuepause/resume oddities, correction to LPRng HOW-TO I've used lpc -Pprinter command and it has worked before. Are you sure about that one? lpc printer command is wrong, however. _ _ _ _ ___ _ _ _ |Y#| | | |\/| | \ |\ | | | Ryan Novosielski - Jr. UNIX Systems Admin |$| |__| | | |__/ | \| _| | [EMAIL PROTECTED] - 973/972.0922 (2-0922) \__/ Univ. of Med. and Dent. | IST/ACS - New Jersey Medical School - C630 On Thu, 1 Aug 2002, Van Sickler, Jim wrote: Yes, expected by lpc; but if you use the (incorrect) syntax in the HOW-TO, lpc ignores the input. The printer queue doesn't pause/resume. Jim (snip a lot) - YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST The address you post from MUST be your subscription address If you need help, send email to [EMAIL PROTECTED] (or lprng-requests or lprng-digest-requests) with the word 'help' in the body. For the impatient, to subscribe to a list with name LIST, send mail to [EMAIL PROTECTED] with: | example: subscribe LIST mailaddr | subscribe lprng-digest [EMAIL PROTECTED] unsubscribe LIST mailaddr | unsubscribe lprng [EMAIL PROTECTED] If you have major problems, send email to [EMAIL PROTECTED] with the word LPRNGLIST in the SUBJECT line. -
LPRng: FW: [Samba] my printers are still paused in Win2k and WinNT 4.0
More info Jim -Original Message- From: Shane Drinkwater [mailto:[EMAIL PROTECTED]] Sent: Monday, July 22, 2002 9:51 AM To: [EMAIL PROTECTED] Subject: FW: [Samba] my printers are still paused in Win2k and WinNT 4.0 Jim, Not only does the buffer scrapper code show paused if the Printer name is something like CSQ_office_a but if the host has off in the name like -- [EMAIL PROTECTED] it puts it on pause... Shane -Original Message- From: Shane Drinkwater Sent: Monday, July 22, 2002 11:37 AM To: [EMAIL PROTECTED] Subject: RE: [Samba] my printers are still paused in Win2k and WinNT 4.0 Jim and the samba list, Ok I think I have found part of my problem. I have a question for you.. What is the difference between these two outputs... [root@localhost etc]# lpq -P thisisalongtest Printer: thisisalongtest@localhost Queue: no printable jobs in queue [root@localhost etc]# lpq -P thisisaoff Printer: thisisaoff@localhost Queue: no printable jobs in queue or [root@localhost etc]# lpq -P csq_office_a Printer: csq_office_a@localhost (dest [EMAIL PROTECTED]) Queue: no printable jobs in queue Active connection from 172.27.1.2 [root@localhost etc]# lpq -P csqoffficea Printer: csqoffficea@localhost Queue: no printable jobs in queue The answer is off is in the name of the printer thats right thisisalongtest works ok but and printer with office or even off in the name shows paused. Is this a bug? Shane -Original Message- From: Van Sickler, Jim [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 17, 2002 7:15 PM To: 'Shane Drinkwater' Cc: Samba-L (E-mail) Subject: RE: [Samba] my printers are still paused in Win2k and WinNT 4.0 Ain't this fun?!? :-( -Original Message- From: Shane Drinkwater [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 17, 2002 3:27 PM To: [EMAIL PROTECTED] Subject: RE: [Samba] my printers are still paused in Win2k and WinNT 4.0 Jim, Again no dice. This is a very strange problem!?! I am now debating to compile LPRng with done_jobs=0 to see if that works( at this point I doubt it). I might have missed a clue - is the printer saying it's Paused, or the last job printed saying that it's Paused after being printed? :done_jobs=0 relates to the printed job, not the printer... Do you have guest ok=yes in the printer's subsection in smb.conf? e.g. [HP4Plus] guest ok=yes or [Printers] guest ok=yes I also have some more interesting data for the problem 1.)The HP 4m printer all of a sudden started to work it showed ready!! I come back about 5 mins later and it showed pause again This means other print jobs on the printer are affecting the samba print queue... See if it shows Paused when it's in Power Save mode, and Ready when it's in Ready mode. If the JetDirects are 10/100, try setting them to 10MHz/Half Duplex and see if it changes anything. 100Base-TX Full Duplex doesn't do much ack/nack'ing, IIRC. 2.) I have switched everything over to tcp 9100 and back again to lpd after testing the done_jobs parm still no fix. I've used both-9100 may enable Bi-Directional comms; raw doesn't, IIRC. 3.) I have never printed a job on this server it is a test. I figured that print_jobs=0 means that lprng keept old jobs around to so I cleared out all of the queues and reset up the printers. again paused printer,, With no print jobs That's what made me think about whether the printer status was Paused, and not the print job... 4.) Is CUPS better for communicating status info with samba? I would hate to switch to CUPS since CUPS looks more complicated. Me too... 5.) is there a way to get samba to kick out more detailed info about the printer status( or what it thinks is the printer status). Kick the log level up to 3 for more, up to 10 for a LOT more... 6.) I am checking the status by double clicking on the computer. then the printers share on that computer. I then click on a printer and wait for the refresh on my win2k to say ready or fail Were these printers installed when using an older version of samba? If so, try adding disable spoolss=yes and use client driver=yes to [Global] in smb.conf then restart samba and see if they're still flaky. Jim Shane Any Ideas are helpful!!! P.S. The Damm printer show ready again as I write you this message. I will check it in the morning.. -Original Message- From: Van Sickler, Jim [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 17, 2002 2:17 PM To: 'Shane Drinkwater' Cc: Samba-L (E-mail) Subject: RE: [Samba] my printers are still paused in Win2k and WinNT 4.0 -Original Message- From: Shane Drinkwater [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 17, 2002 10:02 AM To: [EMAIL PROTECTED] Subject: [Samba] my printers are still paused
LPRng: queuepause/resume oddities, correction to LPRng HOW-TO
I discovered today the following commands don't work the same when typed in from the command line: (%p=hp4plus, in this case) These work: lpc -P%p stop lpc stop %p This doesn't: lpc stop -P%p I also discovered today that the default command syntax in the HOW-TO doesn't work from my Win2k wkstn: queuepause command = /usr/sbin/lpc -P%p stop queueresume command = /usr/sbin/lpc -P%p start this syntax won't work either: queuepause command = /usr/sbin/lpc %p stop queueresume command = /usr/sbin/lpc %p start The following syntax WILL pause/resume the printer: queuepause command = /usr/local/sbin/lpc stop %p queueresume command = /usr/local/sbin/lpc start %p So lpc stop %p / lpc start %p work in both situations... Would someone please change the syntax in the HOW-TO so that Section 2.12. reads: queuepause command =/usr/sbin/lpc stop %p queueresume command = /usr/sbin/lpc start %p This will bring the commands in line with the correct (functional) syntax. (After independent testing confirmation, of course!) Thanks, Jim - YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST The address you post from MUST be your subscription address If you need help, send email to [EMAIL PROTECTED] (or lprng-requests or lprng-digest-requests) with the word 'help' in the body. For the impatient, to subscribe to a list with name LIST, send mail to [EMAIL PROTECTED] with: | example: subscribe LIST mailaddr | subscribe lprng-digest [EMAIL PROTECTED] unsubscribe LIST mailaddr | unsubscribe lprng [EMAIL PROTECTED] If you have major problems, send email to [EMAIL PROTECTED] with the word LPRNGLIST in the SUBJECT line. -
LPRng: FW: [Samba] my printers are still paused in Win2k and WinNT 4.0
Shane's using LPRng... sounds like a bug to me... Jim -Original Message- From: Shane Drinkwater [mailto:[EMAIL PROTECTED]] Sent: Monday, July 22, 2002 9:34 AM To: [EMAIL PROTECTED] Subject: RE: [Samba] my printers are still paused in Win2k and WinNT 4.0 Jim and the samba list, Ok I think I have found part of my problem. I have a question for you.. What is the difference between these two outputs... [root@localhost etc]# lpq -P thisisalongtest Printer: thisisalongtest@localhost Queue: no printable jobs in queue [root@localhost etc]# lpq -P thisisaoff Printer: thisisaoff@localhost Queue: no printable jobs in queue or [root@localhost etc]# lpq -P csq_office_a Printer: csq_office_a@localhost (dest [EMAIL PROTECTED]) Queue: no printable jobs in queue Active connection from 172.27.1.2 [root@localhost etc]# lpq -P csqoffficea Printer: csqoffficea@localhost Queue: no printable jobs in queue The answer is off is in the name of the printer thats right thisisalongtest works ok but and printer with office or even off in the name shows paused. Is this a bug? Shane -Original Message- From: Van Sickler, Jim [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 17, 2002 7:15 PM To: 'Shane Drinkwater' Cc: Samba-L (E-mail) Subject: RE: [Samba] my printers are still paused in Win2k and WinNT 4.0 Ain't this fun?!? :-( -Original Message- From: Shane Drinkwater [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 17, 2002 3:27 PM To: [EMAIL PROTECTED] Subject: RE: [Samba] my printers are still paused in Win2k and WinNT 4.0 Jim, Again no dice. This is a very strange problem!?! I am now debating to compile LPRng with done_jobs=0 to see if that works( at this point I doubt it). I might have missed a clue - is the printer saying it's Paused, or the last job printed saying that it's Paused after being printed? :done_jobs=0 relates to the printed job, not the printer... Do you have guest ok=yes in the printer's subsection in smb.conf? e.g. [HP4Plus] guest ok=yes or [Printers] guest ok=yes I also have some more interesting data for the problem 1.)The HP 4m printer all of a sudden started to work it showed ready!! I come back about 5 mins later and it showed pause again This means other print jobs on the printer are affecting the samba print queue... See if it shows Paused when it's in Power Save mode, and Ready when it's in Ready mode. If the JetDirects are 10/100, try setting them to 10MHz/Half Duplex and see if it changes anything. 100Base-TX Full Duplex doesn't do much ack/nack'ing, IIRC. 2.) I have switched everything over to tcp 9100 and back again to lpd after testing the done_jobs parm still no fix. I've used both-9100 may enable Bi-Directional comms; raw doesn't, IIRC. 3.) I have never printed a job on this server it is a test. I figured that print_jobs=0 means that lprng keept old jobs around to so I cleared out all of the queues and reset up the printers. again paused printer,, With no print jobs That's what made me think about whether the printer status was Paused, and not the print job... 4.) Is CUPS better for communicating status info with samba? I would hate to switch to CUPS since CUPS looks more complicated. Me too... 5.) is there a way to get samba to kick out more detailed info about the printer status( or what it thinks is the printer status). Kick the log level up to 3 for more, up to 10 for a LOT more... 6.) I am checking the status by double clicking on the computer. then the printers share on that computer. I then click on a printer and wait for the refresh on my win2k to say ready or fail Were these printers installed when using an older version of samba? If so, try adding disable spoolss=yes and use client driver=yes to [Global] in smb.conf then restart samba and see if they're still flaky. Jim Shane Any Ideas are helpful!!! P.S. The Damm printer show ready again as I write you this message. I will check it in the morning.. -Original Message- From: Van Sickler, Jim [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 17, 2002 2:17 PM To: 'Shane Drinkwater' Cc: Samba-L (E-mail) Subject: RE: [Samba] my printers are still paused in Win2k and WinNT 4.0 -Original Message- From: Shane Drinkwater [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 17, 2002 10:02 AM To: [EMAIL PROTECTED] Subject: [Samba] my printers are still paused in Win2k and WinNT 4.0 Jim, I have placed the done_jobs in my lpd.conf and it didn't fix the problem. try done_jobs=0 (maybe the space between = 0 is causing it to be ignored?) How can the done jobs parm effect the samba system if the queues don't list out any jobs to print??? If you look in your lpd spool dir, you'll see the last job
RE: LPRng: FW: [Samba] my printers are still paused in Win2k and WinNT4.0
It's not only the name, I just found out... I have an OfficeJet 570, and the following entry in my smb.conf would result in a persistent Paused status: [HP570] comment = OfficeJet 570 by HP450C Plotter path = /var/spool/samba/hp570 writeable = no printable = yes printer name = hp570 use client driver = no Changing the comment to HP570 Color InkJet by HP450C Plotter cleared the Paused statusthanks for the fix!!! Jim -Original Message- From: John Perkins [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 31, 2002 11:14 AM To: [EMAIL PROTECTED] Subject: Re: LPRng: FW: [Samba] my printers are still paused in Win2k and WinNT 4.0 On Wed, 31 Jul 2002 12:10:32 -0400 Van Sickler, Jim [EMAIL PROTECTED] wrote: Shane's using LPRng... sounds like a bug to me... I thought this was a SAMBA bug when I ran up against it. The strings SAMBA looks for are in source/printing/lpq_parse.c, lines 948-950 (as of Samba 2.2.4). off is in the list of things to interpret as special. As is the word paper, so if you have any printers with paper in the name, the status will always show up as Paused or Stopped to windows users. We ran across this with our color printer queues cl-paper and cl-slide (paper and transparency media, respectively). cl-paper was always Paused, even though it processed jobs. Apparently Samba thought it was out of paper... == == John Perkins | University of Wisconsin-Madison Associate Researcher | Department of Computer Science [EMAIL PROTECTED] | 1210 W. Dayton St. 608-262-0438/608-262-9997 FAX | Madison, WI 53706-1685 == == -- --- YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST The address you post from MUST be your subscription address If you need help, send email to [EMAIL PROTECTED] (or lprng-requests or lprng-digest-requests) with the word 'help' in the body. For the impatient, to subscribe to a list with name LIST, send mail to [EMAIL PROTECTED] with: | example: subscribe LIST mailaddr | subscribe lprng-digest [EMAIL PROTECTED] unsubscribe LIST mailaddr | unsubscribe lprng [EMAIL PROTECTED] If you have major problems, send email to [EMAIL PROTECTED] with the word LPRNGLIST in the SUBJECT line. -- --- - YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST The address you post from MUST be your subscription address If you need help, send email to [EMAIL PROTECTED] (or lprng-requests or lprng-digest-requests) with the word 'help' in the body. For the impatient, to subscribe to a list with name LIST, send mail to [EMAIL PROTECTED] with: | example: subscribe LIST mailaddr | subscribe lprng-digest [EMAIL PROTECTED] unsubscribe LIST mailaddr | unsubscribe lprng [EMAIL PROTECTED] If you have major problems, send email to [EMAIL PROTECTED] with the word LPRNGLIST in the SUBJECT line. -
LPRng: Last Printed Job Listed Staying in Queue Dir...Still
I installed ifhp 3.5.8, set it to filter the job; no change I uninstalled Samba 2.2.5-Pre, installed 2.2.1a; no change lpr -Php4plus /etc/printcap prints ok; printed job stays in queue after job is done, so it's not samba's fault... - l /var/spool/lpd/hp4plus total 38 drwx-- 2 daemon daemon512 May 22 17:00 ./ drwxr-xr-x 10 rootwheel 512 May 19 11:15 ../ -rw--- 1 daemon daemon 8871 May 22 16:53 acct -rw--- 1 daemon daemon156 May 22 16:50 cfA241samba2.kaman.com -rw--- 1 daemon daemon 13 May 22 12:01 control.pr -rw--- 1 daemon daemon 1131 May 22 16:50 dfA241samba2.kaman.com -rw--- 1 daemon daemon605 May 22 16:50 hfA241 -rw--- 1 daemon daemon 0 May 22 17:10 lock.pr -rw--- 1 daemon daemon328 May 22 16:19 log -rw--- 1 daemon daemon 10604 May 22 16:33 lpq.0 -rw--- 1 daemon daemon 48 May 11 10:14 lpq.1 -rw--- 1 daemon daemon 4632 May 22 16:53 status -rw--- 1 daemon daemon 2621 May 22 17:00 status.pr -rw--- 1 daemon daemon 6 May 22 16:52 unspooler.pr - Is this going to be fixed in 3.8.13, or is there a patch/edit for the changes in lpd_status.c (or wherever it's broken)? Jim - YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST The address you post from MUST be your subscription address If you need help, send email to [EMAIL PROTECTED] (or lprng-requests or lprng-digest-requests) with the word 'help' in the body. For the impatient, to subscribe to a list with name LIST, send mail to [EMAIL PROTECTED] with: | example: subscribe LIST mailaddr | subscribe lprng-digest [EMAIL PROTECTED] unsubscribe LIST mailaddr | unsubscribe lprng [EMAIL PROTECTED] If you have major problems, send email to [EMAIL PROTECTED] with the word LPRNGLIST in the SUBJECT line. -
LPRng: LPRng Completed Job Quirks
LPRng 3.8.12 (upgraded first from 3.7.4--3.8.10) OpenBSD 3.1 Samba 2.2.5-pre (upgraded; 2.2.2, 2.2.3a, 2.2.4) Patrick, et al, I just installed LPRng 3.8.12, to see if it would fix a problem I've recently encountered. You mention a fix for stale jobs not being removed-that's sort of what I've been seeing. The last completed job is shown in the Win2k printer status window as Paused. I tried setting default done_jobs=0 (in 3.8.10 and .12), but the last job printed remains in the spool dir. If I lprm -Php4plus -, the job is dequeued and removed. Setting default done_jobs=0 or 1 and default done_jobs_max_age=30 doesn't change anything-the last job printed stays in the queue dir (not removed after 30 seconds). Odd...lpq, lpc, lpstat all report no PRINTABLE jobs, yet Win2k shows the job as Paused; even though it's already been printed. Dequeueing (deleting) the job files clears the job from the Win2k status box. Canceling the job from the Win2k box also clears it. lpstat gives me: --- samba2# lpstat hp4plus Printer: hp4plus@samba2 'HP4Plus by Graphics PC' (dest [EMAIL PROTECTED]) Queue: no printable jobs in queue Server: no server active Status: job 'vansickj@samba2+738' saved at 07:53:52.293 Rank Owner/ID Class Job Files Size Time done vansickj@samba2+738 A 738 smbprn.28.D18204 42322 07:53:34 no entries --- I copied this at 8:06 - 12 1/2 minutes after I printed the job; it's still in the queue dir. lprm -Php4plus 738 dequeued it and removed the files from the dir. What feeds job status to Win2k? Is it lprng--samba--Win2k? Sometimes this is fun, sometimes it's not...I'm sure you know what I mean! Jim - YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST The address you post from MUST be your subscription address If you need help, send email to [EMAIL PROTECTED] (or lprng-requests or lprng-digest-requests) with the word 'help' in the body. For the impatient, to subscribe to a list with name LIST, send mail to [EMAIL PROTECTED] with: | example: subscribe LIST mailaddr | subscribe lprng-digest [EMAIL PROTECTED] unsubscribe LIST mailaddr | unsubscribe lprng [EMAIL PROTECTED] If you have major problems, send email to [EMAIL PROTECTED] with the word LPRNGLIST in the SUBJECT line. -