Mark Minasi's Reader Forum
Mark Minasi's Reader Forum
Home | Profile | Register | Active Topics | Active Polls | Members | Search | FAQ | Minasi Forum RSS Feed
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 HALP! Questions on Windows and Windows Server
 Scripting
 Help with WMI query
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

mitachu
Honorable But Hopeless Addict

United Kingdom
1947 Posts
Status: offline

Posted - 10/19/2011 :  08:53:40 AM  Show Profile  Click to see mitachu's MSN Messenger address  Reply with Quote
I get the following error when trying to get some info from WMI on an Exchange 2003 server. Normally this works OK but on a bunch of servers it's failing. Anyone know whht's going on?

102 Invalid class when process matrix 0 WQL = Select ActiveUserCount, RPCRequests From Win32_PerfRawData_MSExchangeIS_MSExchangeIS


Tim

Xenophane
Honorable But Hopeless Addict

Denmark
3070 Posts
Status: offline

Posted - 10/19/2011 :  09:12:50 AM  Show Profile  Visit Xenophane's Homepage  Send Xenophane an ICQ Message  Reply with Quote
Can you post your full query ?

Microsoft Powershell MVP

SIG> George Bernard Shaw : The power of accurate observation is commonly called cynicism by those who have not got it. </SIG>

You can read my blog at www.xipher.dk
Go to Top of Page

JSCLMEDAVE
Administrator

USA
6116 Posts
Status: offline

Posted - 10/19/2011 :  09:33:40 AM  Show Profile  Visit JSCLMEDAVE's Homepage  Click to see JSCLMEDAVE's MSN Messenger address  Reply with Quote
Are you running this local or from another Server/PC ?

Tim-

“This too shall pass"
Go to Top of Page

mitachu
Honorable But Hopeless Addict

United Kingdom
1947 Posts
Status: offline

Posted - 10/19/2011 :  09:42:29 AM  Show Profile  Click to see mitachu's MSN Messenger address  Reply with Quote
It's a local query. Unfortunately the query is being generated by a third party program and I can't easily access the query itself. I was kinda after some pointers to troubleshooting ideas ?

Tim
Go to Top of Page

cj_berlin
Honorable But Hopeless Addict

Germany
3964 Posts
Status: offline

Posted - 10/19/2011 :  10:09:51 AM  Show Profile  Visit cj_berlin's Homepage  Look at the Skype address for cj_berlin  Reply with Quote
This of any help?

http://support.microsoft.com/kb/820847

Evgenij Smirnov
Go to Top of Page

mitachu
Honorable But Hopeless Addict

United Kingdom
1947 Posts
Status: offline

Posted - 10/19/2011 :  10:13:49 AM  Show Profile  Click to see mitachu's MSN Messenger address  Reply with Quote
Looks good! I'll give that a shot.

Thanks guys.

Tim
Go to Top of Page

cj_berlin
Honorable But Hopeless Addict

Germany
3964 Posts
Status: offline

Posted - 10/19/2011 :  10:20:08 AM  Show Profile  Visit cj_berlin's Homepage  Look at the Skype address for cj_berlin  Reply with Quote
If this should fail, here's another suggestion from the Mothership:

http://social.msdn.microsoft.com/Forums/en-AU/os_exchangeprotocols/thread/35dbf170-645e-475a-8ffa-7e76bb20f2ee

Evgenij Smirnov
Go to Top of Page

mitachu
Honorable But Hopeless Addict

United Kingdom
1947 Posts
Status: offline

Posted - 10/19/2011 :  10:43:11 AM  Show Profile  Click to see mitachu's MSN Messenger address  Reply with Quote
Hmm, I've tried those steps before and, well, here I am :)

Still got the problem!

Tim
Go to Top of Page

Xenophane
Honorable But Hopeless Addict

Denmark
3070 Posts
Status: offline

Posted - 10/19/2011 :  11:27:46 AM  Show Profile  Visit Xenophane's Homepage  Send Xenophane an ICQ Message  Reply with Quote
Can you see the classes with wbemtest ?

Microsoft Powershell MVP

SIG> George Bernard Shaw : The power of accurate observation is commonly called cynicism by those who have not got it. </SIG>

You can read my blog at www.xipher.dk
Go to Top of Page

mitachu
Honorable But Hopeless Addict

United Kingdom
1947 Posts
Status: offline

Posted - 10/20/2011 :  05:26:04 AM  Show Profile  Click to see mitachu's MSN Messenger address  Reply with Quote
I'm not strong with wbemtest but I think I can see the classes but not any instances. Does that make sense?

Tim
Go to Top of Page

Xenophane
Honorable But Hopeless Addict

Denmark
3070 Posts
Status: offline

Posted - 10/20/2011 :  05:42:13 AM  Show Profile  Visit Xenophane's Homepage  Send Xenophane an ICQ Message  Reply with Quote
Yes.. I think I came across something similar a several years ago.. and I think I ended up "rebuilding" WMI


Dont know if you have tried this..

wmiadap /c
wmiadap /f

Restart WMI service

Microsoft Powershell MVP

SIG> George Bernard Shaw : The power of accurate observation is commonly called cynicism by those who have not got it. </SIG>

You can read my blog at www.xipher.dk
Go to Top of Page

mitachu
Honorable But Hopeless Addict

United Kingdom
1947 Posts
Status: offline

Posted - 11/24/2011 :  04:54:22 AM  Show Profile  Click to see mitachu's MSN Messenger address  Reply with Quote
I've had a degree of success with some of the above as well as a few other bits and bobs I've found via Google. However, there's still a few servers that refuse to populate WMI with the counters despite my best efforts. I've tried doing a mofcomp.exe against the mdbperf.dll counter file in Exchange's bin folder, I've done lodctr /R, wmiadap /c and /f but to no difference in results.

WBEMTEST shows that there's no instances in WMI.

I'm stuck.

Tim
Go to Top of Page

mitachu
Honorable But Hopeless Addict

United Kingdom
1947 Posts
Status: offline

Posted - 12/13/2011 :  04:35:29 AM  Show Profile  Click to see mitachu's MSN Messenger address  Reply with Quote
OK, so I've pretty much got this sussed.


lodctr /R "C:\program files\exchsrvr\bin\mdbperf.ini"
net stop msexchangemgmt
net stop winmgmt
net start msexchangemgmt
wmiadap /c
wmiadap /f

Does the trick. The counters were not being passed across into WMI because the Exchange services were starting AFTER the WMI service.

Tim
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Mark Minasi's Reader Forum © 2002-2011 Mark Minasi Go To Top Of Page
This page was generated in 0.17 seconds. Snitz Forums 2000