Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

89 lines
3.5 KiB

  1. FRSCONFIG -- Tool to create FRS replica sets from a script. 7/16/2001
  2. The first step is to install perl from the WIN2K resource Kit on the computer
  3. where you will run the tools.
  4. Required components:
  5. genbchoff.mrs -- Generic hub-spoke branch office input script file
  6. maziak.srv -- An example server input file
  7. maziak.prl -- generated perl script from input script
  8. maziak.txt -- The replica set creation file produced from running the perl script
  9. frsconfig.cmd -- FRS configuration program that takes the input script file
  10. (maziak.mrs in the example) and produces the generated perl script (maziak.prl)
  11. Type frsconfig with no arguments to get help.
  12. frsobjsup.pm -- A support module used by both frsconfig and the generated perl scripts.
  13. frsinstall.cmd -- FRS replica set installation tool that takes the output file maziak.txt produced by
  14. the generated perl script (maziak.prl) in this example and creates the
  15. necessary objects in the DS. Type frsinstall with no args to get help.
  16. mkdsoe.exe -- A support tool used by frsinstall.cmd to create objects in the DS.
  17. mkdsxe.exe -- A support tool used by frsinstall.cmd to create objects in the DS.
  18. To run the tools:
  19. 1. Create a server input script. See the .srv file above for an example.
  20. 2. Compile the server input script with the branch office script to produce the
  21. generated perl script.
  22. frsconfig [options] -DSERVERS=maziak.srv genbchoff.mrs > maziak.prl
  23. frsobjsup.pm must be in the same dir where you run frsconfig.
  24. 3. Run the generated perl script with appropriate input paramters to generate the
  25. replica set creation file.
  26. perl [options] maziak.prl > maziak.txt
  27. frsobjsup.pm must be in the same dir where you run execute the generated perl script.
  28. Use the "-?" option to output the generic help message from the support module.
  29. See frsconfig help for how you can add your own help output from within your script.
  30. 4. Install the replica set configuration in the DS.
  31. frsinstall maziak.txt > maziak-install.log
  32. mkdsoe.exe and mkdsxe.exe must be in your path so frsinstall can invoke them.
  33. Notes:
  34. To test the installation file without actually modifying the DC put
  35. /DEBUG as the first line of erac.txt.
  36. Using the "-w" option with perl in step 3 can help you debug the script. Perl
  37. will put out a warning when you try to reference an uninitialized variable.
  38. One way to examine the FRS configuration state in the DS is to use "ntfrsutl ds"
  39. to dump the state of replica sets in the DS.
  40. Always add new branch servers at the end of the branch server list in the .srv
  41. input file. This way when you rerun the script you produce the same
  42. topology for the previous branches and minimize any changes to the configuration
  43. objects in the active directory. FRSINSTALL does not update any attribute
  44. in the active directory if it has not changed. As an example a change to the
  45. replication schedule will only result in a change to the schedule attribute
  46. in the active directory if nothing else changes.
  47. Warnings:
  48. frsconfig is not real helpful in telling you where errors are. When you run the
  49. generated perl script use the -w option to help locate problems.
  50. Perhaps the best strategy is to start with an example file above and make a small
  51. number of changes and then try it out. This way you can localize the problem area.