Re: list of trapsinks from Perl API

Wes Hardaker <[email protected]>
Newsgroups gmane.network.net-snmp.user
Organization Sparta
Message-ID <[email protected]>
>>>>> On Wed, 02 Jun 2010 09:57:49 +0100, Joao Ferreira gmail <[email protected]> said:

JF> Is there a way to obtain a list of trap/notif targets currently
JF> configured in snmpd.conf in Perl ?

JF> I'dd like to read those values in order to send my own traps...

JF> or... just occured... is there a "send_generic_trap_to_all_sinks" ?!

The answer, sadly, is no to both questions.  Though the second way is the
right way to do it, assuming you're talking embedded perl or a perl
subagent.

(in theory you could also walk the notification and target MIBs to
collect the destinations, but it'd be a pain)
-- 
Wes Hardaker
Cobham Analytic Solutions

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
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.