Hi Guys,
Is anyone using SNMP? I can't get it working with a program called Opmanager.
I can get is sort of working between the ned demo server and client but even that seem to have a few small issues. As soon as you go for a non standard notification the wrong error shows up on the server. I may be feeding it the wrong info admitedly.
I'm setting these values:
ThisSNMPClient.SNMPVersion = 0
ThisSNMPClient.community = 'public'
ThisSNMPClient.Enterprise = GETINI('SNMPConfiguration','Enterprise', NetSNMP:snmpTrapEnterprise,'.\MetalEDI.INI')
ThisSNMPClient.AgentAddr = GETINI('SNMPConfiguration','Agent', '192.168.9.210','.\MetalEDI.INI')
ThisSNMPClient.GenericTrap = NetSNMP:snmpTrapEnterprise
ThisSNMPClient.SpecificTrap = NetSNMP:snmpTrapOID
If TimeStamp = 0
ThisSNMPClient.TimeStamp = 1
Else
ThisSNMPClient.TimeStamp = CLOCK() - TimeStamp
End
TimeStamp = CLOCK()
ThisSNMPClient.Packet.ToIP = GETINI('SNMPConfiguration','Host', '192.168.9.210','.\MetalEDI.INI')
ThisSNMPClient.SendTrap()
And get this in the Opmanager software errorlog. I get the same error
when I use the NetDemo.
12:13:28:468 EVENT: Exception caught in TrapInput while converting the
received trap into SnmpPDU object.
com.adventnet.snmp.snmp2.SnmpException: SnmpPDU decoding failed.
Can you see anything that I'm missing?
Thanks,
Bertus