nmblookup problems
David Collier-Brown
davecb at canada.sun.com
Wed May 10 15:54:57 GMT 2000
Ron Alexander wrote:
>
> Can anyone tell me what is happening here?
>
> ready 11:28:41
> nmblookup -B 255.255.255.255 -d 2 '*'
> added interface ip=134.111.220.160 bcast=134.111.220.255 nmask=255.255.255.0
> added interface ip=127.0.0.1 bcast=127.0.0.255 nmask=255.255.255.0
> gethostname got swslem12
> socket 7 bound to addr:port 0.0.0.0:0
> Socket 7 opened for port 0.
> querying * on 255.255.255.255
> FD 7 is set before select
> Num FDS ready=1, errno=0 ()
> FD 7 is set after select
> Got a positive name query response from 134.111.57.12 ( 134.111.220.160 )
> FD 7 is set before select
> Num FDS ready=0, errno=1081 (Timeout period has expired.)
> FD 7 is set after select
>
> At this point it waits forever!
Off the top of my pointy head, sounds like
a problem in the select/socket code...
Do you have a call-tracer like truss or strace? It should
give you something like
$ truss -d nmblookup -B 255.255.255.255 -d 2 '*'
Base time stamp: 957973997.9864 [ Wed May 10 11:53:17 EDT 2000 ]
0.0000 execve("/export/local/samba/bin/nmblookup", 0xFFBEF3AC,
0xFFBEF3C8) argc = 6
0.0555 stat("/export/local/samba/bin/nmblookup", 0xFFBEF0F8) = 0
0.0617 open("/var/ld/ld.config", O_RDONLY) Err#2 ENOENT
0.0621 open("/usr/lib/libsec.so.1", O_RDONLY) = 3
0.0623 fstat(3, 0xFFBEEED4) = 0
...
If so we can compare mine with yours.
--dave
--
David Collier-Brown, | Always do right. This will gratify some people
185 Ellerslie Ave., | and astonish the rest. -- Mark Twain
Willowdale, Ontario | //www.oreilly.com/catalog/samba/author.html
Work: (905) 415-2849 Home: (416) 223-8968 Email: davecb at canada.sun.com
More information about the samba-technical
mailing list