Poll different machines for a windows service

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pjsrikanth
    New Member
    • Oct 2008
    • 1

    Poll different machines for a windows service

    Hi,

    My web application is running on 5000 different machines. For example, if i have to know who are all the clients which are using my application, what would be my appoach?

    Correct me if iam wrong, but I came up with an idea of installing a windows service on each of the client machines whichever are using my .net application. This way I can perform a check on all those machines having the windows service up & running.

    At my server, I would like to know which all clients are running my application. I need to ping the IP's of the clients (which are stored in our database) and if a reply is there, i need to check if the windows service is running on that IP. All this should happen in an interface and then show me the results as such which all machines are active and which are inactive.

    Iam unable to come to a conclusion as of how to achieve this task. Please help me out with this.
  • MrMancunian
    Recognized Expert Contributor
    • Jul 2008
    • 569

    #2
    Originally posted by pjsrikanth
    Hi,

    My web application is running on 5000 different machines. For example, if i have to know who are all the clients which are using my application, what would be my appoach?

    Correct me if iam wrong, but I came up with an idea of installing a windows service on each of the client machines whichever are using my .net application. This way I can perform a check on all those machines having the windows service up & running.

    At my server, I would like to know which all clients are running my application. I need to ping the IP's of the clients (which are stored in our database) and if a reply is there, i need to check if the windows service is running on that IP. All this should happen in an interface and then show me the results as such which all machines are active and which are inactive.

    Iam unable to come to a conclusion as of how to achieve this task. Please help me out with this.
    Wouldn't it be easier for you to write some code in the application that everyone is using, that 'calls home' or something? Like a small database entry with the login time, IP-address, logout time etc.?

    Steven

    Comment

    • Plater
      Recognized Expert Expert
      • Apr 2007
      • 7872

      #3
      Originally posted by MrMancunian
      Wouldn't it be easier for you to write some code in the application that everyone is using, that 'calls home' or something? Like a small database entry with the login time, IP-address, logout time etc.?

      Steven
      I would have to agree here, "calling home" is much more likely to succeed. Just firewall settings alone would be much better off going "out" rather then "in"

      Comment

      • stoogots2
        New Member
        • Sep 2007
        • 77

        #4
        It is probably not the most efficient method, but I would try putting some code in your Session_Start event, and writing it to a Sql server Table, or perhaps ApplicationStat e.

        Comment

        Working...