System information
82 Deploying Samba on IBM Eserver BladeCenter
--------- -------
DUMMYBRANCH M23BK62W
FCD90020 FCR0A307
FSCLAN T22ROEHM
LINUX PORTAL1
MILKYWAY SATURN
PK_NW MSGTRX01
RAL400 AS4ACONSOLE
SCNF TAMAS02
WORKGROUP M23BK60L
WTRNTDM 78-BA897
5.1.3 Checking WINS
Checking the WINS server from the Samba server is done with the nmblookup command. The
nmbd daemon can be queried for the special Samba server string by executing the
command:
nmblookup -B localhost __SAMBA__
The output will look similar to Example 5-5 if the nmbd daemon is responding to requests.
Example 5-5 Query local for Samba servers
[root@portal1 root]# nmblookup -B localhost __SAMBA__
querying __SAMBA__ on 127.0.0.1
9.24.105.99 __SAMBA__<00>
All the Samba servers on the network will be listed by executing the command:
nmblookup __SAMBA__
Verify that the server is a member of the LINUX workgroup by executing the command:
nmblookup -B localhost LINUX
The output will look similar to Example 5-6 if it is a member of the workgroup.
Example 5-6 Query local for members of LINUX workgroup
[root@portal1 root]# nmblookup -B localhost LINUX
querying LINUX on 127.0.0.1
9.24.105.99 LINUX<00>
All the members of the LINUX workgroup on the local network will be seen by executing the
command:
nmblookup LINUX
Example 5-7 shows all members of the LINUX workgroup on the local network.
Example 5-7 All members of LINUX workgroup
[root@portal1 samba]# nmblookup LINUX
querying LINUX on 9.24.105.255
9.24.105.99 LINUX<00>
9.24.104.129 LINUX<00>
Note: The localhost address is being used as the broadcast address so the command will
only receive a response from the local nmbd daemon.