Check remote computer's memory resource 
Author Message
 Check remote computer's memory resource

Hi...

I am working at a company, and was asked to create a program to monitor the
memory status of several servers across the country.

I am developing it using VB. My question is, how do can I get information
about the memory usage, availability and such on the server side, from my
workstation.

Any help would be great. Thanks in advance.

Thorrel



Sat, 04 Sep 2004 11:25:11 GMT  
 Check remote computer's memory resource
Use sockets


Sat, 04 Sep 2004 16:41:50 GMT  
 Check remote computer's memory resource
Thanks, but...
Can you elaborate on that just a little bit..


Quote:
> Use sockets



Sun, 05 Sep 2004 07:57:56 GMT  
 Check remote computer's memory resource
That's a two-part question. The first is easy enough, determining memory
usage on a machine:

    Private Type MEMORYSTATUS
        dwLength As Long
        dwMemoryLoad As Long
        dwTotalPhys As Long
        dwAvailPhys As Long
        dwTotalPageFile As Long
        dwAvailPageFile As Long
        dwTotalVirtual As Long
        dwAvailVirtual As Long
    End Type

    Private Declare Sub GlobalMemoryStatus Lib "Kernel32" _
        (lpBuffer As MEMORYSTATUS)

    Public Function GetAvailableMemory() As Long
        Dim ms As MEMORYSTATUS
        GlobalMemoryStatus ms
        GetAvailableMemory = ms.dwAvailPhys
    End Function

The second, getting those values back to a central location, has multiple
answers. One way would be to have a shared database with a table where every
machine has its own record, which it could update every 30 seconds or
somesuch. But if your machines are scattered around the country, that may
not be practical.

A low-tech approach would be to have each machine email the results to the
mother ship.

Another more involved approach, if your machines are running TCP/IP, would
be to use the Winsock control to open a network communication channel
between the machine. They could then send periodic results that way. Correct
socket programming is a little trickier than people first think, so I'd
suggest reading around if you want to go that route. A couple of places to
start would be the online help (naturally), the MSDN web site, and
http://www.vbip.com.


Quote:
> Hi...

> I am working at a company, and was asked to create a program to monitor
the
> memory status of several servers across the country.

> I am developing it using VB. My question is, how do can I get information
> about the memory usage, availability and such on the server side, from my
> workstation.

> Any help would be great. Thanks in advance.

> Thorrel



Mon, 06 Sep 2004 00:43:17 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. accessing remote resources on a remote computer

2. How to check remote physical memory without a remote client

3. Shared Resources on a remote computer

4. Remote computer total memory

5. Need to Determine the Total Physical Memory of a Remote Computer

6. Remote computer Total memory

7. Get the physical memory installed on a remote computer

8. Remote computer Total memory

9. DCOM remote computer availability check

10. How to enumerate all disks's partitions in a remote computer

11. Getting Remote Computer's Domain

12. Copying bitmap from one computer's memory to another

 

 
Powered by phpBB® Forum Software