Jump to content

Logging Number of Users (active connections)


Recommended Posts

Guest skilansing
Posted

I am trying to determine how many users on average are logged in via Terminal

Services.

 

Is there a way to log this? Or at very least, is there a way to record or

receive a message if the number of active connections goes over a certain

number?

 

Thanks for any help!

--

Gabe

  • Replies 5
  • Created
  • Last Reply

Popular Days

Guest Vera Noest [MVP]
Posted

Re: Logging Number of Users (active connections)

 

This should give you a starting point:

 

How can I retrieve the total number of sessions on my Terminal

Server?

http://ts.veranoest.net/ts_faq_administration.htm#TSSessionCount

 

You can use the methods described there and save the results to a

file for post-processing. Then use a 3rd party utility like blat to

email the report to you. You can schedule the information

retrieving script to run automatically a couple of times per day.

 

http://www.blat.net/194/

 

_________________________________________________________

Vera Noest

MCSE, CCEA, Microsoft MVP - Terminal Server

TS troubleshooting: http://ts.veranoest.net

___ please respond in newsgroup, NOT by private email ___

 

=?Utf-8?B?c2tpbGFuc2luZw==?=

<skilansing@discussions.microsoft.com> wrote on 04 dec 2007 in

microsoft.public.windows.terminal_services:

> I am trying to determine how many users on average are logged in

> via Terminal Services.

>

> Is there a way to log this? Or at very least, is there a way to

> record or receive a message if the number of active connections

> goes over a certain number?

>

> Thanks for any help!

Guest skilansing
Posted

Re: Logging Number of Users (active connections)

 

Thanks for your help.

 

I created a batch file that runs "query session /counter /server:servername"

and then outputs the results to a text file. I then have a scheduled task

that runs this daily. It should keep updating the text file with the

additional info.

 

This will work, but i would love it to tally the total number of users

currently active versus just showing the list. When looking back at the

records, I will have to manually tally the users to find out how many were

logged on at that time.

 

Thanks again for your help. Let me know if you (or anyone else) has any

other suggestions.

 

--

Gabe

 

 

"Vera Noest [MVP]" wrote:

> This should give you a starting point:

>

> How can I retrieve the total number of sessions on my Terminal

> Server?

> http://ts.veranoest.net/ts_faq_administration.htm#TSSessionCount

>

> You can use the methods described there and save the results to a

> file for post-processing. Then use a 3rd party utility like blat to

> email the report to you. You can schedule the information

> retrieving script to run automatically a couple of times per day.

>

> http://www.blat.net/194/

>

> _________________________________________________________

> Vera Noest

> MCSE, CCEA, Microsoft MVP - Terminal Server

> TS troubleshooting: http://ts.veranoest.net

> ___ please respond in newsgroup, NOT by private email ___

>

> =?Utf-8?B?c2tpbGFuc2luZw==?=

> <skilansing@discussions.microsoft.com> wrote on 04 dec 2007 in

> microsoft.public.windows.terminal_services:

>

> > I am trying to determine how many users on average are logged in

> > via Terminal Services.

> >

> > Is there a way to log this? Or at very least, is there a way to

> > record or receive a message if the number of active connections

> > goes over a certain number?

> >

> > Thanks for any help!

>

Guest Rob Leitman [MS]
Posted

Re: Logging Number of Users (active connections)

 

You could use Performance Monitor (PerfMon): Add the "Server Sessions" or

"Active Sessions" counters, create a Data Collector set, and later create a

report.

 

Rob

 

"skilansing" <skilansing@discussions.microsoft.com> wrote in message

news:44085D05-06C0-452A-BAA6-94B6A4277B4C@microsoft.com...

> Thanks for your help.

>

> I created a batch file that runs "query session /counter

> /server:servername"

> and then outputs the results to a text file. I then have a scheduled task

> that runs this daily. It should keep updating the text file with the

> additional info.

>

> This will work, but i would love it to tally the total number of users

> currently active versus just showing the list. When looking back at the

> records, I will have to manually tally the users to find out how many were

> logged on at that time.

>

> Thanks again for your help. Let me know if you (or anyone else) has any

> other suggestions.

>

> --

> Gabe

>

>

> "Vera Noest [MVP]" wrote:

>

>> This should give you a starting point:

>>

>> How can I retrieve the total number of sessions on my Terminal

>> Server?

>> http://ts.veranoest.net/ts_faq_administration.htm#TSSessionCount

>>

>> You can use the methods described there and save the results to a

>> file for post-processing. Then use a 3rd party utility like blat to

>> email the report to you. You can schedule the information

>> retrieving script to run automatically a couple of times per day.

>>

>> http://www.blat.net/194/

>>

>> _________________________________________________________

>> Vera Noest

>> MCSE, CCEA, Microsoft MVP - Terminal Server

>> TS troubleshooting: http://ts.veranoest.net

>> ___ please respond in newsgroup, NOT by private email ___

>>

>> =?Utf-8?B?c2tpbGFuc2luZw==?=

>> <skilansing@discussions.microsoft.com> wrote on 04 dec 2007 in

>> microsoft.public.windows.terminal_services:

>>

>> > I am trying to determine how many users on average are logged in

>> > via Terminal Services.

>> >

