Scroll to navigation

NMBLOOKUP(1) NMBLOOKUP(1)

NAME

nmblookup - 基於TCP/IP上的NetBIOS客戶用於查詢NetBIOS名字的程式

總覽 SYNOPSIS

nmblookup [-M] [-R] [-S] [-r] [-A] [-h] [-B <broadcast address>] [-U <unicast address>] [-d <debug level>] [-s <smb config file>] [-i <NetBIOS scope>][-T] [-f] {name}

描述 DESCRIPTION

nmblookupSamba(7)套件的一部分。

nmblookup 用於在網路中查詢NetBIOS名字並對映對應的IP地址。使用它可以在一個特殊的IP廣播區域或者機器中直接查詢名字。所有的查詢操作都在UDP上實現。

選項 OPTIONS

透過查詢型別為0x1d的NetBIOS名字 name來搜尋一個主瀏覽器。如果 name 是 "-",那麼它搜尋特殊的名字 __MSBROWSE__。 Please note that in order to use the name "-", you need to make sure "-" isn't parsed as an argument, e.g. use : nmblookup -M -- -

用這個選項在包中指定一個希望得到的二進位制位來進行遞迴查詢。 當向WINS伺服器傳送名字查詢及使用者希望在WINS伺服器上進行名字查詢時可以用這種方法。如果不設定這樣的二進位制遞迴位,則主機上的普通NetBIOS處理程式碼(以廣播方式)將替代它。詳細資料請參見rfc1001和rfc1002。

透過這個選項可以使名字查詢操作返回一個IP地址時,再跟著作節點狀態的查詢操作。節點狀態查詢會返回主機註冊的NetBIOS名字。

用這個選項來試圖並繫結UDP埠137用於傳送和接收UDP資料包。使用這個選項的理由是Windows 95在這方面有一個錯誤:它會忽略請求資料包的原始埠而只回復到UDP埠137(系統傳送和接收包可能並不用137埠)。不幸的情況是在UNIX系統上繫結這個埠需要root許可權。另外,執行nmbd守護程式也應該繫結到這個埠。

用這個選項把name引數解釋成一個IP地址並使用這個地址來作節點狀態查詢。

This option allows you to override the NetBIOS name that Samba uses for itself. This is identical to setting the netbios name parameter in the smb.conf file. However, a command line setting will take precedence over settings in smb.conf.

This specifies a NetBIOS scope that nmblookup 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 very rarely used, only set this parameter if you are the system administrator in charge of all the NetBIOS systems you communicate with.

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).

TCP socket options to set on the client socket. See the socket options parameter in the smb.conf manual page for the list of valid options.

列印幫助(使用方法)資訊。

用給出的廣播地址傳送查詢。如果沒有使用這個選項的話,nmblookup將會把查詢傳送到透過自動檢測或者在smb.conf (5)檔案的interfaces引數定義好的網路介面的廣播地址上。

用這個選項對指定地址或者unicast address主機進行單獨的查詢。查詢一個WINS伺服器需要這樣的引數(還有-R選項)。

輸出程式版本號。

指定的檔案包含伺服器需要的配置細節。檔案資訊包括伺服器特定的資訊,比如使用哪個 printcap檔案;也包括伺服器提供的服務的描述。檢視smb.conf 來獲得更詳細的資訊。預設的配置檔名是在編譯時指定的。

debuglevel 是個從0到10的整數。引數未指定時預設值為0。

這個值越高,將記錄越多關於nmblookup活動的資料。在把除錯級設為0時,只記錄緊急錯誤和嚴重警告。級別一是日常執行時合適的級別 - 它產生小量的執行操作的資訊。

1以上的除錯級將產生相當多的記錄資料,並且只在研究問題時才有用。3以上的除錯級只被設計為讓開發者使用並會產生極大數量的記錄資料,而且其中很多部分非常難以理解。

注意在此使用這個引數將越過在smb.conf (5)檔案中的log level引數。

File name for log/debug files. The extension ".client" will be appended. The log file is never removed by the client.

使用這個選項使得查詢到的ip地址透過DNS反向查詢查出所有的DNS名稱,並將結果輸出到通常的的

IP address .... NetBIOS name

對應關係前面。

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.

這個選項用來指定要查的NetBIOS名字。根據前面已經使用的選項這裡可能出現的形式是一個NetBIOS名或者是IP地址。如果用的是NetBIOS名則可以在名字中加入'#<type>'來指定不同的名字型別。當然也可以用*來代替輸入項,這樣的話會透過廣播區域返回所有已註冊的名字。

範例 EXAMPLES

nmblookup 可被用於查詢WINS伺服器(同樣nslookup用於查詢DNS伺服器)。要查詢WINS伺服器,必須這樣呼叫 nmblookup

nmblookup -U server -R 'name'

例如,執行:

nmblookup -U samba.org -R 'IRIX#1B'

透過這個命令將向WINS伺服器samba.org查詢IRIX工作組中的域主瀏覽器(名字型別為1B)。

版本 VERSION

此手冊頁是針對samba套件版本3.0的。

參見 SEE ALSO

nmbd(8), samba(7), and smb.conf(5).

作者 AUTHOR

samba軟體和相關工具最初由Andrew Tridgell建立。samba現在由Samba Team 作為開源軟體來發展,類似linux核心的開發方式。

最初的samba手冊頁是 Karl Auer寫的。 手冊頁原始碼已經轉換為YODL格式(另一種很好的開源軟體,可以在ftp://ftp.ice.rug.nl/pub/unix找到),由Jeremy Sllison 更新到Samba2.0 版本。 Gerald Carter 在Samba2.2中將它轉化為DocBook 格式。 Alexander Bokovoy 在Samba 3.0中實現了DocBook XML4.2 格式的轉換。

[中文版維護人]

meaculpa <meaculpa@21cn.com>

[中文版最新更新]

2000/12/08

《中國linux論壇man手冊頁翻譯計劃》:

http://cmpp.linuxforum.net

本頁面中文版由中文 man 手冊頁計劃提供。
中文 man 手冊頁計劃:https://github.com/man-pages-zh/manpages-zh