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.

87 lines
3.2 KiB

  1. @echo off
  2. if "%1" == "" (
  3. set filelist=
  4. set filelistsys=
  5. set filelistver=
  6. set filelistsets=
  7. set filelistcs=
  8. )
  9. set LOG_PATH=e$\logs
  10. echo HKEY_LOCAL_MACHINE\system\currentcontrolset\services\NtFrs\Parameters\Access Checks\Get Internal Information>r.tmp
  11. echo Access checks are [Enabled or Disabled] = Disabled>>r.tmp
  12. echo HKEY_LOCAL_MACHINE\system\currentcontrolset\services\NtFrs\Parameters\Access Checks\Get Perfmon Data>>r.tmp
  13. echo Access checks are [Enabled or Disabled] = Disabled>>r.tmp
  14. type r.tmp
  15. set testlist=1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
  16. rem set testlist=9 10 11 12 13 14 15 16
  17. if NOT "%1" == "" set testlist=%1
  18. for %%x in ( !testlist! ) do (
  19. net use \\frstest%%x /u:administrator "frstest"
  20. dir \\frstest%%x\e$ 1>nul: 2>nul:
  21. if ERRORLEVEL 1 (
  22. echo *** frstest%%x : Log file not found or machine not reachable.
  23. goto :NEXT
  24. )
  25. REM
  26. REM Get the name of the last log file.
  27. REM
  28. dir \\frstest%%x\%LOG_PATH% /b > a.tmp
  29. for /F "usebackq" %%y in (`tail -1 a.tmp`) do set LAST_LOG=%%y
  30. echo --- \\frstest%%x\%LOG_PATH%\!LAST_LOG!
  31. head -1500 \\frstest%%x\%LOG_PATH%\!LAST_LOG! > a.tmp
  32. qgrep ":H: RC3 " a.tmp > b.tmp
  33. head -11 b.tmp > \temp\showtest\frstest%%x-evl-frs.txt
  34. qgrep "CommTimeoutInMilliSeconds" a.tmp >> \temp\showtest\frstest%%x-evl-frs.txt
  35. w:\eventdmp /l:ntfrs /r:frstest%%x /n:120 >> \temp\showtest\frstest%%x-evl-frs.txt
  36. dir \\frstest%%x\%LOG_PATH% >> \temp\showtest\frstest%%x-evl-frs.txt
  37. regdmp -m \\frstest%%x HKEY_LOCAL_MACHINE\system\currentcontrolset\services\NtFrs\Parameters >> \temp\showtest\frstest%%x-evl-frs.txt
  38. dir \\frstest%%x\e$ >> \temp\showtest\frstest%%x-evl-frs.txt
  39. dir \\frstest%%x\e$\staging /AH >> \temp\showtest\frstest%%x-evl-frs.txt
  40. w:\eventdmp /l:system /r:frstest%%x /n:80 > \temp\showtest\frstest%%x-evl-sys.txt
  41. regini -m \\frstest%%x r.tmp
  42. ntfrsutl version frstest%%x > \temp\showtest\frstest%%x-ntfrs-version.txt
  43. ntfrsutl sets frstest%%x > \temp\showtest\frstest%%x-ntfrs-sets.txt
  44. ntfrsutl stage frstest%%x > \temp\showtest\frstest%%x-ntfrs-stage.txt
  45. ntfrsutl inlog frstest%%x > \temp\showtest\frstest%%x-ntfrs-inlog.txt
  46. REM ntfrsutl outlog frstest%%x > \temp\showtest\frstest%%x-ntfrs-outlog.txt
  47. call w:\connstat -sort=name \temp\showtest\frstest%%x-ntfrs-sets.txt > \temp\showtest\connstat-%%x.txt
  48. if "%1" == "" (
  49. set filelist=!filelist! \temp\showtest\frstest%%x-evl-frs.txt
  50. set filelistsys=!filelistsys! \temp\showtest\frstest%%x-evl-sys.txt
  51. set filelistver=!filelistver! \temp\showtest\frstest%%x-ntfrs-version.txt
  52. set filelistsets=!filelistsets! \temp\showtest\frstest%%x-ntfrs-sets.txt
  53. set filelistcs=!filelistcs! \temp\showtest\connstat-%%x.txt
  54. )
  55. :NEXT
  56. REM --- next
  57. )
  58. echo start list filelist
  59. echo start list filelistsys
  60. echo start list filelistver
  61. echo start list filelistsets
  62. echo start list filelistcs
  63. start list !filelist!