[Samba] how to check IP addresses of machines in the network?
mangoo at interia.pl
Tue Jan 18 12:57:11 GMT 2005
Thomas M. Skeren III wrote:
>>> use smbstatus:
>>> PRiSM# smbstatus
>> This will list workstations that are currently connected to Samba
>> server; if the workstation is not connected to Samba, it won't be
>> shown with smbstatus.
>> So this method is not good for me.
> I thought you had a PDC. If so then when users log on, they will create
> an smb connection to the PDC.
Yes, I have a PDC, but also BDCs. PDC is somewhere else behind WAN/VPN.
So if users connect, they connect to the BDC in their respective office.
But even then I think smbstatus will show nothing some time after they
are logged in, and certainly won't show anything if they are logged out.
smbclient -L PDC, however, will show all the machines in all offices
(but without IP addresses).
More information about the samba