[Samba] Slow Samba Printer initialisation, status, and printing
Joel Hammer
Joel at HammersHome.com
Mon Sep 2 22:28:00 GMT 2002
On Tue, Sep 03, 2002 at 11:27:38AM +1000, Michael Carmody wrote:
> Why would the DNS affect the samba ? Doesn't it use WINS for everything to
> locate machines ?
The short answer is no.
Here is what I have in my smb.conf:
# Global parameters
[global]
name resolve order = lmhosts wins bcast hosts
This means it checks my lmhost file, then the wins server, then broadcasts,
then checks the dns.
Note this output when I give a bogus name to smbclient:
smbclient -L hammer4 -d3
INFO: Debug class all level = 3 (pid 9763 from pid 9763)
added interface ip=192.168.0.2 bcast=192.168.0.255 nmask=255.255.255.0
Client started (version 2.2.2).
resolve_lmhosts: Attempting lmhosts lookup for name hammer4<0x20>
resolve_wins: Attempting wins lookup for name hammer4<0x20>
resolve_wins: WINS server == <192.168.0.6>
bind succeeded on port 0
Negative name query response, rcode 0x03: The name requested does not exist.
name_resolve_bcast: Attempting broadcast lookup for name hammer4<0x20>
bind succeeded on port 0
resolve_hosts: Attempting host lookup for name hammer4<0x20>
Connection to hammer4 failed
Now, this went fast, because hammer4 doesn't exist.
If hammer4 existed, but was offline, there is a 20 second time out delay.
Joel
On Tue, Sep 03, 2002 at 11:27:38AM +1000, Michael Carmody wrote:
> Thanks Joel,
>
> TCP Dump, showed that the server as querying a defunct DNS ip, when the
> machine was taken off the DHCP and manually configured, it is behaving, and
> doing it reasonably fast as well.
>
> Why would the DNS affect the samba ? Doesn't it use WINS for everything to
> locate machines ?
>
> Now though I am getting a constant stream of the same error to the machine
> specific logs, again smb and nmbd logs are showing up nothing, error is as
> follows:
>
> [2002/09/03 11:08:15, 0]
> libsmb/cliconnect.c:attempt_netbios_session_request(1091)
> attempt_netbios_session_request: PC194-70 rejected the session for name
> *SMBSERVER with error Not listening on called name
> [2002/09/03 11:08:15, 0]
> rpc_client/cli_spoolss_notify.c:spoolss_connect_to_client(98)
> connect_to_client: machine PC194-70 rejected the NetBIOS session request.
>
> Machine 194-70 is my WinXP machine, why would the samba server be trying to
> establish a netbios session to it ?
> I have enabled Netbios over TCP for my WinXP machine, and it has the WINS
> server entered in the WINS field.
>
> The wins.dat on the samba WINS server (not the problem machine), contains
> this line for pc194-70:
> "PC194-70#00" 1031316178 128.250.194.70 64R
>
> And no others.
>
> Any clues as to what it causing the extraneous vomit in my logs ?
>
> -Michael
>
> smb.conf is at bottom of original email
>
>
> At 08:37 AM 2/09/2002 -0400, Joel Hammer wrote:
> >This sort of delay is usually a network problem or validation trouble.
> >Have you looked in both the nmbd and the smbd logs?
> >Have you looked at tcpdump during this delay?
> >Joel
> >
> >
> >
> >
> >
> >On Mon, Sep 02, 2002 at 04:29:36PM +1000, Michael Carmody wrote:
> > >
> > > OK, I have been wrestling with this for two weeks now, so somebody please
> > > help !
> > >
> > > We have an existing Samba Print Server, running RedHat linux, kernel
> > > 2.2.19, that runs fine, but is a P133 with 64 mb ram. So we built a new
> > PC,
> > > the slowest thing we could buy, a duron 1 ghz with 512 mb RAM. Old printer
> > > server is running Samba 2.2.5, new printer server is running samba 2.2.5,
> > > and Slackware 8.1, kernel 2.4.18. Both are using lprng as print spooler.
> > > Old is currently a WINS server, the new is pointing at the old smb
> > WINS Server
> > >
> > > File browsing and creation is quick, easy and no problems. Printing takes
> > > nearly 30 seconds to open, and another 10 seconds to initialise, and the
> > > print jobs take forever to come up. It is functional, but very slow. The
> > > new print server runs rapidly with no problems, printing/initialisation
> > and
> > > file browsing. In the machine specific logs I get the following error
> > > message repeated two or three times before it does actually connect:
> > >
> > > [2002/09/02 16:16:16, 0]
> > > rpc_client/cli_spoolss_notify.c:spoolss_connect_to_client(79)
> > > connect_to_client: Can't resolve address for PC194-70
> > >
> > > There is nothing in the smbd or nmbd logs, they remain empty, except for
> > > server restarts, and then this error message appears in the nmbd log:
> > >
> > > [2002/09/02 16:11:35, 0]
> > > nmbd/nmbd_responserecordsdb.c:find_response_record(235)
> > > find_response_record: response packet id 31803 received with no
> > matching
> > > record.
> > >
> > > But this only shows when server is started.
> > >
> > > The initial browse to host and open also takes a fair while (~10secs), are
> > > these delays normal ? Is there something I've configure wrong ?
> > > Any all help appreciated.
> > >
> > > checkpc produces no errors, and lprng directly from the server to the
> > > printers takes neglible time (less than 3 secs to printer receiving data).
> > >
> > > smb.conf follows:
> > >
> > > # Global parameters
> > > [global]
> > > workgroup = MDU
> > > server string = New MDU Print Server
> > > security = SERVER
> > > encrypt passwords = Yes
> > > password server = pv-mdu-server1 pv-mdu-server2
> > > log file = /usr/local/samba/var/log.%m
> > > max log size = 50
> > > socket options = IPTOS_LOWDELAY TCP_NODELAY SO_SNDBUF=4096
> > > SO_RCVBUF=4096
> > > preferred master = False
> > > local master = No
> > > domain master = False
> > > dns proxy = No
> > > wins server = 128.250.194.14
> > > printer admin = root, +ntadmin, johnm, michaelc
> > > printing = lprng
> > >
> > > [Test]
> > > comment = Temp Files
> > > path = /tmp
> > > read only = No
> > >
> > > [lp1]
> > > comment = HP5si Epi
> > > path = /usr/local/samba/spool
> > > printable = Yes
> > > print command = /usr/bin/lpr -U%U@%M -P %p -r %s
> > > lpq command = /usr/bin/lpq -U%U@%M -P %p
> > > lprm command = /usr/bin/lprm -Uroot -P %p %j
> > > printer name = lp1
> > >
> > > [print$]
> > > path = /usr/local/samba/printers
> > > write list = root, michaelc, johnm
> > >
> > > [Print Room 4m+]
> > > comment = Print Room Laserjet 4MPlus
> > > path = /usr/local/samba/spool
> > > printable = Yes
> > > print command = /usr/bin/lpr -U%U@%M -P %p -r %s
> > > lpq command = /usr/bin/lpq -U%U@%M -P %p
> > > lprm command = /usr/bin/lprm -Uroot -P %p %j
> > > printer name = lp4
> > >
> > > [hp8000]
> > > comment = Reception Printer
> > > path = /usr/local/samba/spool
> > > printable = Yes
> > > print command = /usr/bin/lpr -U%U@%M -P %p -r %s
> > > lpq command = /usr/bin/lpq -U%U@%M -P %p
> > > lprm command = /usr/bin/lprm -Uroot -P %p %j
> > > printer name = lp5
> > >
> > > [Foods HP4000]
> > > comment = Foods HP4000
> > > path = /usr/local/samba/spool
> > > printable = Yes
> > > print command = /usr/bin/lpr -U%U@%M -P %p -r %s
> > > lpq command = /usr/bin/lpq -U%U@%M -P %p
> > > lprm command = /usr/bin/lprm -Uroot -P %p %j
> > > printer name = lp2
> > >
> > > [Molecular 4M+]
> > > comment = Molecular 4M+
> > > path = /usr/local/samba/spool
> > > printable = Yes
> > > print command = /usr/bin/lpr -U%U@%M -P %p -r %s
> > > lpq command = /usr/bin/lpq -U%U@%M -P %p
> > > lprm command = /usr/bin/lprm -Uroot -P %p %j
> > > printer name = lp3
> > >
> > > my printcap is as follows:
> > >
> > > HP5siEpi | lp1 :\
> > > :server:\
> > > :sd=/home/mdu-print/printers/lp1:\
> > > :filter=/usr/libexec/filters/ifhp:\
> > > :mx=0:\
> > > :ifhp=model=hp5simx:\
> > > :lp=128.250.194.58%9100:
> > >
> > > HP4kNFoods | lp2
> > > :sd=/home/mdu-print/printers/lp2
> > > :server
> > > :mx=0
> > > :lp=128.250.194.54%9100
> > > :ifhp=model=hp4000
> > > :filter=/usr/libexec/filters/ifhp
> > >
> > > HP4MPMol | lp3
> > > :sd=/home/mdu-print/printers/lp3
> > > :server
> > > :mx=0
> > > :lp=128.250.194.55%9100
> > > :ifhp=model=hp4mplus
> > > :filter=/usr/libexec/filters/ifhp
> > >
> > > HP4MPPrint | lp4
> > > :sd=/home/mdu-print/printers/lp4
> > > :server
> > > :mx=0
> > > :lp=128.250.194.56%9100
> > > :ifhp=model=hp4mplus
> > > :filter=/usr/libexec/filters/ifhp
> > >
> > > HP8kNRecep | lp5
> > > :sd=/home/mdu-print/printers/lp5
> > > :server
> > > :mx=0
> > > :lp=128.250.194.57%9100
> > > :ifhp=model=hp8000
> > > :filter=/usr/libexec/filters/ifhp
> > >
> > >
> > >
> > >
> > > Michael Carmody
> > > MDU, Public Health Lab
> > > Dept. of Microbiology and Immunology
> > > The University of Melbourne, Parkville
> > >
> > > --
> > > To unsubscribe from this list go to the following URL and read the
> > > instructions: http://lists.samba.org/mailman/listinfo/samba
>
> Michael Carmody
> MDU, Public Health Lab
> Dept. of Microbiology and Immunology
> The University of Melbourne, Parkville
More information about the samba
mailing list