[Samba] Re: WINS server looses election irregular in a heterogeneous network

Timo Meinen timomeinen at googlemail.com
Mon Jun 23 07:42:22 GMT 2008


Dear Giulio,

thank you for the script. I will use it to "solve" my problem. I
searched for a command, which restarts an election.

Although it's not really a good solution, it is much better than my
cron-samba-restart.

Best regards,
Timo

> Same issue.
>
>  I put the following in cron:
>
>  #!/bin/sh
>  PATH=/usr/bin:/usr/sbin:/bin:/sbin
>  nmblookup -M -- - 2>&1 | grep  "IP address of my samba server"  >/dev/null 2>&1
>  if [ $? != 0 ]; then
>         nmblookup -M -- -|mail -s "Force master browser election" "my email"
>         /usr/bin/smbcontrol nmbd force-election
>  fi
>
>  The smbcontrol command has the same effect as restarting samba
>  (election is won).
>
>  Then I tell the person using the PC I see in the email to turn off the
>  "browser" service in his/her XP to avoid the same issue in the future.
>
>
>
>
>  --
>  giulioo at pobox.com
>
> --
>  To unsubscribe from this list go to the following URL and read the
>  instructions:  https://lists.samba.org/mailman/listinfo/samba
>


-- 
Glück Auf
Timo


More information about the samba mailing list