Nmblookup trouble

andrew morgan morgan at orst.edu
Mon Jul 24 17:13:39 GMT 2000

On Tue, 25 Jul 2000, Mike Brodbelt wrote:

> Hi,
> Some time ago, I wrote a small script based on some information on one
> of the Samba lists, which let me figure out which machine a user was
> logged in on. The script was this:-
> # smbfind: watch for someone to log in
> PATH=/bin:/usr/bin
> case $# in
> 0)      echo 'Usage: smbfind <nt_login>' 1>&2; exit 1
> esac
> nmblookup -S "${1}#03" | awk '/<00> -  /{print $1}'
> This has recently stopped working, and I'm at a loss as to why - node
> status queries seem to simply fail on my network these days. I'm using
> Samba 2.0.7, and I've no idea what changed to stop the script from
> working. I'd appreciate any ideas...

Maybe I'm missing some detail here, but can't you get that information
from the smbstatus program?  Or would your script allow you to do lookups
even if the machine did not have any samba shares mounted?


More information about the samba mailing list