>> > Is there a way to log this? Or at very least, is there a way to

>> > record or receive a message if the number of active connections

>> > goes over a certain number?

>> >

>> > Thanks for any help!

>>

Guest Vera Noest [MVP]
Posted

Re: Logging Number of Users (active connections)

 

Now that's an elegant solution!

You've made it into my FAQ, Rob! :-)

_________________________________________________________

Vera Noest

MCSE, CCEA, Microsoft MVP - Terminal Server

TS troubleshooting: http://ts.veranoest.net

___ please respond in newsgroup, NOT by private email ___

 

"Rob Leitman [MS]" <robleit@online.microsoft.com> wrote on 04 dec

2007 in microsoft.public.windows.terminal_services:

> You could use Performance Monitor (PerfMon): Add the "Server

> Sessions" or "Active Sessions" counters, create a Data Collector

> set, and later create a report.

>

> Rob

>

> "skilansing" <skilansing@discussions.microsoft.com> wrote in

> message

> news:44085D05-06C0-452A-BAA6-94B6A4277B4C@microsoft.com...

>> Thanks for your help.

>>

>> I created a batch file that runs "query session /counter

>> /server:servername"

>> and then outputs the results to a text file. I then have a

>> scheduled task that runs this daily. It should keep updating

>> the text file with the additional info.

>>

>> This will work, but i would love it to tally the total number

>> of users currently active versus just showing the list. When

>> looking back at the records, I will have to manually tally the

>> users to find out how many were logged on at that time.

>>

>> Thanks again for your help. Let me know if you (or anyone else)

>> has any other suggestions.

>>

>> --

>> Gabe

>>

>>

>> "Vera Noest [MVP]" wrote:

>>

>>> This should give you a starting point:

>>>

>>> How can I retrieve the total number of sessions on my Terminal

>>> Server?

>>> http://ts.veranoest.net/ts_faq_administration.htm#TSSessionCoun

>>> t

>>>

>>> You can use the methods described there and save the results

>>> to a file for post-processing. Then use a 3rd party utility

>>> like blat to email the report to you. You can schedule the

>>> information retrieving script to run automatically a couple of

>>> times per day.

>>>

>>> http://www.blat.net/194/

>>>

>>> _________________________________________________________

>>> Vera Noest

>>> MCSE, CCEA, Microsoft MVP - Terminal Server

>>> TS troubleshooting: http://ts.veranoest.net

>>> ___ please respond in newsgroup, NOT by private email ___

>>>

>>> =?Utf-8?B?c2tpbGFuc2luZw==?=

>>> <skilansing@discussions.microsoft.com> wrote on 04 dec 2007 in

>>> microsoft.public.windows.terminal_services:

>>>

>>> > I am trying to determine how many users on average are

>>> > logged in via Terminal Services.

>>> >

>>> > Is there a way to log this? Or at very least, is there a way

>>> > to record or receive a message if the number of active

>>> > connections goes over a certain number?

>>> >

>>> > Thanks for any help!

Guest Henrik Johansson
Posted

Re: Logging Number of Users (active connections)

 

Use performance counter "Terminal Services\Active Sessions" and let it

generate a counter log.

 

or if you have no user named Active, you could use a batch-file and parse

the output from quser:

quser|find "rdp-tcp#"|find /c " Active "

 

"skilansing" <skilansing@discussions.microsoft.com> skrev i meddelandet

news:44085D05-06C0-452A-BAA6-94B6A4277B4C@microsoft.com...

> Thanks for your help.

>

> I created a batch file that runs "query session /counter

> /server:servername"

> and then outputs the results to a text file. I then have a scheduled task

> that runs this daily. It should keep updating the text file with the

> additional info.

>

> This will work, but i would love it to tally the total number of users

> currently active versus just showing the list. When looking back at the

> records, I will have to manually tally the users to find out how many were

> logged on at that time.

>

> Thanks again for your help. Let me know if you (or anyone else) has any

> other suggestions.

>

> --

> Gabe

>

>

> "Vera Noest [MVP]" wrote:

>

>> This should give you a starting point:

>>

>> How can I retrieve the total number of sessions on my Terminal

>> Server?

>> http://ts.veranoest.net/ts_faq_administration.htm#TSSessionCount

>>

>> You can use the methods described there and save the results to a

>> file for post-processing. Then use a 3rd party utility like blat to

>> email the report to you. You can schedule the information

>> retrieving script to run automatically a couple of times per day.

>>

>> http://www.blat.net/194/

>>

>> _________________________________________________________

>> Vera Noest

>> MCSE, CCEA, Microsoft MVP - Terminal Server

>> TS troubleshooting: http://ts.veranoest.net

>> ___ please respond in newsgroup, NOT by private email ___

>>

>> =?Utf-8?B?c2tpbGFuc2luZw==?=

>> <skilansing@discussions.microsoft.com> wrote on 04 dec 2007 in

>> microsoft.public.windows.terminal_services:

>>

>> > I am trying to determine how many users on average are logged in

>> > via Terminal Services.

>> >

>> > Is there a way to log this? Or at very least, is there a way to

>> > record or receive a message if the number of active connections

>> > goes over a certain number?

>> >

>> > Thanks for any help!

>>


×
×
  • Create New...