Jul 17, 2001 #1 jguillory IS-IT--Management Jun 7, 2001 60 US How do I get a report that logs the total amount of concurrent users at one time on Metaframe? Thanks.
How do I get a report that logs the total amount of concurrent users at one time on Metaframe? Thanks.
Jul 17, 2001 #2 CitrixEngineer Technical User Aug 17, 2000 2,875 GB You could try this batch file (this one is written to get the number of users on two servers, but I'm sure you could modify it to suit!) :: Count.bat @echo off :: Counts Users on Terminal Server. set Countfile1=c:\temp\Countfile1.txt set Countfile2=c:\temp\Countfile2.txt echo Counting Users on Two Servers... echo. query user /server:WTS1 | find /c /i "active" > %Countfile1% query user /server:WTS2 | find /c /i "active" > %Countfile2% for /F %%i in (%Countfile1%) do set count1=%%i for /F %%i in (%Countfile2%) do set count2=%%i set /A total=%count1% + %count2% echo WTS1 = %count1% echo WTS2 = %count2% echo. echo Total = %total% echo. echo off :: Cleanup del /Q c:\temp\Countfile?.txt > nul :end Hope this helps Upvote 0 Downvote
You could try this batch file (this one is written to get the number of users on two servers, but I'm sure you could modify it to suit!) :: Count.bat @echo off :: Counts Users on Terminal Server. set Countfile1=c:\temp\Countfile1.txt set Countfile2=c:\temp\Countfile2.txt echo Counting Users on Two Servers... echo. query user /server:WTS1 | find /c /i "active" > %Countfile1% query user /server:WTS2 | find /c /i "active" > %Countfile2% for /F %%i in (%Countfile1%) do set count1=%%i for /F %%i in (%Countfile2%) do set count2=%%i set /A total=%count1% + %count2% echo WTS1 = %count1% echo WTS2 = %count2% echo. echo Total = %total% echo. echo off :: Cleanup del /Q c:\temp\Countfile?.txt > nul :end Hope this helps