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 :
HKEY_LOCAL_MACHINE\Software\YourVendor\ApplicationName.
This changes when the OS is a 64 bit version.
Then a 32 bit installation sets its registry keys in:
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\YourVendor\AppicationName
Attribute Discovery
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 - <registryview>32bit</registryview>
- Save your Management Pack
- Done!
<RegistryAttributeDefinition>
<AttributeName>AppExists</AttributeName>
<Path>SOFTWARE\YourVendor\ApplicationName\Value</Path>
<PathType>1</PathType>
<AttributeType>1</AttributeType>
<RegistryView>32bit</RegistryView>
</RegistryAttributeDefinition>
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
2 reacties:
Thanks for this post. What about a 64bit OS where I have a 32bit SCOM agent? I have a registry entry in HKEY_LOCAL_MACHINE\Software\ that the agent can't seem to read/find?
Jon,
You should uninstall the 32 bit agent and replace it with the 64 bit agent.
But if you really want to continue to use the 32 bit agent (don't know why), you have to place the registry keys HKLM\SOFTWARE\Wow6432Node. That's the place where 32 bit applications search.
Post a Comment