Looking up NetBIOS names
jeannie at mitre.org
Tue Sep 14 13:55:03 GMT 1999
Take a peek in the samba distribution for findsmb (it's a perl script in
the linux distrs). That will get you off and running.
For the name:
nmbclient -A <ip>
Look for the <00> field for the name
For more info:
smbclient -N -L <netbiosname> -I <ip> -U%
One thing to note: if you are doing the name queries on the same system
that's running nmbd, you won't resolve any win95 names. You have to go
to another system that's NOT running nmbd.
And, if your target system is turned off, you probably can't do the
ip->name conversion. (I have a job cronned on a non-samba server that
captures names for just that occasion.)
> Date: Mon, 13 Sep 1999 01:36:34 -0400
> From: "Jim B" <vader at conflict.net>
> To: <samba at samba.org>
> Subject: Looking up NetBIOS names
> Message-ID: <004b01befda9$f3cf44e0$0a01a8c0 at tiac.net>
> MIME-Version: 1.0
> Content-Type: text/plain;
> Content-Transfer-Encoding: 7bit
> Is it possible to ask a machine for its NetBIOS name if it's running either
> Windows or Samba?
> I tried a few various nmblookup and smbclient command lines to no avail. I
> would like to be able to query a machine (by IP) and have it respond with
> its nb name.
> I've noted that if I perform an smbclient -L -I on a machine, it will not
> list its shares unless I get the NetBIOS name correct... which is why I'm
> looking for a way to find its name.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 216 bytes
Desc: Card for Jean Henchey
Url : http://lists.samba.org/archive/samba/attachments/19990914/54a4b0f2/jeannie.vcf
More information about the samba