.\"Generated by db2man.xsl. Don't modify this, modify the source. .de Sh \" Subsection .br .if t .Sp .ne 5 .PP \fB\\$1\fR .PP .. .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Ip \" List item .br .ie \\n(.$>=3 .ne \\$3 .el .ne 3 .IP "\\$1" \\$2 .. .TH "NMBLOOKUP" 1 "" "" "" .SH NAME nmblookup \- 基於TCP/IP上的NetBIOS客戶用於查詢NetBIOS名字的程序 .SH "總覽 SYNOPSIS" \fBnmblookup\fR [-M] [-R] [-S] [-r] [-A] [-h] [-B ] [-U ] [-d ] [-s ] [-i ][-T] [-f] {name} .SH "描述 DESCRIPTION" .PP .B nmblookup 是 \fBSamba\fR(7)套件的一部分。 .PP \fBnmblookup\fR 用於在網絡中查詢NetBIOS名字並映射對應的IP地址。使用它可以在一個特殊的IP廣播區域或者機器中直接查詢名字。所有的查詢操作都在UDP上實現。 .SH "選項 OPTIONS" .TP -M 通過查找類型爲\fB0x1d\fR的NetBIOS名字 \fIname\fR來搜索一個主瀏覽器。如果 \fI name\fR 是 "-",那麼它搜索特殊的名字 \fB__MSBROWSE__\fR。 Please note that in order to use the name "-", you need to make sure "-" isn't parsed as an argument, e.g. use : \fBnmblookup -M -- -\fR。 .TP -R 用這個選項在包中指定一個希望得到的二進制位來進行遞歸查找。 當向WINS服務器發送名字查詢及用戶希望在WINS服務器上進行名字查詢時可以用這種方法。如果不設定這樣的二進制遞歸位,則主機上的普通NetBIOS處理代碼(以廣播方式)將替代它。詳細資料請參見rfc1001和rfc1002。 .TP -S 通過這個選項可以使名字查詢操作返回一個IP地址時,再跟着作節點狀態的查詢操作。節點狀態查詢會返回主機註冊的NetBIOS名字。 .TP -r 用這個選項來試圖並綁定UDP端口137用於發送和接收UDP數據包。使用這個選項的理由是Windows 95在這方面有一個錯誤:它會忽略請求數據包的原始端口而只回復到UDP端口137(系統發送和接收包可能並不用137端口)。不幸的情況是在UNIX系統上綁定這個端口需要root權限。另外,運行\fBnmbd\fR守護程序也應該綁定到這個端口。 .TP -A 用這個選項把\fIname\fR參數解釋成一個IP地址並使用這個地址來作節點狀態查詢。 .TP -n This option allows you to override the NetBIOS name that Samba uses for itself\&. This is identical to setting the \fInetbios name\fR parameter in the \fIsmb\&.conf\fR file\&. However, a command line setting will take precedence over settings in \fIsmb\&.conf\fR\&. .TP -i This specifies a NetBIOS scope that \fBnmblookup\fR will use to communicate with when generating NetBIOS names\&. For details on the use of NetBIOS scopes, see rfc1001\&.txt and rfc1002\&.txt\&. NetBIOS scopes are \fBvery\fR rarely used, only set this parameter if you are the system administrator in charge of all the NetBIOS systems you communicate with\&. .TP -W|--workgroup=domain Set the SMB domain of the username\&. This overrides the default domain which is the domain defined in smb\&.conf\&. If the domain specified is the same as the servers NetBIOS name, it causes the client to log on using the servers local SAM (as opposed to the Domain SAM)\&. .TP -O socket options TCP socket options to set on the client socket\&. See the socket options parameter in the \fIsmb\&.conf\fR manual page for the list of valid options\&. .TP -h|--help 打印幫助(使用方法)信息。 .TP -B 用給出的廣播地址發送查詢。如果沒有使用這個選項的話,nmblookup將會把查詢發送到通過自動檢測或者在\fBsmb.conf\fR (5)文件的\fIinterfaces\fR參數定義好的網絡接口的廣播地址上。 .TP -U 用這個選項對指定地址或者\fIunicast address\fR主機進行單獨的查詢。查找一個WINS服務器需要這樣的參數(還有\fI-R\fR選項)。 .TP -V 輸出程序版本號。 .TP -s 指定的文件包含服務器需要的配置細節。文件信息包括服務器特定的信息,比如使用哪個 printcap文件;也包括服務器提供的服務的描述。查看\fIsmb.conf\fR 來獲得更詳細的信息。默認的配置文件名是在編譯時指定的。 .TP -d|--debug=debuglevel \fIdebuglevel\fR 是個從0到10的整數。參數未指定時默認值爲0。 這個值越高,將記錄越多關於nmblookup活動的資料。在把調試級設爲0時,只記錄緊急錯誤和嚴重警告。級別一是日常運行時合適的級別 - 它產生小量的執行操作的信息。 1以上的調試級將產生相當多的記錄數據,並且只在研究問題時纔有用。3以上的調試級只被設計爲讓開發者使用並會產生極大數量的記錄數據,而且其中很多部分非常難以理解。 注意在此使用這個參數將越過在\fIsmb.conf\fR (5)文件中的\fIlog level\fR參數。 .TP -l|--logfile=logbasename File name for log/debug files\&. The extension \fB"\&.client"\fR will be appended\&. The log file is never removed by the client\&. .TP -T 使用這個選項使得查找到的ip地址通過DNS反向查詢查出所有的DNS名稱,並將結果輸出到通常的的 \fBIP address \&.\&.\&.\&. NetBIOS name\fR 對應關係前面。 .TP -f Show which flags apply to the name that has been looked up\&. Possible answers are zero or more of: Response, Authoritative, Truncated, Recursion_Desired, Recursion_Available, Broadcast\&. .TP name 這個選項用來指定要查的NetBIOS名字。根據前面已經使用的選項這裏可能出現的形式是一個NetBIOS名或者是IP地址。如果用的是NetBIOS名則可以在名字中加入'#'來指定不同的名字類型。當然也可以用*來代替輸入項,這樣的話會通過廣播區域返回所有已註冊的名字。 .SH "範例 EXAMPLES" .PP \fBnmblookup\fR 可被用於查詢WINS服務器(同樣\fBnslookup\fR用於查詢DNS服務器)。要查詢WINS服務器,必須這樣調用 \fBnmblookup\fR: .PP \fBnmblookup -U server -R 'name'\fR .PP 例如,運行: .PP \fBnmblookup -U samba.org -R 'IRIX#1B'\fR .PP 通過這個命令將向WINS服務器samba.org查詢IRIX工作組中的域主瀏覽器(名字類型爲1B)。 .SH "版本 VERSION" .PP 此手冊頁是針對samba套件版本3.0的。 .SH "參見 SEE ALSO" .PP \fBnmbd\fR(8), \fBsamba\fR(7), and \fBsmb.conf\fR(5)\&. .SH "作者 AUTHOR" .PP samba軟件和相關工具最初由Andrew Tridgell創建。samba現在由Samba Team 作爲開源軟件來發展,類似linux內核的開發方式。 .PP 最初的samba手冊頁是 Karl Auer寫的。 手冊頁源碼已經轉換爲YODL格式(另一種很好的開源軟件,可以在\fIftp://ftp.ice.rug.nl/pub/unix\fR找到),由Jeremy Sllison 更新到Samba2.0 版本。 Gerald Carter 在Samba2.2中將它轉化爲DocBook 格式。 Alexander Bokovoy 在Samba 3.0中實現了DocBook XML4.2 格式的轉換。 .SH "[中文版維護人]" .B meaculpa .SH "[中文版最新更新]" .B 2000/12/08 .SH "《中國linux論壇man手冊頁翻譯計劃》:" .BI http://cmpp.linuxforum.net .SH "跋" .br 本頁面中文版由中文 man 手冊頁計劃提供。 .br 中文 man 手冊頁計劃:\fBhttps://github.com/man-pages-zh/manpages-zh\fR