[Samba] how to check IP addresses of machines in the network?

Thomas M. Skeren III tms3 at fskklaw.com
Tue Jan 18 12:04:45 GMT 2005


Daniel Wilson wrote:

> try the tool that comes with samba (findsmb)?!
>
> Tomasz Chmielewski wrote:
>
>> Hello,
>>
>> This post is similar to what I posted yesterday '"smbclient -L host" 
>> to list IP addresses - possible?'.
>>
>> I have a PDC in one place and many workstations in different other 
>> places connected using WAN/VPN.
>>
>> These workstations have rather changing IPs assigned by DHCP.
>>
>> Sometimes I need to connect to these machines using VNC, for example, 
>> connect to machine AC-PC001 to show something to the user or fix 
>> something when a user is not there.
>>
>> However, smbclient -L pdc gives me only netbios names, and not IP 
>> addresses:
>
use smbstatus:
PRiSM# smbstatus

Samba version 3.0.7
PID     Username      Group         Machine
-------------------------------------------------------------------
16082   xxx         xxxx         sm           (192.168.65.1)
14557   xxxxx      xxxx         thejudge     (192.168.64.190)
 

>>
>> $ smbclient -L pdc
>> (...)
>>         Server               Comment
>>         ---------            -------
>>         AC-PC001
>>         AC-PC002
>>
>> How can I list workstations with their netbios names and 
>> corresponding IP addresses?
>>
>>
>> Tomek
>
>
>




More information about the samba mailing list