Shane Drinkwater
2002-Jul-16 10:03 UTC
[Samba] my printers are still paused in Win2k and WinNT 4.0
Hello, It seems that I am in printer hell once again :) I am trying to sort out some printer problems with our UNIX server. The basic problem is this. I have a test server to K.I.S.S the problem. On this server I have defined two queues which are csqlis and HPfinley. csqlis seems to work correctly and displays ready. HPfinley always reads Paused on win2k and NT40 clients. The output of the lpq command is csqlis: [root@localhost etc]# lpq -Pcsqlis Printer: csqlis@localhost <mailto:csqlis@localhost> 'This is a test' (dest hp@csqlis.pa-ucl.com <mailto:hp@csqlis.pa-ucl.com> ) Queue: no printable jobs in queue JetDirect lpd: no jobs queued on this port HPfinley [root@localhost etc]# lpq -Phpfinley Printer: HPfinley@localhost <mailto:HPfinley@localhost> (dest hp@fin-office-laser.pa-ucl.com <mailto:hp@fin-office-laser.pa-ucl.com> ) Queue: no printable jobs in queue JetDirect lpd: no jobs queued on this port [root@localhost etc]# I am running the following revs for software RED HAT 7.3 LPRng 3.8.12 Samba -2.2.5 with the parse_sec_patch I have also added done_jobs=0 to the lpd.conf and printcap and printcap.local files Any help on this isssue would be apprecated. I am stuck with this problem. Considering that the lpq output looks the same to me. Shane -------------- next part -------------- HTML attachment scrubbed and removed
Van Sickler, Jim
2002-Jul-16 11:00 UTC
[Samba] my printers are still paused in Win2k and WinNT 4.0
1. What types of HP printers are they? 2. Is the firmware on the JetDirects up to date? 3. Are you using the HP or MS driver for the clients? 4. Are you using ":rp=9100" or ":rp=raw" in printcap? (post your printcap, and we'll look it over) 5. Do you have "guest ok=yes" on the printer entries? 6. Are you using disable spoolss= "yes" or "no"? Jim -----Original Message----- From: Shane Drinkwater [mailto:Shane_Drinkwater@pa-ucl.com] Sent: Tuesday, July 16, 2002 9:54 AM To: samba@lists.samba.org Subject: [Samba] my printers are still paused in Win2k and WinNT 4.0 Hello, It seems that I am in printer hell once again :) I am trying to sort out some printer problems with our UNIX server. The basic problem is this. I have a test server to K.I.S.S the problem. On this server I have defined two queues which are csqlis and HPfinley. csqlis seems to work correctly and displays ready. HPfinley always reads Paused on win2k and NT40 clients. The output of the lpq command is csqlis: [root@localhost etc]# lpq -Pcsqlis Printer: csqlis@localhost <mailto:csqlis@localhost> 'This is a test' (dest hp@csqlis.pa-ucl.com <mailto:hp@csqlis.pa-ucl.com> ) Queue: no printable jobs in queue JetDirect lpd: no jobs queued on this port HPfinley [root@localhost etc]# lpq -Phpfinley Printer: HPfinley@localhost <mailto:HPfinley@localhost> (dest hp@fin-office-laser.pa-ucl.com <mailto:hp@fin-office-laser.pa-ucl.com> ) Queue: no printable jobs in queue JetDirect lpd: no jobs queued on this port [root@localhost etc]# I am running the following revs for software RED HAT 7.3 LPRng 3.8.12 Samba -2.2.5 with the parse_sec_patch I have also added done_jobs=0 to the lpd.conf and printcap and printcap.local files Any help on this isssue would be apprecated. I am stuck with this problem. Considering that the lpq output looks the same to me. Shane -------------- next part -------------- HTML attachment scrubbed and removed
Van Sickler, Jim
2002-Jul-16 15:50 UTC
[Samba] my printers are still paused in Win2k and WinNT 4.0
Shane, Here's a snip from another LPRng user, sthom, having the same problem: ----------------------------------------- Thanks for the help. The version of Lprng that ships with RedHat 7.3 is 3.8.9, but I had to change the default anyway. It was difficult to figure out which file to edit (printcap, printcap.local, lpd.conf, so I tried all of them. It turns out /etc/lpd.conf was the culprit, I added the following after the default: # default done_jobs= 1 (INTEGER) done_jobs=0 ----------------------------------------- Try that, and see if it also works for you... Jim -----Original Message----- From: Shane Drinkwater [mailto:Shane_Drinkwater@pa-ucl.com] Sent: Tuesday, July 16, 2002 1:27 PM To: Van Sickler, Jim Subject: RE: [Samba] my printers are still paused in Win2k and WinNT 4.0 Jim & the samba list First off thanks for looking at this!!!! ... I have the following information the first is using the lpr/lpd print file transfering. 1.) My company has a mix of HP printers from 4m plus to 4500 HP lasers. This error occurs between all of the printers. For testing I choose two HP 4m plus printers for testing.. 2.) Yes, I downloaded the lastest firmware to the netdirect cards using hp download manager. Current firmware levels on both test printers is -->Model J2552B Firmware is A.08.40 3.) I am using the MS clients for the test server. 4.) I have tried to use the direct tcp method of printing and it works great but I still have the same print paused problem. It doesn't seem to matter what method I use to print LPD/direct TCP. # /etc/printcap # # DO NOT EDIT! MANUAL CHANGES WILL BE LOST! # This file is autogenerated by printconf-backend during lpd init. # # Hand edited changes can be put in /etc/printcap.local, and will be included. ############################################################################ ### ## Everything below here is included verbatim from /etc/printcap.local ## ############################################################################ ### # printcap.local # # This file is included by printconf's generated printcap, # and can be used to specify custom hand edited printers. csqlis|This is a test:sd=/var/spool/lpd/csqlis:cm=This is a test:rp=hp:sh:rm=csqlis.pa-ucl.com:done_jobs=0: HPfinley|:sd=/var/spool/lpd/HPfinley:rp=hp:sh:rm=fin-office-laser.pa-ucl.com :done_jobs=0: my smb.conf is as follows..... # This is the main Samba configuration file. You should read the # smb.conf(5) manual page in order to understand the options listed # here. Samba has a huge number of configurable options (perhaps too # many!) most of which are not shown in this example # # Any line which starts with a ; (semi-colon) or a # (hash) # is a comment and is ignored. In this example we will use a # # for commentry and a ; for parts of the config file that you # may wish to enable # # NOTE: Whenever you modify this file you should run the command "testparm" # to check that you have not made any basic syntactic errors. # #======================= Global Settings ====================================[global] smb passwd file = /etc/samba/smbpasswd wins server = 172.27.1.17 printing = lprng lpq command = /usr/bin/lpq -P%p dns proxy = no null passwords = yes encrypt passwords = yes socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 printcap name = /etc/printcap max log size = 0 password server = mercury interfaces = 172.27.1.21/24 writable = yes map to guest = bad user security = server printer admin = nobody workgroup = CSQ server string = Samba Server netbios name = TESTBACKUP log file = /var/log/samba/%m.log load printers = yes public = yes [homes] comment = Home Directories browseable = no writable = yes valid users = %S create mode = 0664 directory mode = 0775 [print$] path = /home/samba/printerdrivers browseable = yes write list = nobody [UCL Repository] path = /home/samba/uclrep comment = Test for NT with share over 12 chars volume = UCL Repository comment = Test -----Original Message----- From: Van Sickler, Jim [mailto:vansickj-eodc@Kaman.com] Sent: Tuesday, July 16, 2002 12:58 PM To: Samba-L (E-mail) Subject: RE: [Samba] my printers are still paused in Win2k and WinNT 4.0 1. What types of HP printers are they? 2. Is the firmware on the JetDirects up to date? 3. Are you using the HP or MS driver for the clients? 4. Are you using ":rp=9100" or ":rp=raw" in printcap? (post your printcap, and we'll look it over) 5. Do you have "guest ok=yes" on the printer entries? 6. Are you using disable spoolss= "yes" or "no"? Jim -----Original Message----- From: Shane Drinkwater [mailto:Shane_Drinkwater@pa-ucl.com] Sent: Tuesday, July 16, 2002 9:54 AM To: samba@lists.samba.org Subject: [Samba] my printers are still paused in Win2k and WinNT 4.0 Hello, It seems that I am in printer hell once again :) I am trying to sort out some printer problems with our UNIX server. The basic problem is this. I have a test server to K.I.S.S the problem. On this server I have defined two queues which are csqlis and HPfinley. csqlis seems to work correctly and displays ready. HPfinley always reads Paused on win2k and NT40 clients. The output of the lpq command is csqlis: [root@localhost etc]# lpq -Pcsqlis Printer: csqlis@localhost 'This is a test' (dest hp@csqlis.pa-ucl.com) Queue: no printable jobs in queue JetDirect lpd: no jobs queued on this port HPfinley [root@localhost etc]# lpq -Phpfinley Printer: HPfinley@localhost (dest hp@fin-office-laser.pa-ucl.com) Queue: no printable jobs in queue JetDirect lpd: no jobs queued on this port [root@localhost etc]# I am running the following revs for software RED HAT 7.3 LPRng 3.8.12 Samba -2.2.5 with the parse_sec_patch I have also added done_jobs=0 to the lpd.conf and printcap and printcap.local files Any help on this isssue would be apprecated. I am stuck with this problem. Considering that the lpq output looks the same to me. Shane
Shane Drinkwater
2002-Jul-17 10:18 UTC
[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. How can the done jobs parm effect the samba system if the queues don't list out any jobs to print??? My current lpd.conf file is --> # lpd.conf # VERSION=3.8.12 # lpd.conf generated from on Mon May 6 09:04:18 PDT 2002 # The values in this file are the default values. # If you modify the file, set the value to something other than the default # For example, # # default force_localhost # means the 'force_localhost' option default value is on or 1 # To set it to OFF or 0, change this to read: # force_localhost@ # Purpose: always print banner, ignore lpr -h option # default ab@ (FLAG off) # Purpose: query accounting server when connected # default achk@ (FLAG off) # Purpose: accounting at end (see also af, la, ar, as) # default ae=jobend $H $n $P $k $b $t $'C $'J $'M (STRING) # Purpose: name of accounting file (see also la, ar) # default af=acct (STRING) # Purpose: automatically hold all jobs # default ah@ (FLAG off) # Purpose: Allow use of LPD_CONF environment variable # default allow_getenv@ (FLAG off) # Purpose: allow users to request logging info using lpr -mhost%port # default allow_user_logging@ (FLAG off) # Purpose: allow these users or UIDs to set owner of job. For Samba front ending # default allow_user_setting=0 (STRING) # Purpose: append these -Z options to end of options list on outgoing or filters # default append_z=0 (STRING) # Purpose: write remote transfer accounting (if af is set) # default ar (FLAG on) # Purpose: host architecture # default architecture=i386 (STRING) # Purpose: accounting at start (see also af, la, ar) # default as=jobstart $H $n $P $k $b $t $'C $'J $'M (STRING) # Purpose: authentication type for client to server # default auth=0 (STRING) # Purpose: client to server authentication filter # default auth_forward=0 (STRING) # Purpose: end banner printing program overides bp # default be=0 (STRING) # Purpose: Berkeley LPD: job file strictly RFC-compliant # default bk@ (FLAG off) # Purpose: Berkeley LPD filter options # default bk_filter_options=$P $w $l $x $y $F $c $L $i $J $C $0n $0h $-a (STRING) # Purpose: Berkeley LPD OF filter options # default bk_of_filter_options=$w $l $x $y (STRING) # Purpose: backwards-compatible filters: use simple paramters # default bkf@ (FLAG off) # Purpose: short banner line sent to banner printer # default bl=$-C:$-n Job: $-J Date: $-t (STRING) # Purpose: banner printing program (see bs, be) # default bp=0 (STRING) # Purpose: format for bounce queue output # default bq_format=f (STRING) # Purpose: if lp is a tty, set the baud rate (see ty) # default br=0 (INTEGER) # Purpose: do not set priority from class name # default break_classname_priority_link@ (FLAG off) # Purpose: banner printing program overrides bp # default bs=0 (STRING) # Purpose: check for nonprintable file # default check_for_nonprintable@ (FLAG off) # Purpose: check for RFC1179 protocol violations # default check_for_protocol_violations@ (FLAG off) # Purpose: filter selects the destination for a load balance queue # default chooser=0 (STRING) # Purpose: interval between checks for available destination for load balance queue # default chooser_interval=10 (INTEGER) # Purpose: user provided routine selects the destination for a load balance queue # default chooser_routine@ (FLAG off) # Purpose: show classname in status display # default class_in_status@ (FLAG off) # Purpose: client flag set in printcap entry # default client@ (FLAG off) # Purpose: comment identifying printer (LPQ) # default cm=0 (STRING) # Purpose: configuration file # default config_file= /etc/lpd.conf (STRING) # Purpose: minimum interval between connections and jobs # default connect_grace=0 (INTEGER) # Purpose: interval between connection or open attempts # default connect_interval=10 (INTEGER) # Purpose: connection timeout for remote printers # default connect_timeout=10 (INTEGER) # Purpose: control file line order # default control_file_line_order=0 (STRING) # Purpose: control file filter # default control_filter=0 (STRING) # Purpose: create files in spool directory # default create_files@ (FLAG off) # Purpose: debug level set for queue handler # default db=0 (STRING) # Purpose: default job format # default default_format=f (STRING) # Purpose: default permission for files # default default_permission=ACCEPT (STRING) # Purpose: default printer # default default_printer=missingprinter (STRING) # Purpose: default job priority # default default_priority=A (STRING) # Purpose: default remote host # default default_remote_host=localhost (STRING) # Purpose: default temp directory for temp files # default default_tmp_dir=/tmp (STRING) # Purpose: printers that we should query for status information # default destinations=0 (STRING) # Purpose: allow LPR to make direct socket connection to printer # default direct@ (FLAG off) # Purpose: keep the last NN done jobs for status purposes # default done_jobs= 1 (INTEGER) done_jobs= 0 # Purpose: keep done jobs for at most max age seconds # default done_jobs_max_age= 0 (INTEGER) # Purpose: drop root permissions after binding to listening port # default drop_root@ (FLAG off) # Purpose: exit linger timeout to wait for socket to close # default exit_linger_timeout=600 (INTEGER) # Purpose: use this size (in Kbytes) when sending 'unknown' size files to a spooler # default fakelargefile=0 (INTEGER) # Purpose: string to send for a form feed # default ff=\\f (STRING) # Purpose: default filter # default filter=0 (STRING) # Purpose: filter LD_LIBRARY_PATH value # default filter_ld_path= /lib:/usr/lib:/usr/local/lib (STRING) # Purpose: filter options # default filter_options=$A $B $C $D $E $F $G $H $I $J $K $L $M $N $O $P $Q $R $S $T $U $V $W $X $Y $Z $a $b $c $d $e $f $g $h $i $j $k $l $m $n $o $p $q $r $s $t $u $v $w $x $y $z $-a (STRING) # Purpose: filter PATH environment variable # default filter_path= /bin:/usr/bin:/usr/local/bin (STRING) # Purpose: interval at which to check OF filter for error status # default filter_poll_interval=30 (INTEGER) # Purpose: write filter errors to the :ps=status file if there is one # default filter_stderr_to_status_file@ (FLAG off) # Purpose: print a form feed when device is opened # default fo@ (FLAG off) # Purpose: force FQDN HOST value in control file # default force_fqdn_hostname@ (FLAG off) # Purpose: force IPADDR of Originating host for host value in control file # default force_ipaddr_hostname@ (FLAG off) # Purpose: force clients to send all requests to localhost # default force_localhost (FLAG on) # Purpose: force lpq status format for specified hostnames # default force_lpq_status=0 (STRING) # Purpose: force use of this queuename if none provided # default force_queuename=0 (STRING) # Purpose: print a form feed when device is closed # default fq@ (FLAG off) # Purpose: full or complete time format # default full_time@ (FLAG off) # Purpose: valid output filter formats # default fx=0 (STRING) # Purpose: generate a banner when forwarding job # default generate_banner@ (FLAG off) # Purpose: group to run SUID ROOT programs # default group= lp (STRING) # Purpose: do a 'half close' on socket when sending job to remote printer # default half_close (FLAG on) # Purpose: print banner after job instead of before # default hl@ (FLAG off) # Purpose: filter command, run on a per-file basis # default if=0 (STRING) # Purpose: ignore requested user priority # default ignore_requested_user_priority@ (FLAG off) # Purpose: incoming job control file filter # default incoming_control_filter=0 (STRING) # Purpose: Running IPV6 # default ipv6@ (FLAG off) # Purpose: TCP keepalive enabled # default keepalive (FLAG on) # Purpose: remote server principal for server to server forwarding # default kerberos_forward_principal=0 (STRING) # Purpose: keytab file location for kerberos, used by server # default kerberos_keytab=/etc/lpd.keytab (STRING) # Purpose: key lifetime for kerberos, used by server # default kerberos_life=0 (STRING) # Purpose: key renewal time for kerberos, used by server # default kerberos_renew=0 (STRING) # Purpose: remote server principle, overides default # default kerberos_server_principal=0 (STRING) # Purpose: default service # default kerberos_service=lpr (STRING) # Purpose: write local printer accounting (if af is set) # default la (FLAG on) # Purpose: leader string printed on printer open # default ld=0 (STRING) # Purpose: error log file (servers, filters and prefilters) # default lf=log (STRING) # Purpose: lock the IO device # default lk@ (FLAG off) # Purpose: lpd lock file # default lockfile= /var/run/lpd (STRING) # Purpose: where to send status information for logging # default logger_destination=0 (STRING) # Purpose: maximum size in K of logger file # default logger_max_size=0 (INTEGER) # Purpose: path of file to hold logger information # default logger_path=0 (STRING) # Purpose: timeout between connection attempts to remote logger # default logger_timeout=0 (INTEGER) # Purpose: use long job number (0 - 999999) when a job is submitted # default longnumber@ (FLAG off) # Purpose: device name or lp-pipe command to send output to # default lp=0 (STRING) # Purpose: force lpd to filter jobs (bounce) before sending to remote queue # default lpd_bounce@ (FLAG off) # Purpose: force a poll operation # default lpd_force_poll@ (FLAG off) # Purpose: lpd server listen port port, "off" does not open port # default lpd_listen_port=0 (STRING) # Purpose: lpd pathname for server use # default lpd_path=0 (STRING) # Purpose: max number of queues to start at a time # default lpd_poll_servers_started=10 (INTEGER) # Purpose: interval in secs between starting small numbers of queue servers # default lpd_poll_start_interval=10 (INTEGER) # Purpose: interval in secs between servicing all queues # default lpd_poll_time=600 (INTEGER) # Purpose: lpd port # default lpd_port=515 (STRING) # Purpose: lpd printcap path # default lpd_printcap_path= /etc/lpd_printcap (STRING) # Purpose: maximum number of lpq status queries kept in cache # default lpq_status_cached=10 (INTEGER) # Purpose: cached lpq status file # default lpq_status_file=lpq (STRING) # Purpose: minimum interval between updates # default lpq_status_interval=2 (INTEGER) # Purpose: cached lpq status timeout - refresh after this time # default lpq_status_stale=3600 (INTEGER) # Purpose: Additional options for LPR # default lpr=0 (STRING) # Purpose: lpr will run job through filters and send single file # default lpr_bounce@ (FLAG off) # Purpose: BSD LPR -m flag, does not require mail address # default lpr_bsd@ (FLAG off) # Purpose: from address to use in mail messages # default mail_from=0 (STRING) # Purpose: mail to this operator on error # default mail_operator_on_error=0 (STRING) # Purpose: maximum accounting file size in Kbytes # default max_accounting_file_size=1000 (INTEGER) # Purpose: maximum interval between connection attempts # default max_connect_interval=60 (INTEGER) # Purpose: maximum number of datafiles # default max_datafiles=52 (INTEGER) # Purpose: maximum log file size in Kbytes # default max_log_file_size=1000 (INTEGER) # Purpose: maximum number of servers that can be active # default max_servers_active=0 (INTEGER) # Purpose: maximum length of status line # default max_status_line=79 (INTEGER) # Purpose: maximum size (in K) of status file # default max_status_size=10 (INTEGER) # Purpose: maximum copies allowed # default mc=1 (INTEGER) # Purpose: minimum accounting file size in Kbytes # default min_accounting_file_size=0 (INTEGER) # Purpose: minimum log file size in Kbytes # default min_log_file_size=0 (INTEGER) # Purpose: minimum status file size in Kbytes # default min_status_size=0 (INTEGER) # Purpose: minimum amount of free space needed in K bytes # default minfree=0 (INTEGER) # Purpose: minimum number of printable characters for printable check # default ml=0 (INTEGER) # Purpose: millisecond time resolution # default ms_time_resolution (FLAG on) # Purpose: maximum job size (1Kb blocks, 0 = unlimited) # default mx=0 (INTEGER) # Purpose: use nonblocking open # default nb@ (FLAG off) # Purpose: connection control for remote network printers # default network_connect_grace=0 (INTEGER) # Purpose: N line after cfA000... line in control file # default nline_after_file@ (FLAG off) # Purpose: output filter, run once for all output # default of=0 (STRING) # Purpose: OF filter options # default of_filter_options=0 (STRING) # Purpose: use user supplied queue order routine # default order_routine@ (FLAG off) # Purpose: orginate connections from these ports # default originate_port=512 1023 (STRING) # Purpose: pass these environment variables to filters (clients and lpd) # default pass_env=PGPPASS,PGPPATH,PGPPASSFD,LANG,LC_CTYPE,LC_NUMERIC,LC_TIME,LC_COLLA TE,LC_MONETARY,LC_MESSAGES,LC_PAPER,LC_NAME,LC_ADDRESS,LC_TELEPHONE,LC_MEASU REMENT,LC_IDENTIFICATION,LC_ALL (STRING) # Purpose: lpd.perms files # default perms_path= /etc/lpd.perms (STRING) # Purpose: page length (in lines) # default pl=66 (INTEGER) # Purpose: pr program for p format # default pr=/usr/bin/pr (STRING) # Purpose: prefix control file line to line, "Z O" -> Z to O, "OS Z" does O and S to Z # default prefix_option_to_option=0 (STRING) # Purpose: prefix these -Z options to start of options list on outgoing or filters # default prefix_z=0 (STRING) # Purpose: /etc/printcap files # default printcap_path= /etc/printcap (STRING) # Purpose: printer status file name # default ps=status (STRING) # Purpose: page width (in characters) # default pw=80 (INTEGER) # Purpose: page width in pixels (horizontal) # default px=0 (INTEGER) # Purpose: page length in pixels (vertical) # default py=0 (INTEGER) # Purpose: put queue name in control file # default qq (FLAG on) # Purpose: print queue control file name # default queue_control_file=control.pr (STRING) # Purpose: print queue lock file name # default queue_lock_file=lock.pr (STRING) # Purpose: print queue status file name # default queue_status_file=status.pr (STRING) # Purpose: print queue unspooler pid file name # default queue_unspooler_file=unspooler.pr (STRING) # Purpose: operations allowed to remote host # default remote_support=RMQVC (STRING) # Purpose: remove these -Z options from options list on outgoing or filters # default remove_z=0 (STRING) # Purpose: report server as this value for LPQ status # default report_server_as=0 (STRING) # Purpose: client requires lpd.conf, printcap # default require_configfiles (FLAG on) # Purpose: require default queue to be explicitly set # default require_explicit_q@ (FLAG off) # Purpose: retry on ECONNREFUSED error # default retry_econnrefused (FLAG on) # Purpose: retry making connection even when link is down # default retry_nolink (FLAG on) # Purpose: return short status when specified remotehost # default return_short_status=0 (STRING) # Purpose: set SO_REUSEADDR on outgoing ports # default reuse_addr@ (FLAG off) # Purpose: reverse LPQ status format when specified remotehost # default reverse_lpq_status=0 (STRING) # Purpose: reverse priority order, z-aZ-A, i.e.- A is highest, z is lowest # default reverse_priority_order@ (FLAG off) # Purpose: restrict queue use to members of specified user groups # default rg=0 (STRING) # Purpose: remote-queue machine (hostname) (with rp) # default rm=0 (STRING) # Purpose: routing filter, returns destinations # default router=0 (STRING) # Purpose: remote-queue printer name (with rp) # default rp=0 (STRING) # Purpose: open the printer for reading and writing # default rw@ (FLAG off) # Purpose: additional safe characters to use in control files # default safe_chars=0 (STRING) # Purpose: save job when an error # default save_on_error@ (FLAG off) # Purpose: save job when done # default save_when_done@ (FLAG off) # Purpose: short banner (one line only) # default sb@ (FLAG off) # Purpose: spool directory (only ONE printer per directory!) # default sd=0 (STRING) # Purpose: send block of data, rather than individual files # default send_block_format@ (FLAG off) # Purpose: send data files first, then control file # default send_data_first@ (FLAG off) # Purpose: failure action to take after send_try attempts failed # default send_failure_action=remove (STRING) # Purpose: timeout for read/write lpr IO operatons # default send_job_rw_timeout=6000 (INTEGER) # Purpose: timeout for read/write status or control operatons # default send_query_rw_timeout=30 (INTEGER) # Purpose: numbers of times to try sending job - 0 is infinite # default send_try=3 (INTEGER) # Purpose: sendmail program # default sendmail=/usr/sbin/sendmail -oi -t (STRING) # Purpose: allow mail to user using the sendmail program # default sendmail_to_user (FLAG on) # Purpose: server flag set in printcap entry # default server@ (FLAG off) # Purpose: server temporary file directory # default server_tmp_dir=/tmp (STRING) # Purpose: no form feed separator between job files # default sf (FLAG on) # Purpose: suppress headers and/or banner page # default sh@ (FLAG off) # Purpose: SHELL enviornment variable value for filters # default shell=/bin/sh (STRING) # Purpose: short status length in lines # default short_status_length=3 (INTEGER) # Purpose: set the SO_LINGER socket option # default socket_linger=10 (INTEGER) # Purpose: spool directory permissions # default spool_dir_perms=000700 (INTEGER) # Purpose: spool file permissions # default spool_file_perms=000600 (INTEGER) # Purpose: name of queue that server serves (with sv) # default ss=0 (STRING) # Purpose: stalled job timeout # default stalled_time=120 (INTEGER) # Purpose: stop processing queue on filter abort # default stop_on_abort@ (FLAG off) # Purpose: stty commands to set output line characteristics # default stty=0 (STRING) # Purpose: suspend the OF filter or rerun it # default suspend_of_filter (FLAG on) # Purpose: names of servers for queue (with ss) # default sv=0 (STRING) # Purpose: name of syslog device # default syslog_device=/dev/console (STRING) # Purpose: trailer string to print when queue empties # default tr=0 (STRING) # Purpose: translate outgoing job file formats - similar to tr(1) utility # default translate_format=0 (STRING) # Purpose: translate incoming job file formats - similar to tr(1) utility # default translate_incoming_format=0 (STRING) # Purpose: path for UNIX socket for localhost connections # default unix_socket_path= /var/run/lprng (STRING) # Purpose: read and cache information # default use_info_cache (FLAG on) # Purpose: put queue name in control file # default use_shorthost@ (FLAG off) # Purpose: server user for SUID purposes # default user= lp (STRING) # default /* allow users to use local $HOME/.printcap */@ (FLAG off) # default user_printcap=.printcap (STRING) Did I add the done jobs parm incorrectly??? Jim thank you for your time!!!!! Shane -----Original Message----- From: Van Sickler, Jim [mailto:vansickj-eodc@Kaman.com] Sent: Tuesday, July 16, 2002 5:35 PM To: Samba-L (E-mail) Subject: RE: [Samba] my printers are still paused in Win2k and WinNT 4.0 Shane, Here's a snip from another LPRng user, sthom, having the same problem: ----------------------------------------- Thanks for the help. The version of Lprng that ships with RedHat 7.3 is 3.8.9, but I had to change the default anyway. It was difficult to figure out which file to edit (printcap, printcap.local, lpd.conf, so I tried all of them. It turns out /etc/lpd.conf was the culprit, I added the following after the default: # default done_jobs= 1 (INTEGER) done_jobs=0 ----------------------------------------- Try that, and see if it also works for you... Jim -----Original Message----- From: Shane Drinkwater [mailto:Shane_Drinkwater@pa-ucl.com] Sent: Tuesday, July 16, 2002 1:27 PM To: Van Sickler, Jim Subject: RE: [Samba] my printers are still paused in Win2k and WinNT 4.0 Jim & the samba list First off thanks for looking at this!!!! ... I have the following information the first is using the lpr/lpd print file transfering. 1.) My company has a mix of HP printers from 4m plus to 4500 HP lasers. This error occurs between all of the printers. For testing I choose two HP 4m plus printers for testing.. 2.) Yes, I downloaded the lastest firmware to the netdirect cards using hp download manager. Current firmware levels on both test printers is -->Model J2552B Firmware is A.08.40 3.) I am using the MS clients for the test server. 4.) I have tried to use the direct tcp method of printing and it works great but I still have the same print paused problem. It doesn't seem to matter what method I use to print LPD/direct TCP. # /etc/printcap # # DO NOT EDIT! MANUAL CHANGES WILL BE LOST! # This file is autogenerated by printconf-backend during lpd init. # # Hand edited changes can be put in /etc/printcap.local, and will be included. ############################################################################ ### ## Everything below here is included verbatim from /etc/printcap.local ## ############################################################################ ### # printcap.local # # This file is included by printconf's generated printcap, # and can be used to specify custom hand edited printers. csqlis|This is a test:sd=/var/spool/lpd/csqlis:cm=This is a test:rp=hp:sh:rm=csqlis.pa-ucl.com:done_jobs=0: HPfinley|:sd=/var/spool/lpd/HPfinley:rp=hp:sh:rm=fin-office-laser.pa-ucl.com :done_jobs=0: my smb.conf is as follows..... # This is the main Samba configuration file. You should read the # smb.conf(5) manual page in order to understand the options listed # here. Samba has a huge number of configurable options (perhaps too # many!) most of which are not shown in this example # # Any line which starts with a ; (semi-colon) or a # (hash) # is a comment and is ignored. In this example we will use a # # for commentry and a ; for parts of the config file that you # may wish to enable # # NOTE: Whenever you modify this file you should run the command "testparm" # to check that you have not made any basic syntactic errors. # #======================= Global Settings ====================================[global] smb passwd file = /etc/samba/smbpasswd wins server = 172.27.1.17 printing = lprng lpq command = /usr/bin/lpq -P%p dns proxy = no null passwords = yes encrypt passwords = yes socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 printcap name = /etc/printcap max log size = 0 password server = mercury interfaces = 172.27.1.21/24 writable = yes map to guest = bad user security = server printer admin = nobody workgroup = CSQ server string = Samba Server netbios name = TESTBACKUP log file = /var/log/samba/%m.log load printers = yes public = yes [homes] comment = Home Directories browseable = no writable = yes valid users = %S create mode = 0664 directory mode = 0775 [print$] path = /home/samba/printerdrivers browseable = yes write list = nobody [UCL Repository] path = /home/samba/uclrep comment = Test for NT with share over 12 chars volume = UCL Repository comment = Test -----Original Message----- From: Van Sickler, Jim [mailto:vansickj-eodc@Kaman.com] Sent: Tuesday, July 16, 2002 12:58 PM To: Samba-L (E-mail) Subject: RE: [Samba] my printers are still paused in Win2k and WinNT 4.0 1. What types of HP printers are they? 2. Is the firmware on the JetDirects up to date? 3. Are you using the HP or MS driver for the clients? 4. Are you using ":rp=9100" or ":rp=raw" in printcap? (post your printcap, and we'll look it over) 5. Do you have "guest ok=yes" on the printer entries? 6. Are you using disable spoolss= "yes" or "no"? Jim -----Original Message----- From: Shane Drinkwater [mailto:Shane_Drinkwater@pa-ucl.com] Sent: Tuesday, July 16, 2002 9:54 AM To: samba@lists.samba.org Subject: [Samba] my printers are still paused in Win2k and WinNT 4.0 Hello, It seems that I am in printer hell once again :) I am trying to sort out some printer problems with our UNIX server. The basic problem is this. I have a test server to K.I.S.S the problem. On this server I have defined two queues which are csqlis and HPfinley. csqlis seems to work correctly and displays ready. HPfinley always reads Paused on win2k and NT40 clients. The output of the lpq command is csqlis: [root@localhost etc]# lpq -Pcsqlis Printer: csqlis@localhost 'This is a test' (dest hp@csqlis.pa-ucl.com) Queue: no printable jobs in queue JetDirect lpd: no jobs queued on this port HPfinley [root@localhost etc]# lpq -Phpfinley Printer: HPfinley@localhost (dest hp@fin-office-laser.pa-ucl.com) Queue: no printable jobs in queue JetDirect lpd: no jobs queued on this port [root@localhost etc]# I am running the following revs for software RED HAT 7.3 LPRng 3.8.12 Samba -2.2.5 with the parse_sec_patch I have also added done_jobs=0 to the lpd.conf and printcap and printcap.local files Any help on this isssue would be apprecated. I am stuck with this problem. Considering that the lpq output looks the same to me. Shane -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Van Sickler, Jim
2002-Jul-17 12:23 UTC
[Samba] my printers are still paused in Win2k and WinNT 4.0
> -----Original Message----- > From: Shane Drinkwater [mailto:Shane_Drinkwater@pa-ucl.com] > Sent: Wednesday, July 17, 2002 10:02 AM > To: samba@lists.samba.org > 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 is still there; LPRng knows it's purpose, but samba doesn't...lpq will tell you that there are no printable jobs, but samba sees it as Paused... I'm running OpenBSD, and putting it in lpd.conf didn't fix it for me, either. Putting :done_jobs=0 in the .common section worked for me. Here's a snippet of my /usr/local/etc/printcap: ------------------------------------------------ .common:cm=Common Settings:done_jobs=0:sd=/var/spool/lpd/%P:mx=0:sh:lf=log \ :lpd_force_poll=:lpd_poll_time=30:max_servers_active=0 hp4plus:cm=HP4Plus by Graphics PC:tc=.common:rm=149.158.23.170:rp=9100 ------------------------------------------------ Maybe this will help. Jim
Shane Drinkwater
2002-Jul-17 15:34 UTC
[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 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... 2.) I have switched everything over to tcp 9100 and back again to lpd after testing the done_jobs parm still no fix..... 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 ???? 4.) Is CUPS better for communicating status info with samba? I would hate to switch to CUPS since CUPS looks more complicated. 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). 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.... 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:vansickj-eodc@Kaman.com] 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:Shane_Drinkwater@pa-ucl.com] > Sent: Wednesday, July 17, 2002 10:02 AM > To: samba@lists.samba.org > 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 is still there; LPRng knows it's purpose, but samba doesn't...lpq will tell you that there are no printable jobs, but samba sees it as Paused... I'm running OpenBSD, and putting it in lpd.conf didn't fix it for me, either. Putting :done_jobs=0 in the .common section worked for me. Here's a snippet of my /usr/local/etc/printcap: ------------------------------------------------ .common:cm=Common Settings:done_jobs=0:sd=/var/spool/lpd/%P:mx=0:sh:lf=log \ :lpd_force_poll=:lpd_poll_time=30:max_servers_active=0 hp4plus:cm=HP4Plus by Graphics PC:tc=.common:rm=149.158.23.170:rp=9100 ------------------------------------------------ Maybe this will help. Jim
Van Sickler, Jim
2002-Jul-17 17:17 UTC
[Samba] my printers are still paused in Win2k and WinNT 4.0
Ain't this fun?!? :-(> -----Original Message----- > From: Shane Drinkwater [mailto:Shane_Drinkwater@pa-ucl.com] > Sent: Wednesday, July 17, 2002 3:27 PM > To: samba@lists.samba.org > 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:vansickj-eodc@Kaman.com] > 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:Shane_Drinkwater@pa-ucl.com] > > Sent: Wednesday, July 17, 2002 10:02 AM > > To: samba@lists.samba.org > > 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 is still there; LPRng knows it's purpose, but > samba doesn't...lpq will tell you that there are > no printable jobs, but samba sees it as Paused... > > I'm running OpenBSD, and putting it in lpd.conf didn't > fix it for me, either. Putting :done_jobs=0 in the > .common section worked for me. > > Here's a snippet of my /usr/local/etc/printcap: > ------------------------------------------------ > .common:cm=Common > Settings:done_jobs=0:sd=/var/spool/lpd/%P:mx=0:sh:lf=log \ > :lpd_force_poll=:lpd_poll_time=30:max_servers_active=0 > > hp4plus:cm=HP4Plus by Graphics PC:tc=.common:rm=149.158.23.170:rp=9100 > > ------------------------------------------------ > > Maybe this will help. > > Jim > > -- > To unsubscribe from this list go to the following URL and read the > instructions: http://lists.samba.org/mailman/listinfo/samba >
Shane Drinkwater
2002-Jul-22 14:38 UTC
[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 hp@csq_office_a.pa-ucl.com) 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:vansickj-eodc@Kaman.com] 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:Shane_Drinkwater@pa-ucl.com] > Sent: Wednesday, July 17, 2002 3:27 PM > To: samba@lists.samba.org > 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:vansickj-eodc@Kaman.com] > 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:Shane_Drinkwater@pa-ucl.com] > > Sent: Wednesday, July 17, 2002 10:02 AM > > To: samba@lists.samba.org > > 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 is still there; LPRng knows it's purpose, but > samba doesn't...lpq will tell you that there are > no printable jobs, but samba sees it as Paused... > > I'm running OpenBSD, and putting it in lpd.conf didn't > fix it for me, either. Putting :done_jobs=0 in the > .common section worked for me. > > Here's a snippet of my /usr/local/etc/printcap: > ------------------------------------------------ > .common:cm=Common > Settings:done_jobs=0:sd=/var/spool/lpd/%P:mx=0:sh:lf=log \ > :lpd_force_poll=:lpd_poll_time=30:max_servers_active=0 > > hp4plus:cm=HP4Plus by Graphics PC:tc=.common:rm=149.158.23.170:rp=9100 > > ------------------------------------------------ > > Maybe this will help. > > Jim > > -- > To unsubscribe from this list go to the following URL and read the > instructions: http://lists.samba.org/mailman/listinfo/samba >
SANTOS Alexandre Moutinho
2002-Jul-23 01:29 UTC
[Samba] my printers are still paused in Win2k and WinNT 4.0
I have two more situations regarding this problem that might help: 1. I installed a new printer a gave it the name "HP LaserJet Secretariado". When I tried to print from IE5 and Opera, it showed this: in the Where field, appeared "ecretariado" and not "\\cont02lin01\q-hp4000n. 2. I have a HP Laserjet 6P connected to a JetDirect 10/100. Every time I send a print to this printer, the state changes to Paused when printing and to Ready after the page is printed. Alex -----Original Message----- From: Shane Drinkwater [mailto:Shane_Drinkwater@pa-ucl.com] Sent: segunda-feira, 22 de Julho de 2002 17:51 To: samba@lists.samba.org 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 --> hp@mercylaboffice.pa-ucl.com it puts it on pause... Shane -----Original Message----- From: Shane Drinkwater Sent: Monday, July 22, 2002 11:37 AM To: samba@lists.samba.org 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 hp@csq_office_a.pa-ucl.com) 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:vansickj-eodc@Kaman.com] 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:Shane_Drinkwater@pa-ucl.com] > Sent: Wednesday, July 17, 2002 3:27 PM > To: samba@lists.samba.org > 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:vansickj-eodc@Kaman.com] > 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:Shane_Drinkwater@pa-ucl.com] > > Sent: Wednesday, July 17, 2002 10:02 AM > > To: samba@lists.samba.org > > 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 is still there; LPRng knows it's purpose, but > samba doesn't...lpq will tell you that there are > no printable jobs, but samba sees it as Paused... > > I'm running OpenBSD, and putting it in lpd.conf didn't > fix it for me, either. Putting :done_jobs=0 in the > .common section worked for me. > > Here's a snippet of my /usr/local/etc/printcap: > ------------------------------------------------ > .common:cm=Common > Settings:done_jobs=0:sd=/var/spool/lpd/%P:mx=0:sh:lf=log \ > :lpd_force_poll=:lpd_poll_time=30:max_servers_active=0 > > hp4plus:cm=HP4Plus by Graphics PC:tc=.common:rm=149.158.23.170:rp=9100 > > ------------------------------------------------ > > Maybe this will help. > > Jim > > -- > To unsubscribe from this list go to the following URL and read the > instructions: http://lists.samba.org/mailman/listinfo/samba >-- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Shane Drinkwater
2002-Jul-23 09:58 UTC
[Samba] my printers are still paused in Win2k and WinNT 4.0
Jim, I think I found another bug... I really seem to be in printer hell :(.... I found that windows 2k doesn't update its status "ready" or "paused" when used with samba. Here is what I did... 1.) enable all of the lpr/lpd queues. check em' with lpq... 2.) start samba... 3.) goto my win 2k client. 4.) install the printer.( a hp 5m driver that was uploaded to the samba server from windows) 5.) click on the printer in the "printers" folder on the client. 6.) this is where the fun begins :) login to the samba server and perform a lpc -P%p stop (lpc -Pcsqlis stop) or use windows to pause the printer. Check the status on the linux box to really make sure it is paused. 7.) sing the theme song to jeopardy for 10 secs. 8.) click on the printers to make sure windows updates. The printer still says ready but the "wait time" field is gone... 9.) perform a lpc -Pcsqlis start command. 10.) check it with lpq 11.) in 10 sec the "wait time" will reappear.. hmmm You can do the same thing except start samba with the queue being paused. It will show paused during the testing. The only thing that goes away and comes back is the wait time field. Jim have you seem this before??? Has anyone else ??? Or do I have a retarded computer win2k box??? Shane -----Original Message----- From: Shane Drinkwater [mailto:Shane_Drinkwater@pa-ucl.com] Sent: Monday, July 22, 2002 11:51 AM To: samba@lists.samba.org 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 --> hp@mercylaboffice.pa-ucl.com it puts it on pause... Shane -----Original Message----- From: Shane Drinkwater Sent: Monday, July 22, 2002 11:37 AM To: samba@lists.samba.org 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 hp@csq_office_a.pa-ucl.com) 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:vansickj-eodc@Kaman.com] 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:Shane_Drinkwater@pa-ucl.com] > Sent: Wednesday, July 17, 2002 3:27 PM > To: samba@lists.samba.org > 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:vansickj-eodc@Kaman.com] > 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:Shane_Drinkwater@pa-ucl.com] > > Sent: Wednesday, July 17, 2002 10:02 AM > > To: samba@lists.samba.org > > 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 is still there; LPRng knows it's purpose, but > samba doesn't...lpq will tell you that there are > no printable jobs, but samba sees it as Paused... > > I'm running OpenBSD, and putting it in lpd.conf didn't > fix it for me, either. Putting :done_jobs=0 in the > .common section worked for me. > > Here's a snippet of my /usr/local/etc/printcap: > ------------------------------------------------ > .common:cm=Common > Settings:done_jobs=0:sd=/var/spool/lpd/%P:mx=0:sh:lf=log \ > :lpd_force_poll=:lpd_poll_time=30:max_servers_active=0 > > hp4plus:cm=HP4Plus by Graphics PC:tc=.common:rm=149.158.23.170:rp=9100 > > ------------------------------------------------ > > Maybe this will help. > > Jim > > -- > To unsubscribe from this list go to the following URL and read the > instructions: http://lists.samba.org/mailman/listinfo/samba >-- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba