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.

27 lines
811 B

  1. @echo off
  2. set dclist=
  3. del qcheck.tmp 2> nul:
  4. for %%x in (1 2 3 4 5 6 7 8 9 10) do (
  5. if EXIST \\ntdsdc%%x\sysvol set dclist=!dclist! %%x
  6. )
  7. echo System Volumes found on NTDSDC: !dclist!
  8. for %%x in (!dclist!) do (dir \\ntdsdc%%x\sysvol)
  9. for %%x in (!dclist!) do (
  10. echo Service state and FrsMon state for \\ntdsdc%%x
  11. sclist \\ntdsdc%%x | findstr -i NtFrs
  12. dir \\ntdsdc%%x\sysvol\ntdev.microsoft.com\scripts\frsmon_NTDSDC%%x.log >> qcheck.tmp
  13. echo .
  14. for %%y in (!dclist!) do (
  15. if EXIST \\ntdsdc%%x\sysvol\ntdev.microsoft.com\scripts\frsmon_NTDSDC%%y.log (
  16. tail -3 \\ntdsdc%%x\sysvol\ntdev.microsoft.com\scripts\frsmon_NTDSDC%%y.log
  17. echo .
  18. )
  19. )
  20. echo ...
  21. echo ...
  22. )
  23. qgrep -y frsmon_ qcheck.tmp
  24. del qcheck.tmp