how to check if someone is logged on our website before we restart the machine

  • As you know, security updates and SPs are part and parcel of Windows Operating system.

    Here is my question:

    Every month after applying the patches we have to restart our windows 2k3 server so that the patches applied are in effect. Now before restarting, how can we make sure that no one is logged on our website (otherwise the user's work will get lost if we restart our servers in middle of user's session) and using database or some functionality. Generally we do it at late nights over weekend where chances of anybody logged in are less. Right now in order to make sure that no one is using our website, we check our awstats log. Is there any other convinient method to do the same?

    We are using SQL2k5, IIS 6.0 on windows 2k3 platform.

    Thanks

  • You can put a message on the login page that your site will be down during certain hours a couple of days in advance.

    Regards,Yelena Varsha

  • Yeah I understand what you are saying. But as you know some users are so oblivious to those messages that they might just log in still. And therefore I am looking for a technique by which we can see if some user is logged in or not. So that ways I can wait till the user stops his/her activity.

  • Unfortunately, I don't think IIS Manager provides that information.  However, you could use the Web Service object in Performance Monitor (each website is a separate instance).  The following counters may help.

     Current Anonymous Users

     Current Connections

     Current NonAnonymous Users


    Regards,

    Todd Clark

  • Thanks Todd. Sounds like this will do the trick. Where can I exactly find Performance Monitor? Is it under Component Service?

  • Thank you Todd very very much. it seems the counter Current Connections under Web service object did the trick for me.. You are awesome..Thanks a lot.

Viewing 6 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic. Login to reply