32 bit Application on 64 bit OS
When a 32 bit application is installed on a 32 bit Windows OS, the registry keys are usually writen to :
This changes when the OS is a 64 bit version.
Then a 32 bit installation sets its registry keys in:
This is tricky when you don't know if one or both of these scenarios exists in your environment. There is more than one solution for your attribute discovery. (SCOM 2007 R2 is required for solution #2).
- Copy the right child keys from the key HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\ to HKEY_LOCAL_MACHINE\Software\
- Add an extra XML element to the Registry Discovery in your MP to make a '32 bit discovery' work on a 64 bit Agent.
- Use a VBScript for the discovery in which you have multiple ways of checking for CPU Archicture en reading registry keys
Enable the Discovery using the 32 bit part of 64 bit registry
- Open your Management Pack with a text editor, e.g. notepad.exe
- Go to Discoveries section
- Search for the Discovery in which you want to enable 32 bit discovery
- Within the section
, add the following XML element
- Save your Management Pack
As other users have already noticed: If you make a change to the attribute from the Operations Console or Authoring console, the RegistryView element is deleted. So watch out for that!
See also: http://social.technet.microsoft.com/Forums/en/operationsmanagermgmtpacks/thread/bf566244-1164-4bf7-b08c-558bc7bc2363