I am currently looking into more configurable alternatives than the
commercial trap forwarding software we are using and so I am trying to use
net-snmp in the lab for a proof of concept.

Basically I am trying to create a trapmanager that will listen for the
traps, log them, then forward traps based on oid to various network
management systems. The forwarded traps though need to keep the originating
trap source.

This test is running on windows2k. So far traps are being received and
logged fine. Trap Forwarding is working as well but only if I use a 'forward
default <destination>' entry in the config file.

I have tried specifying auth traps to a destination host but nothing is ever
sent (although when using the default rule the auth traps are forwarded). 

I have tried the following formats:

Forward SNMPv2-SMI::enterprises.311.1.1.3.1.2  x.x.x.x
forward .1.3.6.1.4.1.311.1.1.3.1.2 x.x.x.x
forward .1.3.6.1.4.1.9.5.28     x.x.x.x 
forward 1.3.6.1.4.1.311.1.1.3.1.2 x.x.x.x
forward 1.3.6.1.4.1.9.5.28      x.x.x.x
forward \.1\.3\.6\.1\.4\.1\.311\.1\.1\.3\.1\.2 x.x.x.x
forward \.1\.3\.6\.1\.4\.1\.9\.5\.28    x.x.x.x 
forward 1\.3\.6\.1\.4\.1\.311\.1\.1\.3\.1\.2 x.x.x.x
forward 1\.3\.6\.1\.4\.1\.9\.5\.28      x.x.x.x

I have logging enabled and the trap does come in, and is processed just
never forwarded unless I forward it all.

Next question is also with trapforwarding and the agent source address.
Forwarded traps lose the originating source. Is there a flag to have
forwarded traps keep their origination point? If not then I suspect I will
be using Perl to rewrite it if possible or pass the source as a varbind.

Third question is also with the forwarding rule and OIDs. Can regex'es be
used for the oid? Something like ?.?.?.?.4.* ?

Thanks,

Greg King



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to