Tux

...making Linux just a little more fun!

NT description

Petr Vavrinec [Petr.Vavrinec at seznam.cz]


Tue, 08 Apr 2008 08:10:54 +0200 (CEST)

Allmighty TAG,

How can I find out NetBIOS name and "NT description" (or "server string" in Samba terminology) of a windows box, knowing its IP address ?

"nmblookup -A <win_ip_address>" gives me the NetBIOS name. That's OK.

But the "server string" - I'm not able to find it anywhere :-( Can you help me? Any info is greatly appreciated.

TIA, Petr

-- 
 Petr Vavrinec                       E-Mail: petr.vavrinec@seznam.cz
 Vysice 8, 388 01 Blatna, CZECHIA    Voice :          +420 383490147
--------------------------------------------------------------------


Top    Back


Martin J Hooper [martinjh at blueyonder.co.uk]


Tue, 08 Apr 2008 07:21:14 +0100

Petr.Vavrinec wrote:

> Allmighty TAG,
> 
> How can I find out NetBIOS name and "NT description" (or "server string" in
> Samba terminology) of a windows box, knowing its IP address ?
> 
> "nmblookup -A <win_ip_address>" gives me the NetBIOS name. That's OK.
> 
> But the "server string" - I'm not able to find it anywhere :-(
> Can you help me? Any info is greatly appreciated.
> 
> TIA,
> Petr
> 

smbtree will give you all the servers and what they share and their descriptions.

HOOPER
         \\JESSICA                       Samba 3.0.28a
         \\JESSICA\IPC$                  IPC Service (Samba 3.0.28a)
         \\JESSICA\www_root              Apache Document Root
         \\JESSICA\martin                Martins Home Directory

This will show all the servers on the network it can connect to. Not sure how to do it for certain IP addresses though but could be better than nothing!


Top    Back


[pf at frailediaz.e.telefonica.net]


Tue, 8 Apr 2008 19:43:19 +0200

El Tue, 08 Apr 2008 08:10:54 +0200 (CEST) Petr.Vavrinec <Petr.Vavrinec@seznam.cz> escribió:

> Allmighty TAG,
> 
> How can I find out NetBIOS name and "NT description" (or "server
> string" in Samba terminology) of a windows box, knowing its IP
> address ?
> 
> "nmblookup -A <win_ip_address>" gives me the NetBIOS name. That's OK.
> 
> But the "server string" - I'm not able to find it anywhere :-(
> Can you help me? Any info is greatly appreciated.
> 
> TIA,
> Petr
> 

Hi Petr,

I think

$ smbclient -L //<win_ip_address>

will give you what you want. For instance (with some other things):

Domain=[SOMEDOMAIN] OS=[Unix] Server=[Samba 3.0.26a]

It is the part after 'Server=' you are looking for, right?

Best regards,

Pedro.


Top    Back


Petr Vavrinec [Petr.Vavrinec at seznam.cz]


Wed, 09 Apr 2008 13:14:55 +0200 (CEST)

pf@frailediaz.e.telefonica.net wrote:

> El Tue, 08 Apr 2008 08:10:54 +0200 (CEST)
> Hi Petr,
>
> I think
> $ smbclient -L //<win_ip_address>
>
> will give you what you want. For instance (with some other things):
>
> Domain=[SOMEDOMAIN] OS=[Unix] Server=[Samba 3.0.26a]
>
> It is the part after 'Server=' you are looking for, right?

Hola Pedro,

thanx for your help. It looks, that your proposition doesn't work in our setup - the "Server" part looks like the description of the domain master, not the queried box. What works for me is:

  smbtree -U <my_username>%<my_password> -S | grep <NetBIOS_name>

<NetBIOS_name> I get like this:

  nmblookup -A <win_ip_address>

Have a nice day,

Petr


Top    Back