SNMP - Error NOT_ENOUGH_MEMORY

  • Thread starter Thread starter Kobi Toueg
  • Start date Start date
K

Kobi Toueg

Hi,

I downloaded from the Microsoft MSDN the SNMP example (I
believe referred by the Toaster). I activated the SNMP
Trap Service and the SNMP Service.

The Manager function SnmpMgrRequest failes on
ERROR_NOT_ENOUGH_MEMORY (Error number 8). During the
function operation which takes a long time (~20 seconds)
the CPU does not appear to work hard not the memory does
not jump up the scale.

The parameters I give the Manager are: my local IP
address, the command "get", community "Public" and the MID
uid shown in the toaster "1.3.6.1.4.1.12".

What am I doing wrong?

Thanks,
Kobi
 
Kobi Toueg said:
The Manager function SnmpMgrRequest failes on
ERROR_NOT_ENOUGH_MEMORY (Error number 8).

Are you sure did you start the SNMP service and link correctly the dll
into the register? I had this error when I forgot to start the
service.
The parameters I give the Manager are: my local IP
address, the command "get", community "Public" and the MID
uid shown in the toaster "1.3.6.1.4.1.12".

Try with 1.3.6.1.4.1.12.2.1.0, 1.3.6.1.4.1.12 does not work with a
get.
Thanks,
Kobi

Cheers, Gionni
 
First of all thank Gionni.

I did start the SNMP Service and the SNMP Trap Service and
nothing works so far.

1. Is it possible that my configuration is wrong somehow?
Must I run the Agent on a Windows 2000 server only?

2. After compiling the testdll.dll I copied the
testdll.dll and testdll.lib into C:/Winnt/System32. After
that I modified the registry as follows:
a. In
HKEY_LOCAL_MACHINES\SYSTEM\CurrentControlSet\Services\SNMP\
Parameters\ExtensionAgents I added another entry
with "SOFTWARE\Microsoft\SNMPAgent\CurrentVersion".
b. I added
HKEY_LOCAL_MACHINES\SOFTWARE\Microsoft\SNMPAgent\CurrentVer
sion where I inserted a parameter "Pathname" with the
value "C:/Winnt/System32/testdll.dll".

Nothing works yet - It seems like the problem is somewhere
in the SNMPUtil execution file I created.

Do you have any idea of what is wrong?

Thanks,
Kobi
 
Kobi Toueg said:
1. Is it possible that my configuration is wrong somehow?

I don't think so.
Must I run the Agent on a Windows 2000 server only?
No.

2. After compiling the testdll.dll I copied the
testdll.dll and testdll.lib into C:/Winnt/System32. After
that I modified the registry as follows:
a. In
HKEY_LOCAL_MACHINES\SYSTEM\CurrentControlSet\Services\SNMP\
Parameters\ExtensionAgents I added another entry
with "SOFTWARE\Microsoft\SNMPAgent\CurrentVersion".
b. I added
HKEY_LOCAL_MACHINES\SOFTWARE\Microsoft\SNMPAgent\CurrentVer
sion where I inserted a parameter "Pathname" with the
value "C:/Winnt/System32/testdll.dll".

The slashes are wrong. Use "\" instead of "/" in the path. In your
case: "C:\Winnt\System32\testdll.dll".
Use "PathName" instead of "Pathname". I read "Pathname" could not
work.
Nothing works yet - It seems like the problem is somewhere
in the SNMPUtil execution file I created.

What do you exactly do to test the dll?
Thanks,
Kobi

Cheers, Gionni
 
Back
Top