Dear All,

If I have several traps ("MyMIB::MyTrap1" "MyMIB::MyTrap2") from the
same mib being handled by the same perl subroutine do I need to

NetSNMP::TrapReceiver::register("MyMIB::MyTrap1", \&my_receiver) ||
    warn "failed to register our perl trap handler\n";

and

NetSNMP::TrapReceiver::register("MyMIB::MyTrap2", \&my_receiver) ||
    warn "failed to register our perl trap handler\n";

or can I do just once (tried this and didn't worked)

NetSNMP::TrapReceiver::register("MyMIB", \&my_receiver) ||
    warn "failed to register our perl trap handler\n";

Thank you for the help,
Hugo Caçote

-- 
Hugo Caçote @ CERN/IT



-------------------------------------------------------
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