How To Update WINS Server Details Following a Switchover or Failover

Follow

Summary

This Knowledgebase article provides information on how to update WINS using the Neverfail Heartbeat scripts.


More Information

Neverfail Heartbeat can be configured to automatically update WINS by editing the Neverfail Heartbeat Scripts in the location "%installdir%\Neverfail\R2\Scripts\%ApplicationName%".

Procedure

Neverfail Heartbeat V5.2.2 and Earlier

In the Neverfail Heartbeat Scripts, syntax similar to the following can be used:

Primary server:

Echo NFCMD doExecuteAsUser administrator heartbeatdemo "netsh wins server
10.1.1.10 delete name Name=ServerName EndChar=00" Exchange start
Echo NFCMD doExecuteAsUser administrator heartbeatdemo "netsh wins server
10.1.1.10 delete name Name=ServerName EndChar=20" Exchange start

Echo NFCMD doExecuteAsUser administrator heartbeatdemo "netsh wins server
10.1.1.10 add name Name=ServerName EndChar=00 IP={10.1.1.12}" Exchange start
Echo NFCMD doExecuteAsUser administrator heartbeatdemo "netsh wins server
10.1.1.10 add name Name=ServerName EndChar=20 IP={10.1.1.12}" Exchange start

Secondary server:

Echo NFCMD doExecuteAsUser administrator heartbeatdemo "netsh wins server
10.1.1.10 delete name Name=ServerName EndChar=00" Exchange start
Echo NFCMD doExecuteAsUser administrator heartbeatdemo "netsh wins server
10.1.1.10 delete name Name=ServerName EndChar=20" Exchange start

Echo NFCMD doExecuteAsUser administrator heartbeatdemo "netsh wins server
10.1.1.10 add name Name=ServerName EndChar=00 IP={10.1.1.13}" Exchange start
Echo NFCMD doExecuteAsUser administrator heartbeatdemo "netsh wins server
10.1.1.10 add name Name=ServerName EndChar=20 IP={10.1.1.13}" Exchange start

Neverfail Heartbeat V5.3 and Later

  1. Create two .cmd script files consisting of the following:

    WINSUpdate-Primary.cmd

    REM WINSUpdate-Delete1
    "netsh wins server <Production Sites WINS Server IP> delete name Name=<ServerName> End Char=00"
    REM WINSUpdate-Delete2
    "netsh wins server <Production Sites WINS Server IP> delete name Name=<ServerName> End Char=20"
    REM WINSUpdate-Add1
    "netsh wins server <Production Sites WINS Server IP> add name Name=<ServerName> End Char=00 IP={Primary’s Principal IP Address }"
    REM WINSUpdate-Add2
    "netsh wins server <Production Sites WINS Server IP> add name Name=<ServerName> End Char=20 IP={Primary’s Principal IP Address }"

    WINSUpdate-Secondary.cmd

    REM WINSUpdate-Delete1
    "netsh wins server <DR Sites WINS Server IP> delete name Name=<ServerName> End Char=00"
    REM  WINSUpdate-Delete2
    "netsh wins server <DR Sites WINS Server IP> delete name Name=<ServerName> End Char=20"
    REM WINSUpdate-Add1
    "netsh wins server <DR Sites WINS Server IP> add name Name=<ServerName> End Char=00 IP={Secondary’s Principal IP Address}"
    REM WINSUpdate-Add2
    "netsh wins server <DR Sites WINS Server IP> add name Name=<ServerName> End Char=20 IP={Secondary’s Principal IP Address}"
  2. Create a Network Configuration task using the Neverfail Heartbeat Management Client to run the <WINSUpdate_Server>.cmd scripts using the procedure below:
    1. Launch the Neverfail Heartbeat Management Client.
    2. Click on the Application button.
    3. Select the 'Tasks' tab.
    4. Click on the User Accounts button.
    5. Click the Add button.
    6. Enter the credentials for an account with rights to update the WINS server (a member of the Administrators or Server Operators group on the target server).
    7. Click Ok , and then Close .
    8. Click the Add button to add a new task.
    9. Provide a descriptive name for the 'Task' (i.e. WINSUpdate (Primary) or WINSUpdate (Secondary)).
    10. Select 'Network Configuration' for Task type.
    11. Select either 'Primary' or 'Secondary' for the server the task should run on as appropriate.
    12. In the Command field, enter the path to the WINSUpdate-Primary.cmd file.
    13. In the 'Run As' field select the appropriate user account with permissions to update the WINS from the drop down and then click Ok .
    14. Repeat the task configuration procedure for the WINSUpdate-Secondary.cmd file.

Microsoft Knowledge Base references:

Example from Microsoft Knowledge Base
http://technet2.microsoft.com/WindowsServer/en/library/6c8cac27-f85a-4db3-ac8b-bc8737062e871033.mspx?mfr=true

Usage Syntax
http://technet2.microsoft.com/WindowsServer/en/library/bcb6c150-7fe0-4918-a32a-514a5559639e1033.mspx?mfr=true


Applies To

All Versions


Related Information

None

KBID-895

0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.