Results 1 to 5 of 5

Thread: VB 2008---- Get using System.Management on remote computer

  1. #1

    Thread Starter
    A SQL Server fool GaryMazzone's Avatar
    Join Date
    Aug 2005
    Location
    Dover,NH
    Posts
    7,493

    VB 2008---- Get using System.Management on remote computer

    Can you use System.Management to get CPU and memory information from a remote computer?

    Gary
    Sometimes the Programmer
    Sometimes the DBA

    Mazz1

  2. #2
    Frenzied Member
    Join Date
    Jan 2006
    Posts
    1,875

    Re: VB 2008---- Get using System.Management on remote computer

    may be this will help you
    __________________
    Rate the posts that helped you

  3. #3
    Pro Grammar chris128's Avatar
    Join Date
    Jun 2007
    Location
    England
    Posts
    7,604

    Re: VB 2008---- Get using System.Management on remote computer

    Quote Originally Posted by GaryMazzone View Post
    Can you use System.Management to get CPU and memory information from a remote computer?

    Gary
    yep, you can use WMI (which is what the system.management classes wrap) to get a huge amount of information from a computer and anything that you can get from WMI on your own computer you can get just as easily from a remote computer (assuming no firewall is blocking the WMI ports and the Windows Management Instrumentation service is running on it). CPU and Memory information is a little vague though... do you mean you want to get information about them as in what model CPU and how much memory, or do you want to get performance data like how much CPU is currently being used and how much RAM each process is using etc. An easy way to see what info you can get from WMI is to use Microsoft's Scriptomatic tool to generate WMI scripts for you - http://www.microsoft.com/downloads/d...displaylang=en

    Having said all that, personally I am not very keen on WMI for several reasons and avoid using it unless there is no other way. The main reason being that I dont find it to be completely reliable - it just plain doesnt work on a small percentage of PCs and gives intermittent results on others (for example see this thread which uses WMI to create a service but fails if no one is logged in: http://www.vbforums.com/showthread.php?t=617601) but most people dont have a problem with it so dont let me put you off
    My free .NET Windows API library (Version 2.2 Released 12/06/2011)

    Blog: cjwdev.wordpress.com
    Web: www.cjwdev.co.uk


  4. #4

    Thread Starter
    A SQL Server fool GaryMazzone's Avatar
    Join Date
    Aug 2005
    Location
    Dover,NH
    Posts
    7,493

    Re: VB 2008---- Get using System.Management on remote computer

    Actually I'm looking to extend an app I'm playing with. I'm gathering info on SQL Server database that you point my app to. I get the info for the database alright, full mapping info for the db. I can get the SQL Server info (sp_config).... Now I want to be able to display memory, number of cpus and cpu speed on the remote box.
    Sometimes the Programmer
    Sometimes the DBA

    Mazz1

  5. #5
    Pro Grammar chris128's Avatar
    Join Date
    Jun 2007
    Location
    England
    Posts
    7,604

    Re: VB 2008---- Get using System.Management on remote computer

    well then yes WMI can do that for you
    My free .NET Windows API library (Version 2.2 Released 12/06/2011)

    Blog: cjwdev.wordpress.com
    Web: www.cjwdev.co.uk


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width