Linux Phrasebook

nmblookup -T

You can use nmblookup as a quick way to find any machines that are sharing files and printers via Samba. Append the -T option to the command, followed by " * " (and yes, you must include the quotation marks to tell the shell that you're not using the * as a wildcard representing the files in your current working directory).

$ nmblookup -T " * " querying * on 192.168.1.255 192.168.1.151 *<00> 192.168.1.104 *<00> 192.168.1.10 *<00>

Three machines are on this LAN with Samba shares. To find out which of those are Master Browsers, see the previous section; to produce a list of the shares offered by each computer, proceed to the next section.

Категории