HP StorageWorks Storage Mirroring application notes Guidelines for networking and failover (T2558-96063, February 2008)
8
SAMPLE_TARGET_HOST
There are seven WINSCL commands that must be scripted to import an LMHOSTS file into a WINS
database. The following example, TARGET.DAT, includes the commands necessary to connect to a WINS
server with an IP address of 10.5.0.11 and import the TARGET_HOST file that is located on the WINS
server.
SAMPLE_TARGET.DAT
For this example, the following command would be placed in the post-failover script to run the TARGET.DAT
script.
SAMPLE_POST_OVER.BAT
The SOURCE.DAT script would be used at failback to import the SOURCE_HOST file.
SAMPLE_SOURCE.DAT
The post-failback script would contain the following command to execute the script:
SAMPLE_POST_BACK.BAT
NOTE: The LMHOSTS files must be located on the WINS server. The WINSCL utility does not actually
import the LMHOSTS. It simply tells the WINS service to import the file. Accordingly, the WINS service
interprets the path to the file (D:\SOURCE_HOST, for example), and the file must be at that location on the
WINS server.
See the Failover chapter of the HP StorageWorks Storage Mirroring user's guide for information on how to
configure failover scripts and the Windows Resource Kit documentation for WINSCL documentation.
10.4.0.4 PRODSVR
1
10.5.0.11
SI
1
D:\SOURCE_HOST
0
EX
WINSCL < D:\SCRIPTS\TARGET.DAT
1
10.5.0.11
SI
1
D:\SOURCE_HOST
0
EX
WINSCL < D:\SCRIPTS\SOURCE.DAT