[201] | 1 | .\" Title: findsmb
|
---|
[231] | 2 | .\" Author: [see the "AUTHOR" section]
|
---|
| 3 | .\" Generator: DocBook XSL Stylesheets v1.74.0 <http://docbook.sf.net/>
|
---|
[340] | 4 | .\" Date: 09/30/2009
|
---|
[201] | 5 | .\" Manual: User Commands
|
---|
| 6 | .\" Source: Samba 3.2
|
---|
[231] | 7 | .\" Language: English
|
---|
[201] | 8 | .\"
|
---|
[340] | 9 | .TH "FINDSMB" "1" "09/30/2009" "Samba 3\&.2" "User Commands"
|
---|
[231] | 10 | .\" -----------------------------------------------------------------
|
---|
| 11 | .\" * (re)Define some macros
|
---|
| 12 | .\" -----------------------------------------------------------------
|
---|
| 13 | .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
---|
| 14 | .\" toupper - uppercase a string (locale-aware)
|
---|
| 15 | .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
---|
| 16 | .de toupper
|
---|
| 17 | .tr aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ
|
---|
| 18 | \\$*
|
---|
| 19 | .tr aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz
|
---|
| 20 | ..
|
---|
| 21 | .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
---|
| 22 | .\" SH-xref - format a cross-reference to an SH section
|
---|
| 23 | .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
---|
| 24 | .de SH-xref
|
---|
| 25 | .ie n \{\
|
---|
| 26 | .\}
|
---|
| 27 | .toupper \\$*
|
---|
| 28 | .el \{\
|
---|
| 29 | \\$*
|
---|
| 30 | .\}
|
---|
| 31 | ..
|
---|
| 32 | .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
---|
| 33 | .\" SH - level-one heading that works better for non-TTY output
|
---|
| 34 | .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
---|
| 35 | .de1 SH
|
---|
| 36 | .\" put an extra blank line of space above the head in non-TTY output
|
---|
| 37 | .if t \{\
|
---|
| 38 | .sp 1
|
---|
| 39 | .\}
|
---|
| 40 | .sp \\n[PD]u
|
---|
| 41 | .nr an-level 1
|
---|
| 42 | .set-an-margin
|
---|
| 43 | .nr an-prevailing-indent \\n[IN]
|
---|
| 44 | .fi
|
---|
| 45 | .in \\n[an-margin]u
|
---|
| 46 | .ti 0
|
---|
| 47 | .HTML-TAG ".NH \\n[an-level]"
|
---|
| 48 | .it 1 an-trap
|
---|
| 49 | .nr an-no-space-flag 1
|
---|
| 50 | .nr an-break-flag 1
|
---|
| 51 | \." make the size of the head bigger
|
---|
| 52 | .ps +3
|
---|
| 53 | .ft B
|
---|
| 54 | .ne (2v + 1u)
|
---|
| 55 | .ie n \{\
|
---|
| 56 | .\" if n (TTY output), use uppercase
|
---|
| 57 | .toupper \\$*
|
---|
| 58 | .\}
|
---|
| 59 | .el \{\
|
---|
| 60 | .nr an-break-flag 0
|
---|
| 61 | .\" if not n (not TTY), use normal case (not uppercase)
|
---|
| 62 | \\$1
|
---|
| 63 | .in \\n[an-margin]u
|
---|
| 64 | .ti 0
|
---|
| 65 | .\" if not n (not TTY), put a border/line under subheading
|
---|
| 66 | .sp -.6
|
---|
| 67 | \l'\n(.lu'
|
---|
| 68 | .\}
|
---|
| 69 | ..
|
---|
| 70 | .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
---|
| 71 | .\" SS - level-two heading that works better for non-TTY output
|
---|
| 72 | .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
---|
| 73 | .de1 SS
|
---|
| 74 | .sp \\n[PD]u
|
---|
| 75 | .nr an-level 1
|
---|
| 76 | .set-an-margin
|
---|
| 77 | .nr an-prevailing-indent \\n[IN]
|
---|
| 78 | .fi
|
---|
| 79 | .in \\n[IN]u
|
---|
| 80 | .ti \\n[SN]u
|
---|
| 81 | .it 1 an-trap
|
---|
| 82 | .nr an-no-space-flag 1
|
---|
| 83 | .nr an-break-flag 1
|
---|
| 84 | .ps \\n[PS-SS]u
|
---|
| 85 | \." make the size of the head bigger
|
---|
| 86 | .ps +2
|
---|
| 87 | .ft B
|
---|
| 88 | .ne (2v + 1u)
|
---|
| 89 | .if \\n[.$] \&\\$*
|
---|
| 90 | ..
|
---|
| 91 | .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
---|
| 92 | .\" BB/BE - put background/screen (filled box) around block of text
|
---|
| 93 | .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
---|
| 94 | .de BB
|
---|
| 95 | .if t \{\
|
---|
| 96 | .sp -.5
|
---|
| 97 | .br
|
---|
| 98 | .in +2n
|
---|
| 99 | .ll -2n
|
---|
| 100 | .gcolor red
|
---|
| 101 | .di BX
|
---|
| 102 | .\}
|
---|
| 103 | ..
|
---|
| 104 | .de EB
|
---|
| 105 | .if t \{\
|
---|
| 106 | .if "\\$2"adjust-for-leading-newline" \{\
|
---|
| 107 | .sp -1
|
---|
| 108 | .\}
|
---|
| 109 | .br
|
---|
| 110 | .di
|
---|
| 111 | .in
|
---|
| 112 | .ll
|
---|
| 113 | .gcolor
|
---|
| 114 | .nr BW \\n(.lu-\\n(.i
|
---|
| 115 | .nr BH \\n(dn+.5v
|
---|
| 116 | .ne \\n(BHu+.5v
|
---|
| 117 | .ie "\\$2"adjust-for-leading-newline" \{\
|
---|
| 118 | \M[\\$1]\h'1n'\v'+.5v'\D'P \\n(BWu 0 0 \\n(BHu -\\n(BWu 0 0 -\\n(BHu'\M[]
|
---|
| 119 | .\}
|
---|
| 120 | .el \{\
|
---|
| 121 | \M[\\$1]\h'1n'\v'-.5v'\D'P \\n(BWu 0 0 \\n(BHu -\\n(BWu 0 0 -\\n(BHu'\M[]
|
---|
| 122 | .\}
|
---|
| 123 | .in 0
|
---|
| 124 | .sp -.5v
|
---|
| 125 | .nf
|
---|
| 126 | .BX
|
---|
| 127 | .in
|
---|
| 128 | .sp .5v
|
---|
| 129 | .fi
|
---|
| 130 | .\}
|
---|
| 131 | ..
|
---|
| 132 | .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
---|
| 133 | .\" BM/EM - put colored marker in margin next to block of text
|
---|
| 134 | .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
---|
| 135 | .de BM
|
---|
| 136 | .if t \{\
|
---|
| 137 | .br
|
---|
| 138 | .ll -2n
|
---|
| 139 | .gcolor red
|
---|
| 140 | .di BX
|
---|
| 141 | .\}
|
---|
| 142 | ..
|
---|
| 143 | .de EM
|
---|
| 144 | .if t \{\
|
---|
| 145 | .br
|
---|
| 146 | .di
|
---|
| 147 | .ll
|
---|
| 148 | .gcolor
|
---|
| 149 | .nr BH \\n(dn
|
---|
| 150 | .ne \\n(BHu
|
---|
| 151 | \M[\\$1]\D'P -.75n 0 0 \\n(BHu -(\\n[.i]u - \\n(INu - .75n) 0 0 -\\n(BHu'\M[]
|
---|
| 152 | .in 0
|
---|
| 153 | .nf
|
---|
| 154 | .BX
|
---|
| 155 | .in
|
---|
| 156 | .fi
|
---|
| 157 | .\}
|
---|
| 158 | ..
|
---|
| 159 | .\" -----------------------------------------------------------------
|
---|
| 160 | .\" * set default formatting
|
---|
| 161 | .\" -----------------------------------------------------------------
|
---|
[201] | 162 | .\" disable hyphenation
|
---|
| 163 | .nh
|
---|
| 164 | .\" disable justification (adjust text to left margin only)
|
---|
| 165 | .ad l
|
---|
[231] | 166 | .\" -----------------------------------------------------------------
|
---|
| 167 | .\" * MAIN CONTENT STARTS HERE *
|
---|
| 168 | .\" -----------------------------------------------------------------
|
---|
| 169 | .SH "Name"
|
---|
| 170 | findsmb \- list info about machines that respond to SMB name queries on a subnet
|
---|
| 171 | .SH "Synopsis"
|
---|
| 172 | .fam C
|
---|
| 173 | .HP \w'\ 'u
|
---|
| 174 | \FCfindsmb\F[] [subnet\ broadcast\ address]
|
---|
| 175 | .fam
|
---|
[201] | 176 | .SH "DESCRIPTION"
|
---|
| 177 | .PP
|
---|
| 178 | This perl script is part of the
|
---|
| 179 | \fBsamba\fR(7)
|
---|
[231] | 180 | suite\&.
|
---|
[201] | 181 | .PP
|
---|
[231] | 182 | \FCfindsmb\F[]
|
---|
| 183 | 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
|
---|
[201] | 184 | \fBnmblookup\fR(1)
|
---|
| 185 | and
|
---|
| 186 | \fBsmbclient\fR(1)
|
---|
[231] | 187 | to obtain this information\&.
|
---|
[201] | 188 | .SH "OPTIONS"
|
---|
| 189 | .PP
|
---|
| 190 | \-r
|
---|
| 191 | .RS 4
|
---|
| 192 | Controls whether
|
---|
[231] | 193 | \FCfindsmb\F[]
|
---|
| 194 | 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,
|
---|
[201] | 195 | \fBnmblookup\fR(1)
|
---|
| 196 | will be called with
|
---|
| 197 | \fB\-B\fR
|
---|
[231] | 198 | option\&.
|
---|
[201] | 199 | .RE
|
---|
| 200 | .PP
|
---|
| 201 | subnet broadcast address
|
---|
| 202 | .RS 4
|
---|
| 203 | Without this option,
|
---|
[231] | 204 | \FCfindsmb \F[]
|
---|
[201] | 205 | will probe the subnet of the machine where
|
---|
| 206 | \fBfindsmb\fR(1)
|
---|
[231] | 207 | is run\&. This value is passed to
|
---|
[201] | 208 | \fBnmblookup\fR(1)
|
---|
| 209 | as part of the
|
---|
| 210 | \fB\-B\fR
|
---|
[231] | 211 | option\&.
|
---|
[201] | 212 | .RE
|
---|
| 213 | .SH "EXAMPLES"
|
---|
| 214 | .PP
|
---|
| 215 | The output of
|
---|
[231] | 216 | \FCfindsmb\F[]
|
---|
[201] | 217 | lists the following information for all machines that respond to the initial
|
---|
[231] | 218 | \FCnmblookup\F[]
|
---|
| 219 | for any name: IP address, NetBIOS name, Workgroup name, operating system, and SMB server version\&.
|
---|
[201] | 220 | .PP
|
---|
[231] | 221 | There will be a \'+\' in front of the workgroup name for machines that are local master browsers for that workgroup\&. There will be an \'*\' 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\&.
|
---|
[201] | 222 | .PP
|
---|
| 223 | The command with
|
---|
| 224 | \fB\-r\fR
|
---|
| 225 | option must be run on a system without
|
---|
| 226 | \fBnmbd\fR(8)
|
---|
[231] | 227 | running\&. If
|
---|
| 228 | \FCnmbd\F[]
|
---|
| 229 | 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
|
---|
[201] | 230 | \fB\-r\fR
|
---|
| 231 | option on a machine without
|
---|
[231] | 232 | \FCnmbd\F[]
|
---|
| 233 | running\&.
|
---|
[201] | 234 | .PP
|
---|
| 235 | For example, running
|
---|
[231] | 236 | \FCfindsmb\F[]
|
---|
[201] | 237 | without
|
---|
| 238 | \fB\-r\fR
|
---|
| 239 | option set would yield output similar to the following
|
---|
| 240 | .sp
|
---|
[231] | 241 | .if n \{\
|
---|
[201] | 242 | .RS 4
|
---|
[231] | 243 | .\}
|
---|
| 244 | .fam C
|
---|
| 245 | .ps -1
|
---|
[201] | 246 | .nf
|
---|
[231] | 247 | .if t \{\
|
---|
| 248 | .sp -1
|
---|
| 249 | .\}
|
---|
| 250 | .BB lightgray adjust-for-leading-newline
|
---|
| 251 | .sp -1
|
---|
| 252 |
|
---|
[201] | 253 | IP ADDR NETBIOS NAME WORKGROUP/OS/VERSION
|
---|
| 254 | \-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
|
---|
[231] | 255 | 192\&.168\&.35\&.10 MINESET\-TEST1 [DMVENGR]
|
---|
| 256 | 192\&.168\&.35\&.55 LINUXBOX *[MYGROUP] [Unix] [Samba 2\&.0\&.6]
|
---|
| 257 | 192\&.168\&.35\&.56 HERBNT2 [HERB\-NT]
|
---|
| 258 | 192\&.168\&.35\&.63 GANDALF [MVENGR] [Unix] [Samba 2\&.0\&.5a for IRIX]
|
---|
| 259 | 192\&.168\&.35\&.65 SAUNA [WORKGROUP] [Unix] [Samba 1\&.9\&.18p10]
|
---|
| 260 | 192\&.168\&.35\&.71 FROGSTAR [ENGR] [Unix] [Samba 2\&.0\&.0 for IRIX]
|
---|
| 261 | 192\&.168\&.35\&.78 HERBDHCP1 +[HERB]
|
---|
| 262 | 192\&.168\&.35\&.88 SCNT2 +[MVENGR] [Windows NT 4\&.0] [NT LAN Manager 4\&.0]
|
---|
| 263 | 192\&.168\&.35\&.93 FROGSTAR\-PC [MVENGR] [Windows 5\&.0] [Windows 2000 LAN Manager]
|
---|
| 264 | 192\&.168\&.35\&.97 HERBNT1 *[HERB\-NT] [Windows NT 4\&.0] [NT LAN Manager 4\&.0]
|
---|
| 265 | .EB lightgray adjust-for-leading-newline
|
---|
| 266 | .if t \{\
|
---|
| 267 | .sp 1
|
---|
| 268 | .\}
|
---|
[201] | 269 | .fi
|
---|
[231] | 270 | .fam
|
---|
| 271 | .ps +1
|
---|
| 272 | .if n \{\
|
---|
[201] | 273 | .RE
|
---|
[231] | 274 | .\}
|
---|
[201] | 275 | .SH "VERSION"
|
---|
| 276 | .PP
|
---|
[231] | 277 | This man page is correct for version 3 of the Samba suite\&.
|
---|
[201] | 278 | .SH "SEE ALSO"
|
---|
| 279 | .PP
|
---|
| 280 | \fBnmbd\fR(8),
|
---|
| 281 | \fBsmbclient\fR(1), and
|
---|
| 282 | \fBnmblookup\fR(1)
|
---|
| 283 | .SH "AUTHOR"
|
---|
| 284 | .PP
|
---|
[231] | 285 | 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\&.
|
---|
[201] | 286 | .PP
|
---|
[231] | 287 | 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
|
---|
| 288 | 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\&.
|
---|