Op wo 15-09-2004, om 23:44 schreef Robert S:

> I have just installed woody on a server at work.  My home machine has
> samba3+gentoo and has a "findsmb" command which lists PCs connected to the
> network.  I use it in a php script to allow users to send popup messages to
> connected machines.
> 
> Is there an equivalent command in woody, or has somebody out there created
> one?

According to the man page, findsmb is just a perl script. You could copy
it over from the other system, and try if it works. The manual also says
the script calls nmblookup and smbclient, when the script doesn't work
you could use those on the command line too.

The Samba that comes with Woody is OK but not the latest, but I think
that copying findsmb might work. Haven't tried it myself though.

> This is the outut that findsmb gives me at home:
> 
> $ findsmb
> 
>                                 *=DMB
>                                 +=LMB
> IP ADDR         NETBIOS NAME     WORKGROUP/OS/VERSION
> ---------------------------------------------------------------------
> 192.168.2.20    ATHLON         [ATHLON] [Windows 5.1] [Windows 2000 LAN
> Manager]
> 192.168.2.24    PETER          [HOME] [Windows 5.0] [Windows 2000 LAN
> Manager]
> 192.168.2.40    BASEMENT      +[HOME] [Unix] [Samba 3.0.5]

Now look what have you done, please don't try that on the Internet :) :)

BTW I also like nbtscan from
<http://www.inetcat.org/software/nbtscan.html>. It has several output
options that are quite useful in scripts.


-- 
Olav <[EMAIL PROTECTED]>


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to