· Apr 11, 2017

SNMP: Terminal is "Unable to open Registry key"


Terminal says "Unable to open Registry key 'SOFTWARE\Microsoft\Windows\CurrentVersion\CommonFilesDir.1" when I execute $$Register^SNMP().

For monitoring purposes I want to use SNMP in Ensemble. One of the steps I have to do is to use the method $$Register^SNMP() in the terminal "%SYS" namespace. This is mentioned in a Intersystems Docs page.

Monitoring Caché Using SNMP

  • Caché expects the SNMP service to be installed before you install Caché, so it can add iscsnmp.dll to the proper Registry keys. Once Caché is installed, the SNMP service must be restarted so that it properly loads iscsnmp.dll and will find and communicate with the new Caché instance.


    If Caché is installed before the SNMP service, iscsnmp.dll cannot be properly registered, and you must use the $$Register^SNMP() function to do this after the Windows SNMP service is installed. Once this is done the SNMP service must be restarted.

However I get the following error. When I execute "    w $$Register^SNMP()    " in the "%SYS" namespace.

"Unable to open Registry key 'SOFTWARE\Microsoft\Windows\CurrentVersion\CommonFilesDir.1"

Is there a way to run the terminal in administrative mode if it doesnt already? It sounds like a security issue to me. 

Does anyone know what the problem may be?



Discussion (5)1
Log in or sign up to continue

Hi John, thankyou for the quick response. Unfortunately "csession" isnt anywhere to be found in my Intersystems folder. 

C:\InterSystems\Ensemble\bin>csession ENSEMBLE
'csession' is not recognized as an internal or external command,
operable program or batch file.

We're running

Version:Cache for Windows (x86-64) 2016.1.2 (Build 206U) Mon Jul 25 2016 16:42:32 EDT