| 1 | '\" t
|
|---|
| 2 | .\" Title: findsmb
|
|---|
| 3 | .\" Author: [see the "AUTHOR" section]
|
|---|
| 4 | .\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/>
|
|---|
| 5 | .\" Date: 09/18/2013
|
|---|
| 6 | .\" Manual: User Commands
|
|---|
| 7 | .\" Source: Samba 3.6
|
|---|
| 8 | .\" Language: English
|
|---|
| 9 | .\"
|
|---|
| 10 | .TH "FINDSMB" "1" "09/18/2013" "Samba 3\&.6" "User Commands"
|
|---|
| 11 | .\" -----------------------------------------------------------------
|
|---|
| 12 | .\" * Define some portability stuff
|
|---|
| 13 | .\" -----------------------------------------------------------------
|
|---|
| 14 | .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|---|
| 15 | .\" http://bugs.debian.org/507673
|
|---|
| 16 | .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
|
|---|
| 17 | .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|---|
| 18 | .ie \n(.g .ds Aq \(aq
|
|---|
| 19 | .el .ds Aq '
|
|---|
| 20 | .\" -----------------------------------------------------------------
|
|---|
| 21 | .\" * set default formatting
|
|---|
| 22 | .\" -----------------------------------------------------------------
|
|---|
| 23 | .\" disable hyphenation
|
|---|
| 24 | .nh
|
|---|
| 25 | .\" disable justification (adjust text to left margin only)
|
|---|
| 26 | .ad l
|
|---|
| 27 | .\" -----------------------------------------------------------------
|
|---|
| 28 | .\" * MAIN CONTENT STARTS HERE *
|
|---|
| 29 | .\" -----------------------------------------------------------------
|
|---|
| 30 | .SH "NAME"
|
|---|
| 31 | findsmb \- list info about machines that respond to SMB name queries on a subnet
|
|---|
| 32 | .SH "SYNOPSIS"
|
|---|
| 33 | .HP \w'\ 'u
|
|---|
| 34 | findsmb [subnet\ broadcast\ address]
|
|---|
| 35 | .SH "DESCRIPTION"
|
|---|
| 36 | .PP
|
|---|
| 37 | This perl script is part of the
|
|---|
| 38 | \fBsamba\fR(7)
|
|---|
| 39 | suite\&.
|
|---|
| 40 | .PP
|
|---|
| 41 | findsmb
|
|---|
| 42 | is a perl script that prints out several pieces of information about machines on a subnet that respond to SMB name query requests\&. It uses
|
|---|
| 43 | \fBnmblookup\fR(1)
|
|---|
| 44 | and
|
|---|
| 45 | \fBsmbclient\fR(1)
|
|---|
| 46 | to obtain this information\&.
|
|---|
| 47 | .SH "OPTIONS"
|
|---|
| 48 | .PP
|
|---|
| 49 | \-r
|
|---|
| 50 | .RS 4
|
|---|
| 51 | Controls whether
|
|---|
| 52 | findsmb
|
|---|
| 53 | takes bugs in Windows95 into account when trying to find a Netbios name registered of the remote machine\&. This option is disabled by default because it is specific to Windows 95 and Windows 95 machines only\&. If set,
|
|---|
| 54 | \fBnmblookup\fR(1)
|
|---|
| 55 | will be called with
|
|---|
| 56 | \fB\-B\fR
|
|---|
| 57 | option\&.
|
|---|
| 58 | .RE
|
|---|
| 59 | .PP
|
|---|
| 60 | subnet broadcast address
|
|---|
| 61 | .RS 4
|
|---|
| 62 | Without this option,
|
|---|
| 63 | findsmb
|
|---|
| 64 | will probe the subnet of the machine where
|
|---|
| 65 | \fBfindsmb\fR(1)
|
|---|
| 66 | is run\&. This value is passed to
|
|---|
| 67 | \fBnmblookup\fR(1)
|
|---|
| 68 | as part of the
|
|---|
| 69 | \fB\-B\fR
|
|---|
| 70 | option\&.
|
|---|
| 71 | .RE
|
|---|
| 72 | .SH "EXAMPLES"
|
|---|
| 73 | .PP
|
|---|
| 74 | The output of
|
|---|
| 75 | findsmb
|
|---|
| 76 | lists the following information for all machines that respond to the initial
|
|---|
| 77 | nmblookup
|
|---|
| 78 | for any name: IP address, NetBIOS name, Workgroup name, operating system, and SMB server version\&.
|
|---|
| 79 | .PP
|
|---|
| 80 | There will be a \*(Aq+\*(Aq in front of the workgroup name for machines that are local master browsers for that workgroup\&. There will be an \*(Aq*\*(Aq in front of the workgroup name for machines that are the domain master browser for that workgroup\&. Machines that are running Windows for Workgroups, Windows 95 or Windows 98 will not show any information about the operating system or server version\&.
|
|---|
| 81 | .PP
|
|---|
| 82 | The command with
|
|---|
| 83 | \fB\-r\fR
|
|---|
| 84 | option must be run on a system without
|
|---|
| 85 | \fBnmbd\fR(8)
|
|---|
| 86 | running\&. If
|
|---|
| 87 | nmbd
|
|---|
| 88 | is running on the system, you will only get the IP address and the DNS name of the machine\&. To get proper responses from Windows 95 and Windows 98 machines, the command must be run as root and with
|
|---|
| 89 | \fB\-r\fR
|
|---|
| 90 | option on a machine without
|
|---|
| 91 | nmbd
|
|---|
| 92 | running\&.
|
|---|
| 93 | .PP
|
|---|
| 94 | For example, running
|
|---|
| 95 | findsmb
|
|---|
| 96 | without
|
|---|
| 97 | \fB\-r\fR
|
|---|
| 98 | option set would yield output similar to the following
|
|---|
| 99 | .sp
|
|---|
| 100 | .if n \{\
|
|---|
| 101 | .RS 4
|
|---|
| 102 | .\}
|
|---|
| 103 | .nf
|
|---|
| 104 | IP ADDR NETBIOS NAME WORKGROUP/OS/VERSION
|
|---|
| 105 | \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
|
|---|
| 106 | 192\&.168\&.35\&.10 MINESET\-TEST1 [DMVENGR]
|
|---|
| 107 | 192\&.168\&.35\&.55 LINUXBOX *[MYGROUP] [Unix] [Samba 2\&.0\&.6]
|
|---|
| 108 | 192\&.168\&.35\&.56 HERBNT2 [HERB\-NT]
|
|---|
| 109 | 192\&.168\&.35\&.63 GANDALF [MVENGR] [Unix] [Samba 2\&.0\&.5a for IRIX]
|
|---|
| 110 | 192\&.168\&.35\&.65 SAUNA [WORKGROUP] [Unix] [Samba 1\&.9\&.18p10]
|
|---|
| 111 | 192\&.168\&.35\&.71 FROGSTAR [ENGR] [Unix] [Samba 2\&.0\&.0 for IRIX]
|
|---|
| 112 | 192\&.168\&.35\&.78 HERBDHCP1 +[HERB]
|
|---|
| 113 | 192\&.168\&.35\&.88 SCNT2 +[MVENGR] [Windows NT 4\&.0] [NT LAN Manager 4\&.0]
|
|---|
| 114 | 192\&.168\&.35\&.93 FROGSTAR\-PC [MVENGR] [Windows 5\&.0] [Windows 2000 LAN Manager]
|
|---|
| 115 | 192\&.168\&.35\&.97 HERBNT1 *[HERB\-NT] [Windows NT 4\&.0] [NT LAN Manager 4\&.0]
|
|---|
| 116 | .fi
|
|---|
| 117 | .if n \{\
|
|---|
| 118 | .RE
|
|---|
| 119 | .\}
|
|---|
| 120 | .SH "VERSION"
|
|---|
| 121 | .PP
|
|---|
| 122 | This man page is correct for version 3 of the Samba suite\&.
|
|---|
| 123 | .SH "SEE ALSO"
|
|---|
| 124 | .PP
|
|---|
| 125 | \fBnmbd\fR(8),
|
|---|
| 126 | \fBsmbclient\fR(1), and
|
|---|
| 127 | \fBnmblookup\fR(1)
|
|---|
| 128 | .SH "AUTHOR"
|
|---|
| 129 | .PP
|
|---|
| 130 | The original Samba software and related utilities were created by Andrew Tridgell\&. Samba is now developed by the Samba Team as an Open Source project similar to the way the Linux kernel is developed\&.
|
|---|
| 131 | .PP
|
|---|
| 132 | The original Samba man pages were written by Karl Auer\&. The man page sources were converted to YODL format (another excellent piece of Open Source software, available at
|
|---|
| 133 | ftp://ftp\&.icce\&.rug\&.nl/pub/unix/) and updated for the Samba 2\&.0 release by Jeremy Allison\&. The conversion to DocBook for Samba 2\&.2 was done by Gerald Carter\&. The conversion to DocBook XML 4\&.2 for Samba 3\&.0 was done by Alexander Bokovoy\&.
|
|---|