Gordon Ross wrote:
>>> You mentioned that you have a WINS server, right?
>> Yes, the Samba nmbd server.
> OK, so just verify that nmbd is running.
It is:
$ ps ax | grep nmbd
433 ? S 0:41 /usr/sfw/sbin/nmbd -D
9103 pts/10 S 0:00 grep nmbd
>>> You could try adding this: nbns=IP_ADDR i.e.
>>> sharectl set -p section=default -p nbns=IP_ADDR smbfs
>> Literally "IP_ADDR"? Or an actual IP address?
> I meant an actual IP address. I think a name works too.
>
>> What does this do?
> That tells the client what WINS to use.
Ok, I did that. It doesn't seem to have made any difference.
I tried both a hostname and an IP address.
>>> Otherwise, look into why nothing answered the NetBIOS
>>> name lookup broadcast requests.
>> How would I do that? Are there some debugging options I can enable
>> in nmbd?
> You can try these: (see /usr/sfw/sbin/nmbd --help)
> --debuglevel=9
smbcontrol says:
# smbcontrol nmbd debuglevel
Processing section "[printers]"
Processing section "[lexmark]"
Processing section "[home]"
Processing section "[shannon]"
Processing section "[wine]"
Processing section "[backup]"
Processing section "[backup2]"
Processing section "[download]"
Processing section "[pictures]"
Processing section "[ndatsun]"
fcntl_lock: lock failed at offset 0 count 1 op 34 type 1 (Resource temporarily
unavailable)
Registered MSG_REQ_POOL_USAGE
Registered MSG_REQ_DMALLOC_MARK and LOG_CHANGED
PID 433: all:3 tdb:3 printdrivers:3 lanman:3 smb:3 rpc_parse:3 rpc_srv:3
rpc_cli:3 passdb:3 sam:3 auth:3 winbind:3 vfs:3 idmap:3 quota:3 acls:3
locking:3
msdfs:3 dmapi:3
Looking at /var/samba/log/log.nmbd, it's definitely getting some
debug output. The weird thing is, despite everything happening
on my home network, I've got no output in that file since Dec 6.
The end of the log file says:
[2008/12/06 13:43:28, 3] nmbd/nmbd_incomingrequests.c:(454)
process_name_query_request: Name query from 192.168.0.103 on subnet
192.168.0.
2 for name NISSAN<20>
[2008/12/06 13:43:28, 3] nmbd/nmbd_incomingrequests.c:(569)
OK
[2008/12/06 13:43:28, 3] nmbd/nmbd_sendannounce.c:(208)
send_host_announcement: type 819a03 for host NISSAN on subnet 192.168.0.2 for
workgroup WORKGROUP
[2008/12/06 13:45:32, 2] nmbd/nmbd_elections.c:(108)
check_for_master_browser_fail: Forcing election on workgroup WORKGROUP subnet
192.168.0.2
[2008/12/06 13:45:32, 3] nmbd/nmbd_elections.c:(366)
check_elections: >>> Starting election for workgroup WORKGROUP on subnet
192.1
68.0.2 <<<
[2008/12/06 13:45:43, 2] nmbd/nmbd_elections.c:(41)
send_election_dgram: Sending election packet for workgroup WORKGROUP on
subnet
192.168.0.2
[2008/12/06 13:45:45, 2] nmbd/nmbd_elections.c:(41)
send_election_dgram: Sending election packet for workgroup WORKGROUP on
subnet
192.168.0.2
[2008/12/06 13:45:47, 2] nmbd/nmbd_elections.c:(41)
send_election_dgram: Sending election packet for workgroup WORKGROUP on
subnet
192.168.0.2
[2008/12/06 13:45:49, 2] nmbd/nmbd_elections.c:(41)
send_election_dgram: Sending election packet for workgroup WORKGROUP on
subnet
192.168.0.2
[2008/12/06 13:45:51, 2] nmbd/nmbd_elections.c:(41)
Setting the debug level to 9 using smbcontrol still produced no
output to the log file.
Restarting nmbd produced debug output.
Now when I use smbutil, I get this in the log file:
[2008/12/12 14:20:50, 3] nmbd/nmbd_incomingrequests.c:(454)
process_name_query_request: Name query from 192.168.0.2 on subnet
UNICAST_SUBNET for name rosalind<20>
[2008/12/12 14:20:51, 3] nmbd/nmbd_incomingrequests.c:(454)
process_name_query_request: Name query from 192.168.0.2 on subnet
UNICAST_SUBNET for name rosalind<20>
[2008/12/12 14:20:52, 3] nmbd/nmbd_incomingrequests.c:(454)
process_name_query_request: Name query from 192.168.0.2 on subnet
192.168.0.2
for name rosalind<20>
[2008/12/12 14:20:52, 3] nmbd/nmbd_incomingrequests.c:(454)
process_name_query_request: Name query from 192.168.0.2 on subnet
UNICAST_SUBNET for name rosalind<20>
[2008/12/12 14:20:53, 3] nmbd/nmbd_incomingrequests.c:(454)
process_name_query_request: Name query from 192.168.0.2 on subnet
192.168.0.2
for name rosalind<20>
[2008/12/12 14:20:53, 3] nmbd/nmbd_incomingrequests.c:(454)
process_name_query_request: Name query from 192.168.0.2 on subnet
UNICAST_SUBNET for name rosalind<20>
[2008/12/12 14:20:54, 3] nmbd/nmbd_incomingrequests.c:(454)
process_name_query_request: Name query from 192.168.0.2 on subnet
192.168.0.2
for name rosalind<20>
[2008/12/12 14:20:54, 3] nmbd/nmbd_incomingrequests.c:(454)
process_name_query_request: Name query from 192.168.0.2 on subnet
UNICAST_SUBNET for name rosalind<20>
Still smbutil doesn't work.
snoop still isn't giving me any output. I think it's the interaction
with punchin. (I'm running all the above tests with punchin active.)
What next?
_______________________________________________
cifs-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/cifs-discuss