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.

19 lines
809 B

  1. set MAXCYCLES=50
  2. if "%count%" == "" set /a count=0
  3. if "%index%" == "" set /a index=-1
  4. if not "%count%" == "%MAXCYCLES%" set /a count=%count%+1
  5. set /A index=(%index%+1) %% %MAXCYCLES%
  6. if "%1"=="FAIL" set /A sigma%index%=0
  7. if "%1"=="SUCCESS" set /A sigma%index%=1
  8. if "%1"=="SUCCESS" set /A SUCCESS=%SUCCESS%+1
  9. set /A TOTAL=%TOTAL%+1
  10. set /A PERCENT=(100*%SUCCESS%)/%TOTAL%
  11. echo set /A SUCCESS=%SUCCESS% >initvals.bat
  12. echo set /A TOTAL=%TOTAL% >>initvals.bat
  13. set /a sum=0
  14. call dosum.bat
  15. set /a localpercent=(100*%sum%)/%count%
  16. echo
  17. echotime /t Smart Card logons over last day: %localpercent%%% (%sum%/%count%) Total: %SUCCESS%/%TOTAL% %PERCENT%%% >\\mc2\ntds\tracking\sclogon.sum
  18. echo Pass rate= %PERCENT%%% (%SUCCESS%/%TOTAL%) Last 24 hours= %localpercent%%% (%sum%/%count%) >>sclogon.out