WMI counters

H

HankC

I have a script counting SMTP messages sent, delivered and received on
10 duplicate Exchange servers. 8 give good information, 2 return
nothing but zeroes.

The 'Windows Management Instrumentation' and 'Microsoft Exchange
Management' services are running on all 10 machines.

I am using a 'Select * from Win32_PerfRawData_SMTPSVC_SMTPServer' query
to gather the data.

Running the script on the problematic servers also gives zeroes.

Perfmon displays the Total Messages Sent, Receeived and Delivered
but the query

Set colItems = objWMIService.ExecQuery("Select * from
Win32_PerfRawData_SMTPSVC_SMTPServer",,48)

returns an empty collection on the 2 servers...

Thanks,
HankC
 
D

Dave Patrick

From a command prompt;

winmgmt /clearadap
winmgmt /resyncperf

may help.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmisdk/wmi/winmgmt.asp

--
Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

:
|
| I have a script counting SMTP messages sent, delivered and received on
| 10 duplicate Exchange servers. 8 give good information, 2 return
| nothing but zeroes.
|
| The 'Windows Management Instrumentation' and 'Microsoft Exchange
| Management' services are running on all 10 machines.
|
| I am using a 'Select * from Win32_PerfRawData_SMTPSVC_SMTPServer' query
| to gather the data.
|
| Running the script on the problematic servers also gives zeroes.
|
| Perfmon displays the Total Messages Sent, Receeived and Delivered
| but the query
|
| Set colItems = objWMIService.ExecQuery("Select * from
| Win32_PerfRawData_SMTPSVC_SMTPServer",,48)
|
| returns an empty collection on the 2 servers...
|
| Thanks,
| HankC
|
 
D

Dave Patrick

Great news. You're welcome.

--
Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

:
|
| Thanks, Dave...that did the trick!
|
|
| HankC
|
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top