.\"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