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.

97 lines
3.2 KiB

  1. FRSCONFIG -- Tool to create FRS replica sets from a script. 4/5/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. erac.mrs -- input script file
  6. erac.prl -- generated perl script from input script
  7. erac.txt -- The replica set creation file produced from running the perl script
  8. frsconfig.cmd -- FRS configuration program that takes the input script file
  9. (erac.mrs in the example) and produces the generated perl script (erac.prl)
  10. Type frsconfig with no arguments to get help.
  11. frsobjsup.pm -- A support module used by both frsconfig and the generated perl scripts.
  12. frsinstall.cmd -- FRS replica set installation tool that takes the output file erac.txt produced by
  13. the generated perl script (emac.prl) in this example and creates the
  14. necessary objects in the DS. Type frsinstall with no args to get help.
  15. mkdsoe.exe -- A support tool used by frsinstall.cmd to create objects in the DS.
  16. mkdsxe.exe -- A support tool used by frsinstall.cmd to create objects in the DS.
  17. hubspoke.mrs -- A sample input script to generate a hub spoke topology.
  18. To run the tools:
  19. 1. Create an input script. See the mrs files above for examples.
  20. 2. Compile the input script to produce the generated perl script.
  21. frsconfig [options] erac.mrs > erac.prl
  22. frsobjsup.pm must be in the same dir where you run frsconfig.
  23. 3. Run the generated perl script with appropriate input paramters to generate the
  24. replica set creation file.
  25. perl [options] erac.prl > erac.txt
  26. frsobjsup.pm must be in the same dir where you run execute the generated perl script.
  27. Use the "-?" option to output the generic help message from the support module.
  28. See frsconfig help for how you can add your own help output from within your script.
  29. 4. Install the replica set configuration in the DS.
  30. frsinstall erac.txt > erac-install.log
  31. mkdsoe.exe and mkdsxe.exe must be in your path so frsinstall can invoke them.
  32. Typically once steps one and two are done then creating / configuring additional
  33. replica sets only requires repeating steps 3 and 4.
  34. Example:
  35. An example run of the emac.mrs script would look as follows:
  36. frsconfig erac.mrs > erac.prl
  37. perl erac.prl -DBchID=00ww00 -DHubID=224488 > erac.txt
  38. frsinstall erac.txt > erac-install.log
  39. Notes:
  40. To test the installation file without actually modifying the DC put
  41. /DEBUG as the first line of erac.txt.
  42. Using the "-w" option with perl in step 3 can help you debug the script. Perl
  43. will put out a warning when you try to reference an uninitialized variable.
  44. One way to examine the FRS configuration state in the DS is to use "ntfrsutl ds"
  45. to dump the state of replica sets in the DS.
  46. Warnings:
  47. frsconfig is not real helpful in telling you where errors are. When you run the
  48. generated perl script use the -w option to help locate problems.
  49. Perhaps the best strategy is to start with an example file above and make a small
  50. number of changes and then try it out. This way you can localize the problem area.