1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>findsmb</title><link rel="stylesheet" href="samba.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.61.2"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="refentry" lang="en"><a name="findsmb.1"></a><div class="titlepage"><div></div><div></div></div><div class="refnamediv"><h2>Name</h2><p>findsmb &#8212; list info about machines that respond to SMB 
2	name queries on a subnet</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="cmdsynopsis"><p><tt class="command">findsmb</tt>  [subnet broadcast address]</p></div></div><div class="refsect1" lang="en"><h2>DESCRIPTION</h2><p>This perl script is part of the <a href="Samba.7.html"><span class="citerefentry"><span class="refentrytitle">Samba</span>(7)</span></a>
3	suite.</p><p><b class="command">findsmb</b> is a perl script that
4	prints out several pieces of information about machines 
5	on a subnet that respond to SMB  name query requests.
6	It uses <a href="nmblookup.1.html"><span class="citerefentry"><span class="refentrytitle">nmblookup</span>(1)</span></a>
7	and <a href="smbclient.1.html"><span class="citerefentry"><span class="refentrytitle">smbclient</span>(1)</span></a>
8	to obtain this information.
9	</p></div><div class="refsect1" lang="en"><h2>OPTIONS</h2><div class="variablelist"><dl><dt><span class="term">-r</span></dt><dd><p>Controls whether <b class="command">findsmb</b> takes
10		bugs in Windows95 into account when trying to find a Netbios name
11		registered of the remote machine. This option is disabled by default
12		because it is specific to Windows 95 and Windows 95 machines only. 
13		If set, <a href="nmblookup.1.html"><span class="citerefentry"><span class="refentrytitle">nmblookup</span>(1)</span></a>
14		will be called with <tt class="constant">-B</tt> option.</p></dd><dt><span class="term">subnet broadcast address</span></dt><dd><p>Without this option, <b class="command">findsmb
15		</b> will probe the subnet of the machine where 
16		<a href="findsmb.1.html"><span class="citerefentry"><span class="refentrytitle">findsmb</span>(1)</span></a>
17		is run. This value is passed to 
18		<a href="nmblookup.1.html"><span class="citerefentry"><span class="refentrytitle">nmblookup</span>(1)</span></a>
19		as part of the <tt class="constant">-B</tt> option.</p></dd></dl></div></div><div class="refsect1" lang="en"><h2>EXAMPLES</h2><p>The output of <b class="command">findsmb</b> lists the following 
20	information for all machines that respond to the initial 
21	<b class="command">nmblookup</b> for any name: IP address, NetBIOS name, 
22	Workgroup name, operating system, and SMB server version.</p><p>There will be a '+' in front of the workgroup name for 
23	machines that are local master browsers for that workgroup. There 
24	will be an '*' in front of the workgroup name for 
25	machines that are the domain master browser for that workgroup. 
26	Machines that are running Windows, Windows 95 or Windows 98 will 
27	not show any information about the operating system or server 
28	version.</p><p>The command with <tt class="constant">-r</tt> option
29	must be run on a system without <a href="nmbd.8.html"><span class="citerefentry"><span class="refentrytitle">nmbd</span>(8)</span></a>	running. 
30
31	If <b class="command">nmbd</b> is running on the system, you will 
32	only  get the IP address and the DNS name of the machine. To 
33	get proper responses  from Windows 95 and Windows 98 machines, 
34	the command must be run as root and with <tt class="constant">-r</tt>
35	option on a machine without <b class="command">nmbd</b> running.</p><p>For example, running <b class="command">findsmb</b> 
36	without <tt class="constant">-r</tt> option set would yield output similar
37	to the following</p><pre class="screen">
38IP ADDR         NETBIOS NAME   WORKGROUP/OS/VERSION 
39--------------------------------------------------------------------- 
40192.168.35.10   MINESET-TEST1  [DMVENGR]
41192.168.35.55   LINUXBOX      *[MYGROUP] [Unix] [Samba 2.0.6]
42192.168.35.56   HERBNT2        [HERB-NT]
43192.168.35.63   GANDALF        [MVENGR] [Unix] [Samba 2.0.5a for IRIX]
44192.168.35.65   SAUNA          [WORKGROUP] [Unix] [Samba 1.9.18p10]
45192.168.35.71   FROGSTAR       [ENGR] [Unix] [Samba 2.0.0 for IRIX]
46192.168.35.78   HERBDHCP1     +[HERB]
47192.168.35.88   SCNT2         +[MVENGR] [Windows NT 4.0] [NT LAN Manager 4.0]
48192.168.35.93   FROGSTAR-PC    [MVENGR] [Windows 5.0] [Windows 2000 LAN Manager]
49192.168.35.97   HERBNT1       *[HERB-NT] [Windows NT 4.0] [NT LAN Manager 4.0]
50</pre></div><div class="refsect1" lang="en"><h2>VERSION</h2><p>This man page is correct for version 3.0 of 
51	the Samba suite.</p></div><div class="refsect1" lang="en"><h2>SEE ALSO</h2><p><a href="nmbd.8.html"><span class="citerefentry"><span class="refentrytitle">nmbd</span>(8)</span></a>,
52	<a href="smbclient.1.html"><span class="citerefentry"><span class="refentrytitle">smbclient</span>(1)</span></a>, and <a href="nmblookup.1.html"><span class="citerefentry"><span class="refentrytitle">nmblookup</span>(1)</span></a>
53	</p></div><div class="refsect1" lang="en"><h2>AUTHOR</h2><p>The original Samba software and related utilities 
54	were created by Andrew Tridgell. Samba is now developed
55	by the Samba Team as an Open Source project similar 
56	to the way the Linux kernel is developed.</p><p>The original Samba man pages were written by Karl Auer. 
57	The man page sources were converted to YODL format (another 
58	excellent piece of Open Source software, available at <a href="ftp://ftp.icce.rug.nl/pub/unix/" target="_top">ftp://ftp.icce.rug.nl/pub/unix/</a>) 
59	and updated for the Samba 2.0 release by Jeremy Allison.  The conversion to DocBook for 
60	Samba 2.2 was done by Gerald Carter. The conversion to DocBook
61	XML 4.2 for Samba 3.0 was done by Alexander Bokovoy.</p></div></div></body></html>
62