1 <?xml version="1.0" encoding="iso8859-1"?>
2 <!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
3 "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd" [
5 <!ENTITY % globalentities SYSTEM './../global.ent'> %globalentities;
7 <refentry id="findsmb.1">
10 <refentrytitle>findsmb</refentrytitle>
11 <manvolnum>1</manvolnum>
16 <refname>findsmb</refname>
17 <refpurpose>list info about machines that respond to SMB
18 name queries on a subnet</refpurpose>
23 <command>findsmb</command>
24 <arg choice="opt">subnet broadcast address</arg>
29 <title>DESCRIPTION</title>
31 <para>This perl script is part of the <citerefentry>
32 <refentrytitle>Samba</refentrytitle><manvolnum>7</manvolnum></citerefentry>
35 <para><command>findsmb</command> is a perl script that
36 prints out several pieces of information about machines
37 on a subnet that respond to SMB name query requests.
38 It uses <citerefentry><refentrytitle>nmblookup</refentrytitle><manvolnum>1</manvolnum></citerefentry>
39 and <citerefentry><refentrytitle>smbclient</refentrytitle><manvolnum>1</manvolnum></citerefentry>
40 to obtain this information.
45 <title>OPTIONS</title>
50 <listitem><para>Controls whether <command>findsmb</command> takes
51 bugs in Windows95 into account when trying to find a Netbios name
52 registered of the remote machine. This option is disabled by default
53 because it is specific to Windows 95 and Windows 95 machines only.
54 If set, <citerefentry><refentrytitle>nmblookup</refentrytitle><manvolnum>1</manvolnum></citerefentry>
55 will be called with <constant>-B</constant> option.</para></listitem>
58 <term>subnet broadcast address</term>
59 <listitem><para>Without this option, <command>findsmb
60 </command> will probe the subnet of the machine where
61 <citerefentry><refentrytitle>findsmb</refentrytitle><manvolnum>1</manvolnum></citerefentry>
62 is run. This value is passed to
63 <citerefentry><refentrytitle>nmblookup</refentrytitle><manvolnum>1</manvolnum></citerefentry>
64 as part of the <constant>-B</constant> option.</para></listitem>
70 <title>EXAMPLES</title>
72 <para>The output of <command>findsmb</command> lists the following
73 information for all machines that respond to the initial
74 <command>nmblookup</command> for any name: IP address, NetBIOS name,
75 Workgroup name, operating system, and SMB server version.</para>
77 <para>There will be a '+' in front of the workgroup name for
78 machines that are local master browsers for that workgroup. There
79 will be an '*' in front of the workgroup name for
80 machines that are the domain master browser for that workgroup.
81 Machines that are running Windows, Windows 95 or Windows 98 will
82 not show any information about the operating system or server
85 <para>The command with <constant>-r</constant> option
86 must be run on a system without <citerefentry>
87 <refentrytitle>nmbd</refentrytitle><manvolnum>8</manvolnum>
88 </citerefentry> running.
90 If <command>nmbd</command> is running on the system, you will
91 only get the IP address and the DNS name of the machine. To
92 get proper responses from Windows 95 and Windows 98 machines,
93 the command must be run as root and with <constant>-r</constant>
94 option on a machine without <command>nmbd</command> running.</para>
96 <para>For example, running <command>findsmb</command>
97 without <constant>-r</constant> option set would yield output similar
98 to the following</para>
101 IP ADDR NETBIOS NAME WORKGROUP/OS/VERSION
102 ---------------------------------------------------------------------
103 192.168.35.10 MINESET-TEST1 [DMVENGR]
104 192.168.35.55 LINUXBOX *[MYGROUP] [Unix] [Samba 2.0.6]
105 192.168.35.56 HERBNT2 [HERB-NT]
106 192.168.35.63 GANDALF [MVENGR] [Unix] [Samba 2.0.5a for IRIX]
107 192.168.35.65 SAUNA [WORKGROUP] [Unix] [Samba 1.9.18p10]
108 192.168.35.71 FROGSTAR [ENGR] [Unix] [Samba 2.0.0 for IRIX]
109 192.168.35.78 HERBDHCP1 +[HERB]
110 192.168.35.88 SCNT2 +[MVENGR] [Windows NT 4.0] [NT LAN Manager 4.0]
111 192.168.35.93 FROGSTAR-PC [MVENGR] [Windows 5.0] [Windows 2000 LAN Manager]
112 192.168.35.97 HERBNT1 *[HERB-NT] [Windows NT 4.0] [NT LAN Manager 4.0]
119 <title>VERSION</title>
121 <para>This man page is correct for version 3.0 of
122 the Samba suite.</para>
126 <title>SEE ALSO</title>
128 <refentrytitle>nmbd</refentrytitle><manvolnum>8</manvolnum>
130 <citerefentry><refentrytitle>smbclient</refentrytitle><manvolnum>1</manvolnum>
131 </citerefentry>, and <citerefentry><refentrytitle>nmblookup</refentrytitle>
132 <manvolnum>1</manvolnum></citerefentry>
137 <title>AUTHOR</title>
139 <para>The original Samba software and related utilities
140 were created by Andrew Tridgell. Samba is now developed
141 by the Samba Team as an Open Source project similar
142 to the way the Linux kernel is developed.</para>
144 <para>The original Samba man pages were written by Karl Auer.
145 The man page sources were converted to YODL format (another
146 excellent piece of Open Source software, available at <ulink
147 url="ftp://ftp.icce.rug.nl/pub/unix/">ftp://ftp.icce.rug.nl/pub/unix/</ulink>)
148 and updated for the Samba 2.0 release by Jeremy Allison. The conversion to DocBook for
149 Samba 2.2 was done by Gerald Carter. The conversion to DocBook
150 XML 4.2 for Samba 3.0 was done by Alexander Bokovoy.</para>