...making Linux just a little more fun!
Petr Vavrinec [Petr.Vavrinec at seznam.cz]
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--------------------------------------------------------------------
Martin J Hooper [martinjh at blueyonder.co.uk]
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!
[pf at frailediaz.e.telefonica.net]
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.
Petr Vavrinec [Petr.Vavrinec at seznam.cz]
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