On 20/04/11 11:04, Dave Shield wrote:
> On 18 April 2011 18:18, Brice Fernandes<[email protected]>  wrote:
>> Trap sinks set using the 'trap2sink' directive work as expected, but
>> destinations set using 'snmpNotifyTable/targetAddr/targetParams' don't
>> seem to be receiving any traps.
>
> What is the full sequence of SET command(s) that you are using to set this up?
>
> Dave

Hi Dave,

The SET operations work fine (Honest!), I'm actually working on a
standalone trap forwarding daemon, in the vein of snmptrapd.

I was looking at the internal plumbing of how the library handles traps,
and specifically what should happen for `snmp_read()` to forward a trap
given a snmpNotifyTable directive in the configuration.

I found where the callbacks were added for snmpNotifyTable, (in
agent/mibgroup/notification/snmpNotifyTable.c#init_snmpNotifyTable() ),
and it was just a matter of calling this method from our daemon to get
the behaviour we wanted, stating the file in question on new traps and
then reconfiguring if the file had changed since the last config.

Thanks for getting back to me anyway!

Brice


Cambridge Broadband Networks Limited Registered in England and Wales under 
company number: 03879840 Registered office: Selwyn House, Cambridge Business 
Park, Cowley Road, Cambridge CB4 0WZ, UK. VAT number: GB 741 0186 64

------------------------------------------------------------------------------
Benefiting from Server Virtualization: Beyond Initial Workload 
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve 
application availability and disaster protection. Learn more about boosting 
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to