ActiveXperts Knowledge Base Article 6930010

Our mission at ActiveXperts Software is to deliver high quality Network Monitoring solutions and Windows Development components. Our goal is to supplement these solutions with timely support resources that can help at many different levels.
The first thing you want to do is try to find the answer to your problem in the Knowledge Base. If you cannot find an answer to your question in our Knowledge Base, or if you need additional information or assistance, please use our Contact Support form.


Q6930010 - I'm having problems monitoring memory usage on a remote Windows server. How can I troubleshoot?

ActiveXperts uses WMI (Windows Management Instrumentation) to collect data about (remote) Windows machines. WMI is part of Windows operating systems and installed by default. First check out the following:

WMI can use WinRM (preferred), or DCOM (legacy). In ActiveXperts, the WMI operation mode can be set per server. By default, the global WMI operation mode is used; see Tools->Options->{Windows Machines} in the Manager application.

Ensure that Windows WMI services are running on the monitoring server and the monitored server, and that firewall settings do not prevent you from accessing the remote computer via WMI.

 

Troubelshoot Memory monitoring using WMI/WinRM

Run the following Powershell command to query Memory usage using WMI through WinRM:

Get-WSManInstance -ComputerName computername -Enumerate -ResourceURI wmicimv2/* -Filter "SELECT * FROM Win32_PerfFormattedData_PerfOS_Memory" | Select-Object -ExpandProperty AvailableBytes

or (with alternate credentials):

# Prompt to enter the username and password
$objCred = Get-Credential 
# Call Get-WSManInstance
Get-WSManInstance -ComputerName computername -Credential $objCred -Enumerate -ResourceURI wmicimv2/* -Filter "SELECT * FROM Win32_PerfFormattedData_PerfOS_Memory" |  Select-Object -ExpandProperty AvailableBytes

To verify WMI access through WinRM, see FAQ #Q7260015

 

Troubelshoot Memory monitoring using WMI/DCOM

Run the following command to query Memory usage using WMI through DCOM:

WMIC /node:computername PATH Win32_PerfFormattedData_PerfOS_Memory GET AvailableBytes

or (with alternate credentials):

WMIC /node:computername /user:user /password:password PATH Win32_PerfFormattedData_PerfOS_Memory GET AvailableBytes

To verify WMI access through DCOM, see FAQ #Q7250015


If you cannot find an answer to your question(s) in our Knowledge Base, or if you need additional information or assistance, please contact our Customer Support using our Contact Support Form

M