Citrix 4.5 WMI error message

c-el
c-el used Ask the Experts™
on
I have been seeing this error message for the last month and I can not seem to get the correct fix for it.
I have Citirx Presentation Server 4.5 and runing the 2003 servers which are my app servers.
I am only see this issue on these servers.
Citrix Monitoring Script Event 2
Citrix MetaFrame Compute Event Rate:
WMI error connecting to Citrix WMI provider:
      Received error: 0x8004100e: Invalid namespace  [WBEM_E_INVALID_NAMESPACE]
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®

Author

Commented:
This is not helphing/ in my program files\citrix\system32 there is no wmi folder to run the command they are talking about.

Author

Commented:
What else have you found out
Ensure you’re charging the right price for your IT

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!

I realized the same thing and did a search for WMI within \Program files\citrix :-)  Try \Program Files\Citrix\System32\Citrix\WMI
Just create a backup of the WMI folder as a precaution.

Author

Commented:
Should I be running this command on the servers I have this error with or should I be running this command on the main citrix box. I have found the file on the main box but not on the app servers that are giving me this error.
You think I need to reinstall the WMI provider on these servers and if so how do I do that.
I would say do this on the servers you are experiencing the error on.  On the flipside, go into Add/remove programs > Citrix Presentation Server > Click CHANGE > select MODIFY > then scroll down until you see the WMI providers.  If it's already there, you may have to uninstall that component, then reinstall it.

Author

Commented:
That component was not there so I installed the WMI provider service. When I did so I received I different error message stating.

Unable to open the registry key 'HKLM\SOFTWARE\Citrix\WMIService\DLLs'. Data contains returned error code.

Author

Commented:
I was able to get the WMI service to work.
I had to install the WMI service that was not installed.
Once I installed the service I received that error message (Unable to open the registry key 'HKLM\SOFTWARE\Citrix\WMIService\DLLs'. Data contains returned error code)
To fix that I had to give the local machine access.
By givin the WMI service folder in the registry key 'HKLM\SOFTWARE\Citrix\WMIService"
Local service rights to access this folder.
Than I was able to start the WMI service.
All is working fine.
Thanks for your help.

Commented:
QUICK FIX  
What we do to QUICK FIX   this phenomena...
We created a backup of this repository..
Whenever it gets corrupted.. we restore that backup.
Any changes made after that certain backup will be replicated again..
We restore a 'smaller' repository what takes less time then'have replication do the rest..
This is a on the fly action and requires NO reboot..

Commented:
Can this command 'for /f %s in ('dir /b *.mof *.mfl')do mofcomp %s' Be run while users have active citrix sessions?

Commented:
better disable all logons and have users reconnect to other servers in the farm before running that
'for /f %s in ('dir /b *.mof *.mfl')do mofcomp %s'  command.
It can be run with active sessions but results are unpredictable as far as i have experienced.
some loose their session others donot and so on..
1 make sure you have no acxtive sessions
2 Run that 'for /f %s in ('dir /b *.mof *.mfl')do mofcomp %s'  command
3 backup your WMI repository..
4 restore (live :-) !!) that backup as needed ...
PS make backup for each server  (ofcourse)


Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial