viewpoint-particle

Author Topic: How to get iis sessions?  (Read 2403 times)

warren

  • Newbie
  • *
  • Posts: 15
How to get iis sessions?
« on: August 05, 2013, 07:25:18 am »
Does anyone know how to get the current number of IIS (win2008) sessions in use? I'm creating an app to get the sessions every x minutes and then display them in a graph to track site usage.

Thanks!

td

  • Tech Support
  • *****
  • Posts: 3210
    • WinBatch
Re: How to get iis sessions?
« Reply #1 on: August 05, 2013, 01:27:43 pm »
Assuming that you are using IIS 7.0, you should be able to get the information using the AppCmd.exe command line utility.  Docs for the utility should be on your server and additional information can be found here

http://www.iis.net/learn/get-started/getting-started-with-iis/getting-started-with-appcmdexe#Finding

You could also try using a PowerShell script via WinBath's dotNet hosting to get the performance counter information that is collected on IIS usage.   I haven't played with the IIS counters so I don't have any examples handy.

Perhaps someone else has a simpler solution.
"No one who sees a peregrine falcon fly can ever forget the beauty and thrill of that flight."
  - Dr. Tom Cade