How to specify a simple regex for snap trap handler registration in perl

Sateesh Hegde <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <CAJsVQ=EcaOjMtsz3BO1cXBj8=et+sgkR73bP2PC0vahzQAVK8Q@mail.gmail.com>
Hi,
My snmptrapd.conf has something like following

ignoreAuthFailure yes
disableAuthorization yes
donotlogtraps true
outputOption ft
perl NetSNMP::TrapReceiver::register("default", \&my_receiver);
perl do "/etc/snmp/traphandler.pl";
perl NetSNMP::TrapReceiver::register("1.3.6.1.4.1.98765.1.1.7.
<http://1.3.6.1.4.1.29671.1.1.7.*>1", \&my_receiver_test);


However, I would like to handle a range of trap OIDS below the 7. tree.  I
know it works with simple

traphandle hook , but didn't work on this perl, tried the following :

perl NetSNMP::TrapReceiver::register("1.3.6.1.4.1.98765.1.1.7.
<http://1.3.6.1.4.1.29671.1.1.7.*>*", \&my_receiver_test);

 It doesn't seem to work. Any help please ?


Thanks
-- 
Sateesh Hegde

------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity planning
reports.http://sdm.link/zohodev2dev

_______________________________________________
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.