On Mon, 11 Oct 2004 11:27:51 +0930 don wrote:
DH> > On Thu, 30 Sep 2004 15:13:54 +0930 don wrote:
DH> > DH> Unfortunately, I'm still having troubles with sending traps from an
DH> > DH> agent X agent (or subagent).
DH> > DH>
DH> I've had a few successes and a few failures. I recompiled 5.1.2.rc1
DH> using the same configuration and the same source as before, but it
DH> behaves differently! I'm now getting traps received using exactly the
DH> same code and snmpd.conf file as before. Now I need to work out what's
DH> happened that's different! :-(
DH> 
DH> Given that, I'm not sure that we'll be moving to 5.2, but we may at
DH> some point in the future.

You should probably be comparing to the actual 5.1.2 release, instead of rc1.
Either way, you should be able to find the difference.  I seem to recall one
release/pre-release not properly setting the default port for traps. That might
be the problem...

DH> So I started looking at simply spawing
DH> the net-snmp 'snmptrap' process  with appropriate arguments, to send
DH> the trap that I need to be sent. This ran into a couple of problems,
DH> though:
DH> 
DH> 1. I didn't seem to be able to send a trap to multiple IP addresses. I
DH> can spawn the process multiple times, once with each destination IP
DH> address, but ideally I'd like it to be able to use the snmpd.conf
DH> configuration file. Is there any way to: a) configure the 'snmptrap'
DH> executable to use snmpd.conf, or b) tell 'snmptrap' to send a trap to
DH> multiple destinations?

Not presently, but  there are two interesting idea there. One (sending to
multiple ip addresses from the command line) has been brought up before. The
other, using a conf file, is new. I'm not sure that reading snmpd.conf
would be a good idea, but reading a snmptrap.conf that specifies trap
destinations is an interesting idea. You might wnat to submit those as feature
requests (or code them up and submit a patch).


DH> The network management system (the SNMP 'client')
DH> expects to receive the value of each of these objects in the same
DH> packet that it receives the notification/trap, correct?

Yes.

DH> Is there a way, using the 'snmptrap' executable, to send the current value
DH> of these objects along with the notification?

If you have the current values, you can specify them on the command line. If
you are asking if it can query the agent for the values, it doesn't do that
(and it wouldn't be a good idea anyway).


DH> 3. Is there a way to do this (send the 'object list') with
DH> send_easy_trap() from the subagent, or would I have to use
DH> send_v2trap(), or whatever it's called?

Check out agent/mibgroup/examples/notification.c for an example of adding
varbinds to a trap.

-- 
Robert Story; NET-SNMP Junkie <http://www.net-snmp.org/>
<irc://irc.freenode.net/#net-snmp>  
Archive: <http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-users>

You are lost in a twisty maze of little standards, all different. 


-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
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