Dear Ladies and Gentlemens,
i have a problem, the nmblookup command have an error, but the smbclient
command have no error.
See example.
Can you please help me.
rzs12:/opt/samba/bin># ./nmblookup -d 10 pc8686
Initialising global parameters
params.c:pm_process() - Processing configuration file
"/opt/samba/lib/smb.conf"
Processing section "[global]"
doing parameter workgroup = FMG
doing parameter netbios name = coibflow
handle_netbios_name: set global_myname to: COIBFLOW
doing parameter interfaces = 134.247.6.55
doing parameter bind interfaces only = Yes
doing parameter lock directory = /bflow2/samba/log/locks
doing parameter protocol = NT1
doing parameter server string = Sun Cluster
doing parameter security = server
doing parameter password server = nts1, nts2, nts3, nts4
doing parameter wins server = 134.247.134.21, 134.247.14.80
wins_srv_load_list(): Building WINS server list:
134.247.134.21,
134.247.14.80,
2 WINS servers listed.
doing parameter dns proxy = no
doing parameter name resolve order = wins host bcast
doing parameter load printers = no
doing parameter domain master = no
doing parameter local master = no
doing parameter domain logons = no
doing parameter encrypt passwords = yes
doing parameter wins support = no
doing parameter os level = 0
doing parameter add user script = /bflow2/samba/bin/adduser %u
doing parameter delete user script = /bflow2/samba/bin/deluser %u
doing parameter log file = /bflow2/samba/log/log.%I
pm_process() returned Yes
lp_servicenumber: couldn't find homes
set_server_role: ROLE_DOMAIN_MEMBER
added interface ip=134.247.6.55 bcast=134.247.255.255 nmask=255.255.0.0
bind succeeded on port 0
socket option SO_KEEPALIVE = 0
socket option SO_REUSEADDR = 4
socket option SO_BROADCAST = 32
Could not test socket option TCP_NODELAY.
socket option IPTOS_LOWDELAY = 0
socket option IPTOS_THROUGHPUT = 0
socket option SO_SNDBUF = 8192
socket option SO_RCVBUF = 8192
Could not test socket option SO_SNDLOWAT.
Could not test socket option SO_RCVLOWAT.
Could not test socket option SO_SNDTIMEO.
Could not test socket option SO_RCVTIMEO.
Socket opened.
querying pc8686 on 134.247.255.255
Sending a packet of len 50 to (134.247.255.255) on port 137
Sending a packet of len 50 to (134.247.255.255) on port 137
Sending a packet of len 50 to (134.247.255.255) on port 137
name_query failed to find name pc8686
rzs12:/opt/samba/bin># ./smbclient -L pc8686 -U setzenss
added interface ip=134.247.6.55 bcast=134.247.255.255 nmask=255.255.0.0
Got a positive name query response from 134.247.14.80 ( 134.247.142.204 )
Password: 
Domain=[FMG] OS=[Windows NT 4.0] Server=[NT LAN Manager 4.0]
        Sharename      Type      Comment
       ---------              ----         -------
        ADMIN$         Disk      Remote-Admin
        IPC$              IPC       Remote-IPC
        C$                 Disk      Standardfreigabe
Server               Comment
---------              -------
Workgroup         Master
---------               -------
_______________
Stefan Setzensack              
Flughafen M?nchen GmbH                            
Postfach 
85326 M?nchen  
E-Mail:    stefan.setzensack@munich-airport.de (gesch?ftlich)
               setzensack@t-online.de (privat)
Internet: www.munich-airport.de
Tel. +49 89 975 32328 
Fax +49 89 975 32306
There are differences in how nmbd and smbclient look up other computers. For example, look in your smb.conf. Here is what I have in mind: [global] name resolve order = wins bcast hosts lmhosts hosts is the DNS server and lmhosts is the lmhost file on your linux box. So, smbclient will try all of these before it gives up. I am very vague on the details, but perhaps nmbd is failing because there is no nmbd daemon running on the target machine? nmbd does not consult all these other resources for finding a host, methinks. Your nmbd fails after making one query. smbclient will try all the above resources before giving up. It might be nice to compare a debug output with smbclient, and see how smbclient finds the other host.> querying pc8686 on 134.247.255.255 > Sending a packet of len 50 to (134.247.255.255) on port 137 > Sending a packet of len 50 to (134.247.255.255) on port 137 > Sending a packet of len 50 to (134.247.255.255) on port 137 > name_query failed to find name pc8686Joel On Tue, Apr 01, 2003 at 05:38:48PM +0200, Setzensack Stefan wrote:> Dear Ladies and Gentlemens, > > i have a problem, the nmblookup command have an error, but the smbclient > command have no error. > See example. > Can you please help me. >