Link to home
Start Free TrialLog in
Avatar of juanjo_dic
juanjo_dic

asked on

Command to get (SAMBA) WINS SERVER IP

I need to get the IP of the wins server in the samba server. How do I get it on the linux server?

Thanks!
Avatar of Pablo Allietti
Pablo Allietti
Flag of Uruguay image

the easy way? connect a windows XP and run ipconfig /all and check what is the wins server ip. or ask the network administrator
See if the commands "findsmb" and "smbstatus" give you what you need.


harbor235 ;|
Avatar of grsteed
grsteed

Try this command from the /etc/samba directory. (or wherever your smb.conf file is)

testparm -s smb.conf|grep wins

It should list the values you have for the following. (This is from mine, you may have others too)

        wins proxy = No
        wins server =
        wins support = No
        wins hook =

Are you saying you want to put the IP in SAMBA for your WINS server or find out what it's using.

If it's the former, you can add those lines to you smb.conf file with the correct values.

Cheers,

Gary
Avatar of juanjo_dic

ASKER

pablouruguay: I want to get the WINS server IP so I can put it in my XP PC.
harbor235: Thanks but that only gives me the Server IP not the samba WINS Server IP
grsteed: Thanks, but I need to find out what IP it's using the SAMBA WINS server

Help!
Have you tried to use the nbtstat command at the cmd prompt?  Try it with the -? to see all the options.

Gary
ASKER CERTIFIED SOLUTION
Avatar of grsteed
grsteed

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks Gary, its just that some times after a few hours setting up a network my brain colapses (haha!)

Good think we have this site!
Thanks!!  glad I could help!

Gary